/*
 * Aspect — design tokens & site shell.
 *
 * THE RULE THIS FILE EXISTS TO ENFORCE: Aspect is this catalogue's first
 * directory/listings theme, not a marketing scroll — the primary UI is a
 * real, working search/filter/sort bar sitting above a responsive property
 * grid (see .filter-bar / .p-grid / .p-card below and
 * assets/js/property-filter.js), first-class on both the homepage and the
 * dedicated archive. A warm, light, daylight-forward palette — a deliberate
 * contrast after two consecutive dark themes (Nyx, Current) in this
 * catalogue — paper base, near-black charcoal text/structure, ONE warm
 * terracotta accent (--clay). No persistent WebGL background: the
 * signature technique (Light Study, assets/js/light-study.js) mounts
 * inline within a single property page's flow, not sitewide.
 */

:root {
	--bg: #f6f1e9;
	--bg-2: #fbf8f2;
	--bg-deep: #efe6d4;
	--bg-card: #fffdf9;
	--surface: rgba(34, 29, 23, 0.04);
	--surface-strong: rgba(34, 29, 23, 0.07);
	--line: rgba(34, 29, 23, 0.13);
	--line-soft: rgba(34, 29, 23, 0.08);

	--text: #221d17;
	--text-soft: #4b4237;
	--text-faint: #6c6152;
	--text-dim: #8b8072;

	/* The brief's single warm accent — a clay/terracotta note evoking
	   natural materials and golden-hour light. Used sparingly: CTAs, active
	   filter state, price, the Light Study widget's warm end. Slightly
	   darkened from an initial pass after a measured contrast check found
	   white button text on the lighter value landed at 4.38:1, just under
	   WCAG AA's 4.5:1 floor for non-large text — this now measures ~4.9:1. */
	--clay: #a8562e;
	--clay-deep: #8f4b2c;
	--clay-rgb: 168, 86, 46;
	--clay-tint: #f3e2d4;

	/* Functional status tones (listing state), not brand accents — kept
	   muted so they read as UI signal rather than a second competing
	   accent hue. Darkened from an earlier lighter pass after a measured
	   (not eyeballed) contrast check found white badge text on the
	   lighter versions fell to ~3.3-4.4:1 against WCAG AA's 4.5:1 floor —
	   this catalogue's light-theme contrast trap. These measure ~5.4-6.6:1. */
	--status-for-sale: #56684a;
	--status-pending: #80601e;
	--status-sold: #5f584e;

	--font-display: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
	--font-sans: 'Manrope', -apple-system, 'Segoe UI', sans-serif;

	--fs-1: 1rem;
	--fs-2: 1.2rem;
	--fs-3: 1.44rem;
	--fs-4: 1.75rem;
	--fs-5: 2.2rem;
	--fs-6: clamp(2.1rem, 1.2rem + 4vw, 3.4rem);
	--fs-7: clamp(2.3rem, 1rem + 5.6vw, 4.6rem);

	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 16px;
	--sp-4: 24px;
	--sp-5: 40px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 144px;

	--section-pad: clamp(56px, 5vw + 64px, 128px);

	--radius: 14px;
	--radius-sm: 8px;
	--radius-lg: 22px;

	--shadow-sm: 0 2px 10px rgba(53, 41, 27, 0.06);
	--shadow-md: 0 10px 34px rgba(53, 41, 27, 0.10);
	--shadow-lg: 0 22px 60px rgba(53, 41, 27, 0.14);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.08;
	margin: 0 0 var(--sp-3);
	color: var(--text);
}
h1 { font-size: var(--fs-7); }
h2 { font-size: var(--fs-6); }
h3 { font-size: var(--fs-4); }
h4 { font-size: var(--fs-3); }
p { margin: 0 0 var(--sp-3); color: var(--text-soft); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-4); }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--sp-4); }

.eyebrow {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	/* Small bold text doesn't qualify as WCAG "large text", so it needs the
	   full 4.5:1 ratio — --clay alone measures ~4.0-4.4:1 against the paper
	   background, which this catalogue's light-theme contrast trap flags as
	   a near-miss that looks fine at a glance. --clay-deep measures ~5.8:1,
	   confirmed via measured (not eyeballed) contrast check. */
	color: var(--clay-deep);
	margin: 0 0 var(--sp-2);
}

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--text); color: var(--bg); padding: var(--sp-2) var(--sp-3);
	border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	padding: 13px 26px;
	border-radius: 999px;
	border: 1.5px solid var(--line);
	background: transparent;
	color: var(--text);
	font-weight: 700;
	font-size: 0.94rem;
	letter-spacing: 0.01em;
	transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text); }
.btn--solid { background: var(--clay); border-color: var(--clay); color: #fff9f2; }
.btn--solid:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn--ghost { border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn--sm { padding: 9px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------- */
/* Glass — light-theme "paper glass": translucent warm-white panel. Text  */
/* colour is always set explicitly (never inherited faint-on-faint) so    */
/* contrast against the panel stays high regardless of what's behind it   */
/* — the light-theme contrast trap this catalogue has flagged before.     */
/* ---------------------------------------------------------------------- */

.glass {
	background: rgba(255, 253, 249, 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(1.15);
	backdrop-filter: blur(18px) saturate(1.15);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.glass:hover { border-color: rgba(34, 29, 23, 0.2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.glass--solid { background: var(--bg-card); }

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

.site-header {
	position: sticky; top: 0; z-index: 100;
	margin: var(--sp-3) var(--sp-4) 0;
	border-radius: 999px;
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
	padding: 10px var(--sp-4) 10px 22px;
}
.brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.01em;
	display: flex; flex-direction: column; line-height: 1.1;
}
.brand__tag { font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.nav { display: flex; }
.nav ul { display: flex; gap: var(--sp-5); }
.nav a { font-weight: 600; font-size: 0.94rem; position: relative; padding: 6px 0; }
.nav a::after {
	content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--clay);
	transition: right 0.35s var(--ease);
}
.nav a:hover::after, .nav a.current-menu-item::after { right: 0; }
.nav-toggle {
	display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px;
	width: 42px; height: 42px; align-items: center; justify-content: center; font-size: 1.1rem;
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

@media (max-width: 900px) {
	.nav { position: fixed; inset: 84px var(--sp-4) auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--sp-4); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
	.nav ul { flex-direction: column; gap: var(--sp-3); }
	.nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
	.nav-toggle { display: inline-flex; }
	.header-actions .btn--solid span { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero (homepage opening statement — single strong section, not a scroll)*/
/* ---------------------------------------------------------------------- */

.hero { padding: clamp(48px, 6vw, 96px) 0 var(--sp-6); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-7); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero__lede { font-size: 1.18rem; max-width: 46ch; }
.hero__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-6); flex-wrap: wrap; }
.hero__stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4); color: var(--clay); }
.hero__stat-label { font-size: 0.84rem; color: var(--text-faint); }

@media (max-width: 940px) {
	.hero__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
	.hero__media { order: -1; aspect-ratio: 16/10; }
}

/* ---------------------------------------------------------------------- */
/* Filter bar — the theme's primary, first-class interaction.            */
/* ---------------------------------------------------------------------- */

.filter-bar {
	padding: var(--sp-4) var(--sp-4);
	margin: 0 0 var(--sp-5);
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 128px; flex: 1 1 128px; }
.filter-field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.filter-field select, .filter-field input[type="text"] {
	background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	padding: 10px 12px; color: var(--text); font-weight: 600; font-size: 0.92rem;
	transition: border-color 0.25s var(--ease);
}
.filter-field select:focus, .filter-field input:focus { border-color: var(--clay); }
.filter-field--search { flex: 2 1 220px; }
.filter-bar__actions { display: flex; align-items: flex-end; gap: var(--sp-3); flex: 0 0 auto; }
.filter-bar__reset { background: none; border: none; color: var(--text-faint); font-weight: 700; font-size: 0.85rem; text-decoration: underline; padding: 10px 0; }
.filter-bar__reset:hover { color: var(--clay-deep); }

.filter-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: 0 0 var(--sp-4); flex-wrap: wrap; }
.filter-meta__count { font-weight: 700; color: var(--text); }
.filter-meta__count span { color: var(--clay-deep); }
.filter-sort { display: flex; align-items: center; gap: var(--sp-2); }
.filter-sort select { background: transparent; border: none; font-weight: 700; color: var(--text); padding: 4px; }

/* ---------------------------------------------------------------------- */
/* Property grid + card                                                   */
/* ---------------------------------------------------------------------- */

.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.p-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
/* The filter engine (assets/js/property-filter.js) sets the native
   `hidden` DOM property on non-matching cards. The browser's UA
   stylesheet rule `[hidden] { display: none }` has lower cascade priority
   than this file's own `.p-card { display: flex }` (author origin beats
   UA origin at equal specificity), so without this explicit, higher-
   specificity override, "hidden" cards stay visually flex-displayed even
   though the DOM property is correctly true — a real bug caught by
   checking computed style, not just the JS-side visible-count. */
.p-card[hidden] { display: none; }
.p-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-deep); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.06); }
.p-card__media--fallback, .card__media--fallback { width: 100%; height: 100%; background: linear-gradient(140deg, var(--bg-deep), var(--clay-tint)); }
.p-badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 6px 13px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
	color: #fff9f2; background: var(--status-for-sale);
}
.p-badge--pending { background: var(--status-pending); }
.p-badge--sold { background: var(--status-sold); }
.p-card__body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; }
.p-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--clay); margin-bottom: 4px; }
.p-card__title { font-size: 1.1rem; margin-bottom: 4px; }
.p-card__addr { font-size: 0.85rem; color: var(--text-faint); margin-bottom: var(--sp-3); }
.p-card__stats { display: flex; gap: var(--sp-4); font-size: 0.86rem; color: var(--text-soft); margin-bottom: 6px; }
.p-card__stats strong { color: var(--text); }
.p-card__style { font-size: 0.8rem; color: var(--text-faint); margin: 0; padding-top: var(--sp-2); border-top: 1px solid var(--line-soft); }

/* No unconditional display:none here — this element has no other display
   rule to fight the native [hidden] behaviour, so the "hidden" attribute
   (toggled by property-filter.js) correctly shows/hides it on its own. */
.p-grid__empty { text-align: center; padding: var(--sp-7) 0; font-size: 1.1rem; color: var(--text-faint); }

@media (max-width: 1080px) { .p-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.p-grid { grid-template-columns: 1fr; }
	.filter-bar { flex-direction: column; align-items: stretch; }
	/* flex: none resets the desktop row layout's "flex: 1 1 128px" (and
	   220px on the search field) — in a row flex container that shorthand
	   sizes WIDTH, but once .filter-bar above switches to
	   flex-direction:column its flex-basis instead sizes HEIGHT, forcing
	   every field to a 128-220px-tall box regardless of its real content.
	   Caught by measuring actual rendered field heights, not by eye. */
	.filter-field, .filter-field--search { width: 100%; flex: none; }
}

/* ---------------------------------------------------------------------- */
/* Generic card grid (journal / search / 404 / neighborhood teasers)      */
/* ---------------------------------------------------------------------- */

.grid { display: grid; gap: var(--sp-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clay-deep); padding: var(--sp-4) var(--sp-4) 0; }
.card__title { padding: 6px var(--sp-4) 0; font-size: 1.12rem; }
.card__excerpt { padding: 0 var(--sp-4) var(--sp-4); font-size: 0.92rem; color: var(--text-faint); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Neighborhood card                                                      */
/* ---------------------------------------------------------------------- */

.n-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.n-card { display: grid; grid-template-columns: 1fr; overflow: hidden; padding: 0; }
.n-card__media { aspect-ratio: 16/9; overflow: hidden; }
.n-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.n-card:hover .n-card__media img { transform: scale(1.05); }
.n-card__body { padding: var(--sp-4); }
.n-card__excerpt { font-size: 0.92rem; }
.n-card__meta { display: flex; gap: var(--sp-4); font-size: 0.84rem; font-weight: 700; color: var(--clay-deep); }
@media (max-width: 780px) { .n-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Page head                                                              */
/* ---------------------------------------------------------------------- */

.page-head { padding: var(--sp-7) 0 var(--sp-5); }
.page-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.page-head__intro { max-width: 62ch; }
.archive-intro { font-size: 1.05rem; }
.page-head__stats { display: flex; gap: var(--sp-5); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4); color: var(--clay); }
.stat-label { font-size: 0.8rem; color: var(--text-faint); }
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--text-faint); text-decoration: underline; }
.breadcrumb a:hover { color: var(--clay-deep); }

/* ---------------------------------------------------------------------- */
/* Section headers / differentiators / stat rows                         */
/* ---------------------------------------------------------------------- */

.section-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.diff-item { padding: var(--sp-5) var(--sp-4); }
.diff-item__num { font-family: var(--font-display); font-weight: 800; color: var(--clay-deep); font-size: 1rem; margin-bottom: var(--sp-3); display: block; }
@media (max-width: 1080px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .diff-grid { grid-template-columns: 1fr; } }

.about-stats { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.about-stats__num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4); color: var(--clay); }
.about-stats__label { font-size: 0.85rem; color: var(--text-faint); }

/* ---------------------------------------------------------------------- */
/* Single property: detail head / gallery / spec sheet                    */
/* ---------------------------------------------------------------------- */

.detail-head { padding: var(--sp-5) 0 var(--sp-6); }
.detail-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.detail-head__price { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-5); color: var(--clay); }

.gallery { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-6); align-items: stretch; }
/* No fixed aspect-ratio here at the desktop 2-column layout: the hero
   stretches to match the 4-stacked-thumbnail column's natural height
   (grid row stretch) rather than being aspect-ratio-locked to a shorter
   height than that column — a fixed 4:3 ratio here left a large dead
   gap below the hero image, caught by measuring actual rendered heights
   rather than eyeballing the screenshot. */
.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 320px; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumbs { display: grid; grid-template-rows: repeat(4, 1fr); gap: var(--sp-3); }
.gallery__thumb { border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; display: block; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery__thumb.is-active { border-color: var(--clay); }
@media (max-width: 900px) {
	.gallery { grid-template-columns: 1fr; }
	.gallery__main { aspect-ratio: 4/3; min-height: 0; }
	.gallery__thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
}

.spec-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.spec-sheet__row { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.spec-sheet__row:nth-child(2n) { border-right: none; }
.spec-sheet__row dt { color: var(--text-faint); font-weight: 600; font-size: 0.9rem; margin: 0; }
.spec-sheet__row dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
@media (max-width: 640px) { .spec-sheet { grid-template-columns: 1fr; } .spec-sheet__row { border-right: none; } }

.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content p { color: var(--text-soft); }
.entry-content h2 { margin-top: var(--sp-6); }

/* ---------------------------------------------------------------------- */
/* Light Study widget                                                     */
/* ---------------------------------------------------------------------- */

.light-study { padding: var(--sp-6) 0; }
.light-study__panel { padding: var(--sp-5); }
.light-study__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.light-study__title { margin: 0; }
.light-study__note { max-width: 52ch; font-size: 0.95rem; margin: 0; }

.light-study__stage { display: grid; grid-template-columns: 2.4fr 1fr; gap: var(--sp-5); align-items: center; }
.light-study__canvas-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); background: #111; }
.light-study__canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.light-study__readout {
	position: absolute; left: 18px; bottom: 18px; z-index: 2;
	background: rgba(20, 16, 12, 0.55); color: #fdf6ec;
	padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.light-study__side { display: flex; flex-direction: column; gap: var(--sp-5); }
.compass { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.compass svg { width: 130px; height: 130px; }
.compass__label { font-size: 0.82rem; color: var(--text-faint); text-align: center; }

.time-slider { display: flex; flex-direction: column; gap: 10px; }
.time-slider label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.time-slider input[type="range"] {
	-webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
	background: linear-gradient(90deg, #2b3a63 0%, #d98a4a 22%, #fdeecb 50%, #d98a4a 78%, #2b3a63 100%);
	outline: none;
}
.time-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
	background: #fffdf9; border: 3px solid var(--clay); box-shadow: var(--shadow-sm); cursor: pointer; margin-top: 0;
}
.time-slider input[type="range"]::-moz-range-thumb {
	width: 22px; height: 22px; border-radius: 50%; background: #fffdf9; border: 3px solid var(--clay); cursor: pointer;
}
.time-slider__ticks { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); }
.time-slider__presets { display: flex; gap: 8px; flex-wrap: wrap; }
.time-slider__presets button {
	background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; font-weight: 700; color: var(--text-soft);
	transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.time-slider__presets button:hover, .time-slider__presets button.is-active { border-color: var(--clay); color: var(--clay-deep); }
.light-study__hint { font-size: 0.78rem; color: var(--text-dim); }

@media (max-width: 900px) { .light-study__stage { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Forms                                                                  */
/* ---------------------------------------------------------------------- */

.enquiry-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
	background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	padding: 13px 16px; color: var(--text); width: 100%;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { border-color: var(--clay); }
.enquiry-form textarea { resize: vertical; min-height: 110px; }
.enquiry-form__status { font-weight: 700; min-height: 1.4em; }
.enquiry-form__status.is-success { color: var(--status-for-sale); }
.enquiry-form__status.is-error { color: var(--clay-deep); }

/* ---------------------------------------------------------------------- */
/* Agents                                                                 */
/* ---------------------------------------------------------------------- */

.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.agent-card { padding: var(--sp-4); text-align: left; }
.agent-card__media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-3); }
.agent-card__media img { width: 100%; height: 100%; object-fit: cover; }
.agent-card__name { font-size: 1.05rem; margin-bottom: 2px; }
.agent-card__title { font-size: 0.82rem; color: var(--clay-deep); font-weight: 700; margin-bottom: 8px; }
.agent-card__specialty { font-size: 0.86rem; color: var(--text-faint); margin-bottom: 10px; }
.agent-card__contact { font-size: 0.84rem; color: var(--text-soft); }
@media (max-width: 1080px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .agent-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Material link (used for similar-properties / cross-links)              */
/* ---------------------------------------------------------------------- */

.material-link { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3); }
.material-link__media { width: 96px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.material-link__media img { width: 100%; height: 100%; object-fit: cover; }
.material-link__eyebrow { font-size: 0.75rem; color: var(--clay-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.material-link__title { margin: 2px 0 0; font-size: 1.02rem; }

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

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: var(--sp-3); }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--clay-deep); }
.footer-grid p { font-size: 0.92rem; }
.footer-legal { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--text-dim); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Comments                                                                */
/* ---------------------------------------------------------------------- */

.comments-area { padding: var(--sp-6) 0; }
.comment-list > li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); }
.comment-form input, .comment-form textarea {
	background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; margin-bottom: var(--sp-3); color: var(--text);
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll — full-element visibility thresholds only (thin-line  */
/* IntersectionObserver markers are the fragile pattern this catalogue    */
/* has flagged before).                                                   */
/* ---------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------- */
/* Misc: neighborhood/journal teaser bands, CTA band                      */
/* ---------------------------------------------------------------------- */

.cta-band { padding: var(--sp-7) 0; text-align: center; }
.cta-band__inner { padding: var(--sp-7) var(--sp-5); max-width: 780px; margin: 0 auto; }
.cta-band .btn { margin-top: var(--sp-4); }

.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pills a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.85rem; font-weight: 700; color: var(--text-soft); }
.filter-pills a:hover, .filter-pills a.is-active { border-color: var(--clay); color: var(--clay-deep); background: var(--clay-tint); }

.section-tinted { background: var(--bg-deep); }
