/*
 * Valencia Landing: scoped styles.
 * Everything is under .vl-landing (front end and editor iframe).
 *
 * Specificity strategy (see _project-docs/DECISIONS.md §10):
 * titan.css forces font/size/color on bare h1/h2/h3/p and `nav ul li a` with
 * !important. A scoped rule using :where() has the same specificity as the
 * bare element it overrides, and `html` in front adds one type selector, so
 * `html :where(.vl-landing) h2 { ... !important }` (0,0,2) wins over titan's
 * `h2 { ... !important }` (0,0,1). WordPress preset classes
 * (.has-*-font-size etc., 0,1,0 + !important) still win over that, so editor
 * choices of preset size/color/font apply.
 */

/* ---------- Base: neutralize sitewide bare-element rules inside the wrapper ---------- */
html :where(.vl-landing) {
	/* The script face stand-in (ivyora-text 700i) sets ~11% wider per em than Swear Display Bold Italic; every script
	   run is scaled by this so line widths match the PSD. Remove when the real face is licensed. */
	--vl-script-scale: 0.9;
	--vl-text: var(--wp--preset--color--vl-charcoal);
	font-family: var(--wp--preset--font-family--vl-body);
	color: var(--vl-text);
	-webkit-font-smoothing: antialiased;
}

html :where(.vl-landing) :is(h1, h2, h3, h4) {
	font-family: var(--wp--preset--font-family--vl-display) !important;
	font-weight: 400 !important;
	font-size: var(--wp--preset--font-size--vl-heading-serif) !important;
	line-height: var(--vl-lh, 1.15) !important;
	letter-spacing: var(--vl-ls, 0) !important;
	text-transform: none !important;
	color: var(--wp--preset--color--vl-green) !important;
	margin-top: 0;
	margin-bottom: 0;
}

html :where(.vl-landing) p {
	font-size: var(--wp--preset--font-size--vl-body) !important;
	line-height: var(--vl-lh, 1.7);
	margin-top: 0;
}

/* Preset classes (.has-*-color / .has-*-font-size, 0,1,0 + !important) outrank the (0,0,2) defaults above. */

/* Mixed-face headings: bold = script face, italic = display italic. */
html :where(.vl-landing) :is(h1, h2, h3) :is(strong, b) {
	font-family: var(--wp--preset--font-family--vl-script);
	font-weight: 700;
	font-style: italic;
}
html :where(.vl-landing) :is(h1, h2, h3) :is(em, i) {
	font-family: var(--wp--preset--font-family--vl-display);
	font-weight: 400;
	font-style: italic;
}

.vl-landing :is(img, svg) { max-width: 100%; height: auto; }

/* Don't inherit the sitewide `header`/`nav`/`footer` look: none of these elements are used here,
   but nav (core/navigation) gets titan.css `nav { border-top; margin-top: 34px !important }`. */
html :where(.vl-landing) nav {
	border-top: 0 !important;
	margin-top: 0 !important;
	width: auto;
}
html :where(.vl-landing) nav ul { justify-content: flex-end !important; gap: clamp(1rem, 3vw, 3.5rem) !important; }
html :where(.vl-landing) nav ul li a {
	padding: 0.5rem 0 !important;
	font: 500 var(--wp--preset--font-size--vl-nav)/1.2 var(--wp--preset--font-family--vl-body) !important;
	letter-spacing: 0 !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--vl-green) !important;
	background: none !important;
}
html :where(.vl-landing) nav ul li a:hover { color: var(--wp--preset--color--vl-orange) !important; background: none !important; }

/* ---------- Page wrapper ---------- */
.vl-landing.vl-main { background: #fff; overflow-x: clip; }
.vl-landing.vl-main > * { margin-block-start: 0; }
.vl-landing :where(.alignwide) { max-width: 1240px; }
.vl-landing [id] { scroll-margin-top: 1rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.vl-header { position: relative; z-index: 10; }
.vl-header__bar { min-height: 107px; gap: 1.5rem; }
.vl-header__logo { margin: 0; flex: 0 1 auto; }
/* The widths are 3% under the design's (clamp(11rem, 18vw, 17.5rem)) because the logo's viewBox lost the TM: the wordmark itself is the designed size. */
.vl-header__logo img { display: block; width: clamp(10.67rem, 17.46vw, 16.97rem); height: auto; }
.vl-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--vl-green); }
/* Below 1024px the PSD header is a green bar with a white logo and hamburger.
   The group's preset class sets its background with !important, so match it with extra specificity. */
@media (max-width: 1023px) {
	.vl-landing.vl-header { background-color: var(--wp--preset--color--vl-green) !important; }
	.vl-landing .vl-header__bar { min-height: 84px; }
	.vl-landing .vl-header__logo img { filter: brightness(0) invert(1); width: 12.12rem; }
	.vl-landing.vl-header .wp-block-navigation__responsive-container-open { color: #fff; }
}
.vl-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--vl-green); }
.vl-header .wp-block-navigation__responsive-container.is-menu-open a { color: #fff !important; }

/* ---------- Buttons ---------- */
.vl-landing .wp-block-button__link {
	font-family: var(--wp--preset--font-family--vl-ui);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--vl-button);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.7em 1.8em;
	color: #fff;
	transition: filter 0.15s ease, background-color 0.15s ease;
}
.vl-landing .wp-block-button__link:hover { filter: brightness(0.92); }
.vl-landing .wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--vl-evergreen); outline-offset: 3px; }
.vl-landing .is-style-vl-orange .wp-block-button__link { background: var(--wp--preset--color--vl-orange); color: #fff; }
.vl-landing .is-style-vl-orange-aa .wp-block-button__link { background: var(--wp--preset--color--vl-orange-aa); color: #fff; }
.vl-landing .is-style-vl-lime .wp-block-button__link { background: var(--wp--preset--color--vl-lime); color: #fff; }
.vl-landing .is-style-vl-lime-aa .wp-block-button__link { background: var(--wp--preset--color--vl-lime-aa); color: #fff; }
/* Outlined pill: builder pills on mobile. Inactive text is sage (1.96:1); the AA twin uses darker sage. */
.vl-landing .is-style-vl-pill .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--vl-sage);
	border: 1px solid var(--wp--preset--color--vl-green);
	font-weight: 500; letter-spacing: 0.025em; padding: 0.55em 1.5em;
	font-size: var(--wp--preset--font-size--vl-tab);
}
.vl-landing .is-style-vl-pill-aa .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--vl-sage-aa);
	border: 1px solid var(--wp--preset--color--vl-green);
	font-weight: 500; letter-spacing: 0.025em; padding: 0.55em 1.5em;
	font-size: var(--wp--preset--font-size--vl-tab);
}
.vl-landing .is-style-vl-pill-active .wp-block-button__link {
	background: var(--wp--preset--color--vl-green); color: #fff;
	border: 1px solid var(--wp--preset--color--vl-green);
	letter-spacing: 0.025em; padding: 0.55em 1.5em;
	font-size: var(--wp--preset--font-size--vl-tab);
}

/* ---------- Heading styles ---------- */
/* Display: mixed serif + script in one heading. The block's size is the serif part (default
   vl-heading-serif); bold text inside renders in the script face at ~1.55x, matching the PSD
   (script 95-100px beside serif 60-65px). Section patterns can override per heading. */
.vl-landing .wp-block-heading.is-style-vl-display { --vl-lh: 1.1; text-align: center; }
.vl-landing .wp-block-heading.is-style-vl-display :is(strong, b) { font-size: calc(1.55em * var(--vl-script-scale)); line-height: 0.95; display: inline-block; }
.vl-landing .wp-block-heading.is-style-vl-script {
	font-family: var(--wp--preset--font-family--vl-script) !important;
	font-weight: 700 !important; font-style: italic; text-align: center;
	--vl-lh: 0.95;
}
/* Default size only when no font-size preset is chosen (a preset class wins otherwise). */
.vl-landing .wp-block-heading.is-style-vl-script:not([class*="-font-size"]) { font-size: var(--wp--preset--font-size--vl-display-lg) !important; }
/* Serif italic line (IvyOra Display Italic): the kicker above a script line. */
.vl-landing .wp-block-heading.is-style-vl-serif-italic { font-style: italic; font-weight: 400 !important; text-align: center; }
/* Medium weight of the same face (Location sub-line). */
.vl-landing .wp-block-heading.is-style-vl-serif-italic-medium { font-style: italic; font-weight: 500 !important; text-align: center; letter-spacing: 0; --vl-lh: 1.15; }
/* Script paragraph (stand-in for Swear Display Bold Italic). Size comes from a vl-script-* preset (already scaled). */
.vl-landing p.is-style-vl-script { font-family: var(--wp--preset--font-family--vl-script); font-weight: 700; font-style: italic; text-align: center; }
/* Eyebrow: Gotham-Black-style caps. */
.vl-landing :is(.wp-block-heading, p).is-style-vl-eyebrow {
	font-family: var(--wp--preset--font-family--vl-body) !important;
	font-weight: 700 !important;
	font-size: var(--wp--preset--font-size--vl-eyebrow) !important;
	letter-spacing: 0.05em !important; text-transform: uppercase !important;
	line-height: 1.2 !important; text-align: center;
}

/* ---------- Group styles ---------- */
.vl-landing .is-style-vl-card { border-radius: clamp(1.5rem, 2vw, 2rem); overflow: hidden; }
.vl-landing .is-style-vl-corner-tl { border-top-left-radius: clamp(8rem, 11.5vw, 13.75rem); overflow: hidden; }
.vl-landing .is-style-vl-corner-tr { border-top-right-radius: clamp(8rem, 11.5vw, 13.75rem); overflow: hidden; }
.vl-landing .is-style-vl-multiply { mix-blend-mode: multiply; }
/* Leaf motif overlay on any background colour (the PNG is a light line drawing). */
.vl-landing .is-style-vl-leaf-pattern { position: relative; isolation: isolate; }
.vl-landing .is-style-vl-leaf-pattern::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: var(--vl-leaf-motif);
	background-size: clamp(9rem, 14vw, 17rem) auto; background-repeat: repeat; opacity: 0.35;
}
/* Half-leaf strip along the bottom edge. */
.vl-landing .is-style-vl-leaf-border { position: relative; padding-bottom: clamp(3.5rem, 5vw, 5.75rem); }
.vl-landing .is-style-vl-leaf-border::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(3.5rem, 5vw, 5.75rem);
	background: var(--vl-leaf-border) repeat-x left bottom / auto 100%; pointer-events: none;
}

/* ---------- Cover styles ---------- */
.vl-landing .wp-block-cover.is-style-vl-circle {
	aspect-ratio: 1; min-height: 0; border-radius: 50%; padding: 0; overflow: hidden; text-align: center;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.21);
}
.vl-landing .wp-block-cover.is-style-vl-multiply .wp-block-cover__background { mix-blend-mode: multiply; }

/* ---------- Media & text styles ---------- */
.vl-landing .wp-block-media-text.is-style-vl-overlap { overflow: visible; }
.vl-landing .wp-block-media-text.is-style-vl-overlap .wp-block-media-text__media { border-radius: clamp(1.5rem, 2vw, 2rem); overflow: hidden; z-index: 1; }
.vl-landing .wp-block-media-text.is-style-vl-multiply .wp-block-media-text__content { mix-blend-mode: multiply; }
@media (min-width: 900px) {
	.vl-landing .wp-block-media-text.is-style-vl-overlap:not(.has-media-on-the-right) .wp-block-media-text__media { margin-inline-end: -6rem; }
	.vl-landing .wp-block-media-text.is-style-vl-overlap.has-media-on-the-right .wp-block-media-text__media { margin-inline-start: -6rem; }
}

/* ---------- Image styles ---------- */
.vl-landing .wp-block-image.is-style-vl-rounded img { border-radius: clamp(1.5rem, 2vw, 2rem); }
.vl-landing .wp-block-image.is-style-vl-knockout img { filter: brightness(0) invert(1); }

/* ---------- Hero (patterns/landing-hero.php) ---------- */
/* Cover height: 640px = the PSD's photo area above the band (629px desktop, ~641px mobile at 390).
   Tablet follows the sections.md proposal: 70vh, capped. Editors can still set a height on the block. */
.vl-landing .vl-hero__cover { min-height: 40rem; }
@media (min-width: 1200px) { .vl-landing .vl-hero__cover { min-height: 39.3rem; } }
@media (min-width: 782px) and (max-width: 1199px) { .vl-landing .vl-hero__cover { min-height: clamp(30rem, 70vh, 40rem); } }

/* Photo framing. One master photo serves every width. `cover` alone would show it ~18% smaller than the PSD, so it is
   zoomed to the PSD's scale (0.804 of the master at 1920px, 0.7816 at 390px). The origins are calibrated against the
   reference crops (tools/hero_calibrate.py: mean error 0.9 grey levels desktop, 1.3 mobile). Editors changing the Cover's focal point still work, but a replacement
   photo inherits this zoom. */
.vl-landing .vl-hero__cover .wp-block-cover__image-background { transform: scale(1.21); transform-origin: 39% 9%; }
@media (max-width: 781px) { .vl-landing .vl-hero__cover .wp-block-cover__image-background { transform: scale(1.16); transform-origin: 44% 19%; } }

/* PSD centres the title slightly above middle on desktop; on mobile it sits at the bottom of the photo. */
.vl-landing .vl-hero__cover .wp-block-cover__inner-container { padding-top: 0.5rem; }
@media (max-width: 781px) {
	.vl-landing .vl-hero__cover { align-items: flex-end; }
	.vl-landing .vl-hero__cover .wp-block-cover__inner-container { padding-top: 0; padding-bottom: 3.6rem; }
}
/* Two independent blocks: the H1 (serif italic) and the tagline (script). Sizes come from presets, so the block's
   font-size control works. Non-breaking spaces in the text reproduce the mobile PSD's line breaks. */
.vl-landing :is(.vl-hero__title, .vl-hero__tagline) {
	margin: 0; padding-inline: clamp(1rem, 7vw, 2.5rem); text-shadow: 0 0 35px rgba(0, 0, 0, 0.61);
}
.vl-landing .vl-hero__title { --vl-lh: 1.2; margin-bottom: 0.09em; }
.vl-landing .vl-hero__tagline { --vl-lh: 0.85; }
@media (min-width: 782px) { .vl-landing .vl-hero__tagline { --vl-lh: 1; } }

/* "Now Selling" band. The PSD fills it #156933 and blends a white leaf layer with Color Dodge at ~18% fill; here the
   leaf tile is added with plus-lighter, which lands within ~4 levels per channel of the PSD's colours. (Browsers without
   plus-lighter fall back to a plain 10% white overlay.) The wordmark is an SVG: vector letters plus the orange. */
.vl-landing .vl-hero__band {
	position: relative; z-index: 1; isolation: isolate;
	height: clamp(4.79rem, 4.43rem + 1.464vw, 6.19rem);
	display: flex; align-items: center; justify-content: center;
}
.vl-landing .vl-hero__band::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--vl-leaf-band-tile) center / auto 94% repeat-x;
	mix-blend-mode: plus-lighter; opacity: 0.1;
}
/* 533px wide at 1920, 291px at 390; the PSD sets it ~5px high of centre on desktop (the leaf pokes above the band). */
.vl-landing .vl-hero__wordmark { margin: 0; width: clamp(18.19rem, 14.33rem + 15.82vw, 33.31rem); position: relative; top: -0.26vw; }
.vl-landing .vl-hero__wordmark img { display: block; width: 100%; height: auto; max-width: none; }

/* ---------- Heading / paragraph styles used by the intro (and reused later) ---------- */
/* Lead: IvyOra Display Medium, centred. Size comes from a preset (vl-heading-lead). */
.vl-landing .wp-block-heading.is-style-vl-lead { font-weight: 500 !important; text-align: center; --vl-lh: 1.25; }
/* Light: IvyOra Display 300 (stand-in for Ivy Presto Display Light), centred. */
.vl-landing .wp-block-heading.is-style-vl-light { font-weight: 300 !important; text-align: center; letter-spacing: 0.01em !important; --vl-lh: 1.1; }
/* Regular: IvyOra Display 400, centred (Amenities heading and panel titles). */
/* School name: Gotham Black caps (Montserrat 700 stand-in), left aligned; the size comes from a preset. */
.vl-landing .wp-block-heading.is-style-vl-school-name { font-family: var(--wp--preset--font-family--vl-body) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0 !important; text-align: left; --vl-lh: 0.96; }
.vl-landing p.is-style-vl-school-grades { font-weight: 300; text-transform: uppercase; letter-spacing: 0.01em; text-align: left; }
.vl-landing .wp-block-heading.is-style-vl-regular { font-weight: 400 !important; text-align: center; letter-spacing: 0.01em !important; --vl-lh: 1.1; }
/* Stat badge text. Value = numeral face, unit = small caps beside it, label = bold caps. Sizes come from presets. */
.vl-landing p.is-style-vl-stat-value { font-family: var(--wp--preset--font-family--vl-numeral); font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; --vl-lh: 0.85; margin: 0; }
.vl-landing p.is-style-vl-stat-unit { font-family: var(--wp--preset--font-family--vl-numeral); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; --vl-lh: 1; margin: 0; }
.vl-landing p.is-style-vl-stat-label { font-family: var(--wp--preset--font-family--vl-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; --vl-lh: 1.05; margin: 0; max-width: 80%; }
/* The stat paragraphs are centred inside the circle (the theme's `p` rules otherwise left-align them). */
.vl-landing p:is(.is-style-vl-stat-value, .is-style-vl-stat-unit, .is-style-vl-stat-label) { text-align: center; }
/* Circle badge: a coloured circle with the leaf motif behind centred content. Colour = the block's background preset. */
.vl-landing .wp-block-group.is-style-vl-circle {
	position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1; border-radius: 50%; padding: 0; /* core adds padding to any group with a background */
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.21);
}
.vl-landing .wp-block-group.is-style-vl-circle::before {
	content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 69%; aspect-ratio: 1; transform: translate(-50%, -50%);
	background: var(--vl-leaf-motif) center / contain no-repeat; opacity: 0.16; pointer-events: none;
}
.vl-landing .wp-block-group.is-style-vl-circle > * { margin-block: 0; }

/* ---------- Intro (patterns/landing-intro.php) ---------- */
.vl-landing .vl-intro__title { max-width: 62.2rem; }
/* PSD mobile insets: heading ~17px, copy ~30px, circles ~29px (the section itself carries ~16px). */
.vl-landing :is(.vl-intro__copy, .vl-builders__copy, .vl-amenities__copy, .vl-location__copy) { padding-inline: var(--wp--preset--spacing--vl-xs); --vl-lh: 1.67; }
@media (min-width: 782px) { .vl-landing :is(.vl-intro__copy, .vl-builders__copy, .vl-amenities__copy) { --vl-lh: 1.78; } }  /* PSD: 32px / 18px desktop, 30px / 18px mobile */
/* PSD separates the two paragraphs by one blank line. */
.vl-landing :is(.vl-intro__copy, .vl-builders__copy, .vl-amenities__copy) > p + p { margin-top: 1.7em; }
/* Four circles in a row from 900px (PSD desktop: 266px circles, 39px gaps); 2 x 2 below (PSD mobile; sections.md tablet proposal). */
.vl-landing .vl-stats { max-width: 73.8rem; }
@media (max-width: 899px) {
	.vl-landing .vl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--vl-xs); max-width: 27rem; padding-inline: var(--wp--preset--spacing--vl-xs); }
}
.vl-landing .vl-stat__figure { display: flex; align-items: baseline; justify-content: center; gap: 0.35em; margin: 0; }
.vl-landing .vl-stat > p.is-style-vl-stat-label { margin-top: 0.3em; }

/* ---------- Updates form (patterns/landing-updates-form.php) ---------- */
/* Photo | green panel. The panel fills the content column; the big rounded corner is top-right on desktop and bottom-left
   when stacked (PSD desktop / mobile). */
.vl-landing .vl-updates__split { min-height: 43rem; }
/* Keep the house in frame whatever height the (SmartTouch-configured) form makes the row. */
/* Photo framing fitted to the PSD crop with tools/fit_crop.py (form 3521's five fields make the panel the PSD's height, so the desktop crop is a plain cover fit at 59%; phones are a 1.08x zoom of a 499 x 375 box). */
.vl-landing.vl-updates .wp-block-media-text__media img { object-position: 50% 59%; }
.vl-landing .vl-updates__intro { max-width: 30.3rem; }
.vl-landing.vl-updates .wp-block-media-text__content { padding: 0; align-self: stretch; }
/* In the editor the content column is the block list itself (and carries core's 8% inset); make the panel fill it there too. */
.vl-landing.vl-updates .wp-block-media-text > .wp-block-media-text__content.block-editor-block-list__layout { padding: 0; align-self: stretch; }
.vl-landing .vl-updates__panel { height: 100%; padding-inline: var(--wp--preset--spacing--vl-xs); }
@media (min-width: 782px) { .vl-landing .vl-updates__panel { padding-left: var(--wp--preset--spacing--vl-m); } }
@media (max-width: 781px) {
	.vl-landing .vl-updates__split { min-height: 0; }
	.vl-landing.vl-updates .wp-block-media-text__media { min-height: 0; aspect-ratio: 499 / 375; }
	.vl-landing.vl-updates .wp-block-media-text__media img { object-position: 50% 100% !important; scale: 1.082; transform-origin: 24.3% 101.3%; }
	.vl-landing .vl-updates__panel.is-style-vl-corner-tr { border-top-right-radius: 0; border-bottom-left-radius: clamp(8rem, 11.5vw, 13.75rem); }
}
/* Two big leaf motifs behind the form (PSD: ~47% of the panel width, low contrast). */
.vl-landing .vl-updates__panel { position: relative; isolation: isolate; }
.vl-landing .vl-updates__panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.13;
	background: var(--vl-leaf-motif) no-repeat, var(--vl-leaf-motif) no-repeat;
	background-size: 47% auto, 47% auto; background-position: 1.7% 34%, 51.8% 34%;
}
@media (max-width: 781px) { .vl-landing .vl-updates__panel::before { background-size: 53% auto, 53% auto; background-position: 100% 3%, 100% 48%; } }

/* SmartTouch form, single column, white square fields (PSD). SmartTouch styles itself from --stform-* variables; the
   theme forces its submit button with !important, so that one rule is beaten with a scoped selector. */
.vl-landing .vl-nexgen .stForm {
	--stform-field-padding: 15px; --stform-field-color: var(--wp--preset--color--vl-charcoal); --stform-field-background: #fff;
	--stform-field-radius: 0px; --stform-field-border-size: 0px;
	--stform-field-font-family: var(--wp--preset--font-family--vl-ui); --stform-field-font-size: 16px;
	--stform-font-family: var(--wp--preset--font-family--vl-body); --stform-font-size: 16px;
	--stform-label-font-family: var(--wp--preset--font-family--vl-body);
	--stform-checkbox-size: 21px;
	--stform-button-background: var(--vl-submit-bg, var(--wp--preset--color--vl-orange)); --stform-button-color: #fff;
	color: inherit; overflow: visible;
}
.vl-landing .vl-nexgen .stFields { gap: 5px; }
.vl-landing .vl-nexgen .stFields > .stField { grid-column: span 12; }
.vl-landing .vl-nexgen .stForm ::placeholder { color: var(--wp--preset--color--vl-gray); }
.vl-landing .vl-nexgen .stForm a { color: inherit; text-decoration: underline; }
/* Select arrow: the PSD's solid triangle instead of SmartTouch's chevron. */
.vl-landing .vl-nexgen .stField .stSelect::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 17'%3E%3Cpath d='M0 0h20L10 17z' fill='%2352832a'/%3E%3C/svg%3E") no-repeat center / 20px 17px;
}
/* Checkbox: white outline square, no fill (PSD). */
.vl-landing .vl-nexgen .stField .stCheckBox label input[type="checkbox"] { border: 1px solid #fff; background: transparent; }
.vl-landing .vl-nexgen .stField .stCheckBox label { color: inherit; font-size: 16px; line-height: 1.2; }
/* Submit: orange (or lime) pill, centred. */
.vl-landing .vl-nexgen .stSubmit { flex-direction: column; align-items: center; gap: 0; margin-top: 0.4rem; }
.vl-landing .vl-nexgen .stSubmit .stDisclaimer { width: 100%; }
html :where(.vl-landing) .vl-nexgen button.stButton {
	background: var(--vl-submit-bg, var(--wp--preset--color--vl-orange)) !important; color: #fff !important;
	font: 500 var(--wp--preset--font-size--vl-button)/1.2 var(--wp--preset--font-family--vl-ui) !important;
	text-transform: uppercase; letter-spacing: 0 !important; border-radius: 999px !important;
	padding: 0.7em 1.8em !important; width: 74% !important; min-width: 14rem; margin: 0 !important;
}
html :where(.vl-landing) .vl-nexgen button.stButton:hover { filter: brightness(0.92); }
/* Keyboard focus: SmartTouch removes the browser outline. A white ring with a dark inner ring shows on green, orange and photo backgrounds. */
.vl-landing .vl-nexgen :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #fff !important; outline-offset: 2px; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.6); }
.vl-landing .vl-nexgen .stCheckBox input[type="checkbox"]:focus-visible { outline-offset: 3px; }
.vl-landing .vl-nexgen.is-style-vl-orange { --vl-submit-bg: var(--wp--preset--color--vl-orange); }
.vl-landing .vl-nexgen.is-style-vl-orange-aa { --vl-submit-bg: var(--wp--preset--color--vl-orange-aa); }
.vl-landing .vl-nexgen.is-style-vl-lime { --vl-submit-bg: var(--wp--preset--color--vl-lime); }
.vl-landing .vl-nexgen.is-style-vl-lime-aa { --vl-submit-bg: var(--wp--preset--color--vl-lime-aa); }

/* ---------- Tab buttons (core/button styles "Valencia Tab" and "Valencia Tab (AA)") ---------- */
/* Desktop: text-only tabs, sage when inactive, green when current. Below 782px they become outlined pills (PSD mobile). The
   current tab is marked by aria-current (set by carousel.js); until the script runs, the first tab of the Builders row shows as current. */
.vl-landing :is(.is-style-vl-tab, .is-style-vl-tab-aa) .wp-block-button__link {
	background: none; border: 0; border-radius: 0; padding: 0.4em 0; box-shadow: none; text-transform: uppercase; letter-spacing: 0;
	font: 700 var(--wp--preset--font-size--vl-tab)/1.2 var(--wp--preset--font-family--vl-body); color: var(--wp--preset--color--vl-sage); transition: color 0.15s ease;
}
.vl-landing .is-style-vl-tab-aa .wp-block-button__link { color: var(--wp--preset--color--vl-sage-aa); }
.vl-landing :is(.is-style-vl-tab, .is-style-vl-tab-aa) .wp-block-button__link:is([aria-current="true"], :hover, :focus-visible),
.vl-landing.vl-builders:not(.has-js) .vl-builders__tabs .wp-block-button:first-child .wp-block-button__link { color: var(--wp--preset--color--vl-green); }
.vl-landing :is(.is-style-vl-tab, .is-style-vl-tab-aa) .wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--vl-evergreen); outline-offset: 3px; }
@media (max-width: 781px) {
	.vl-landing :is(.is-style-vl-tab, .is-style-vl-tab-aa) .wp-block-button__link {
		display: block; width: 100%; text-align: center; border: 1px solid var(--wp--preset--color--vl-green); border-radius: 999px;
		background: #fff; padding: 0.5em 0.6em; font-weight: 500; letter-spacing: 0.025em; font-size: 0.8125rem;
	}
	.vl-landing :is(.is-style-vl-tab, .is-style-vl-tab-aa) .wp-block-button__link:is([aria-current="true"], :hover, :focus-visible),
	.vl-landing.vl-builders:not(.has-js) .vl-builders__tabs .wp-block-button:first-child .wp-block-button__link { background: var(--wp--preset--color--vl-green); color: #fff; }
}

/* ---------- Carousel (shared by Builders and Amenities) ---------- */
/* Markup: stage group .vl-carousel > track group .vl-carousel__track > slides .vl-carousel__slide (Media & Text blocks). Sections set the
   slide size with --vl-slide-w / --vl-slide-pad / --vl-slide-gap (in cqw: the stage is the container) and style the slides and card themselves.
   assets/js/carousel.js adds arrows, dots and the active state; modifiers on the stage: .vl-carousel--dots, .vl-carousel--card-nav. */
.vl-landing .vl-carousel { --vl-slide-w: 100cqw; --vl-slide-pad: 0px; --vl-slide-gap: 0px; position: relative; container-type: inline-size; }
.vl-landing .vl-carousel__track {
	display: flex; gap: var(--vl-slide-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding-inline: var(--vl-slide-pad); margin: 0; scrollbar-width: thin;
}
.vl-landing.has-js .vl-carousel__track { scrollbar-width: none; }
.vl-landing.has-js .vl-carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .vl-landing .vl-carousel__track { scroll-behavior: smooth; } }
.vl-landing .vl-carousel__track > .vl-carousel__slide { flex: 0 0 var(--vl-slide-w); scroll-snap-align: center; margin: 0; }
/* Dots and arrows (added by the script). Colours come from --vl-arrow-color; positions are set by each section. */
.vl-landing .vl-carousel__dots { display: flex; justify-content: center; gap: 0.7rem; }
.vl-landing .vl-carousel__dot { width: 1.25rem; height: 1.25rem; padding: 0; border: 2px solid var(--wp--preset--color--vl-green-pale); border-radius: 50%; background: var(--wp--preset--color--vl-green-pale); cursor: pointer; }
.vl-landing .vl-carousel__dot[aria-current="true"] { background: transparent; }
.vl-landing .vl-carousel__arrow {
	width: 2.5rem; height: 4.5rem; margin: 0; padding: 0; border: 0; cursor: pointer; background: var(--vl-arrow-color, var(--wp--preset--color--vl-lime));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 72'%3E%3Cpath d='M5 3l31 33L5 69' fill='none' stroke='%23000' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 72'%3E%3Cpath d='M5 3l31 33L5 69' fill='none' stroke='%23000' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vl-landing .vl-carousel__arrow--prev { scale: -1 1; }
.vl-landing .vl-carousel__dot:focus-visible, .vl-landing .vl-carousel__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Editor: show every slide stacked, so each can be selected and edited (no horizontal scrolling). */
.editor-styles-wrapper .vl-carousel__track { display: block; overflow: visible; padding-inline: 0; }
.editor-styles-wrapper .vl-carousel__track > .vl-carousel__slide { margin-bottom: 1.5rem; }

/* ---------- Builders (patterns/landing-builders.php) ---------- */
.vl-landing.vl-builders .vl-carousel { --vl-slide-w: 65.3cqw; --vl-slide-pad: 17.35cqw; --vl-slide-gap: 3.9cqw; }
@media (min-width: 782px) and (max-width: 1199px) { .vl-landing.vl-builders .vl-carousel { --vl-slide-w: 90cqw; --vl-slide-pad: 5cqw; --vl-slide-gap: 5cqw; } }
@media (max-width: 781px) { .vl-landing.vl-builders .vl-carousel { --vl-slide-w: 100cqw; --vl-slide-pad: 0px; --vl-slide-gap: 0px; } }
.vl-landing.vl-builders .vl-builders__tabs { justify-content: center; gap: 3.2rem; padding-inline: var(--wp--preset--spacing--vl-xs); }
@media (max-width: 781px) { .vl-landing.vl-builders .vl-builders__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem var(--wp--preset--spacing--vl-xs); max-width: 27rem; margin-inline: auto; } .vl-landing.vl-builders .vl-builders__tabs .wp-block-button { width: 100%; } }
/* Slides: rounded, the neighbours washed out (they peek at the sides). */
.vl-landing.vl-builders .vl-carousel__slide {
	min-height: 35rem; overflow: hidden; border-radius: clamp(1.5rem, 2vw, 2rem); opacity: 0.55; transition: opacity 0.25s ease;
}
.vl-landing.vl-builders .vl-carousel__slide.is-active,
.vl-landing.vl-builders:not(.has-js) .vl-carousel__slide:first-child { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vl-landing.vl-builders .vl-carousel__slide { transition: none; } }
@media (min-width: 782px) and (max-width: 1199px) { .vl-landing.vl-builders .vl-carousel__slide { min-height: 28rem; } }
@media (max-width: 781px) { .vl-landing.vl-builders .vl-carousel__slide { min-height: 0; border-radius: 0; } .vl-landing.vl-builders .wp-block-media-text__media { min-height: 15.6rem; } }
/* The card: leaf motif behind centred logo and left-aligned text. */
.vl-landing.vl-builders .wp-block-media-text__content { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-start; gap: 2.5rem; padding: 8.5rem 15% 6rem 18%; }
.vl-landing.vl-builders .wp-block-media-text__content::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.1;
	background: var(--vl-leaf-motif) no-repeat right 8% bottom 4% / 112% auto;
}
/* PSD: the logo is wider than the text column and centred on the card. */
.vl-landing.vl-builders .vl-builder-slide__logo { margin: 0 -9% 0 -12%; display: flex; justify-content: center; }
.vl-landing.vl-builders .vl-builder-slide__logo img { height: 6rem; width: auto; max-width: 100%; object-fit: contain; }
.vl-landing.vl-builders .wp-block-media-text__content > p { margin: 0; }
@media (max-width: 781px) {
	.vl-landing.vl-builders .wp-block-media-text__content { padding: 1.5rem var(--wp--preset--spacing--vl-s) 2rem; }
	.vl-landing.vl-builders .vl-builder-slide__logo img { height: 3rem; }
}
/* Dots: bottom of the card on desktop, above the logo when stacked. */
.vl-landing.vl-builders .vl-carousel__dots { position: absolute; left: 0; right: 0; bottom: 3.8rem; }
@media (max-width: 781px) { .vl-landing.vl-builders .vl-carousel__dots { position: static; order: -1; } }
/* Arrows: outside the centred slide on desktop, over the photo edges below 1200px. */
.vl-landing.vl-builders .vl-carousel__arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
.vl-landing.vl-builders .vl-carousel__arrow--prev { left: calc(17.35cqw - 3.6rem); }
.vl-landing.vl-builders .vl-carousel__arrow--next { left: calc(82.65cqw + 0.75rem); }
@media (min-width: 782px) and (max-width: 1199px) {
	.vl-landing.vl-builders .vl-carousel__arrow--prev { left: calc(5cqw + 1rem); }
	.vl-landing.vl-builders .vl-carousel__arrow--next { left: calc(5cqw + 60.7cqw - 3.5rem); }
}
@media (max-width: 781px) {
	.vl-landing.vl-builders .vl-carousel__arrow { top: 7.8rem; width: 1.6rem; height: 2.9rem; }
	.vl-landing.vl-builders .vl-carousel__arrow--prev { left: 0.9rem; }
	.vl-landing.vl-builders .vl-carousel__arrow--next { left: auto; right: 0.9rem; }
}
@media (max-width: 781px) { .vl-landing.vl-builders .vl-builders__cta .wp-block-button__link { padding: 0.6em 1.3em; } }
.editor-styles-wrapper .vl-builders .vl-carousel__slide { opacity: 1; }

/* ---------- Amenities (patterns/landing-amenities.php) ---------- */
/* Sizes below are the PSD's at 1920px written as container-query units of the stage (1% = 19.2px); the carousel is shared (see "Carousel"). */
.vl-landing.vl-amenities { position: relative; isolation: isolate; }
/* Faint leaf motifs down the left edge (PSD: ~170px wide, from 37% to 80% of the section height). */
.vl-landing.vl-amenities::before {
	content: ""; position: absolute; z-index: -1; left: 0; top: 37%; height: 43%; width: 9.4vw; pointer-events: none;
	background: color-mix(in srgb, var(--wp--preset--color--vl-sage) 14%, var(--wp--preset--color--vl-mint));
	-webkit-mask: var(--vl-leaf-motif) 0 0 / 100% auto repeat-y; mask: var(--vl-leaf-motif) 0 0 / 100% auto repeat-y;
}
.vl-landing.vl-amenities .vl-amenities__head > * { margin: 0; }
.vl-landing.vl-amenities .vl-amenities__head { margin-bottom: var(--wp--preset--spacing--vl-xs); padding-inline: var(--wp--preset--spacing--vl-xs); }
.vl-landing.vl-amenities .vl-amenities__head p.is-style-vl-script { margin-top: -0.12em; --vl-lh: 1.05; }
.vl-landing.vl-amenities .vl-carousel { --vl-slide-w: 100cqw; --vl-slide-pad: 0px; --vl-slide-gap: 0px; }
/* One slide at a time (no peeks): the slide fills the stage and insets its own content to the PSD's 80%. */
.vl-landing.vl-amenities .vl-carousel__slide { box-sizing: border-box; padding-inline: 10cqw; min-height: 34.4cqw; overflow: visible; }
.vl-landing.vl-amenities .wp-block-media-text__media { border-radius: clamp(1.5rem, 2vw, 2rem); overflow: hidden; }
/* Photo framing. Only the Orchard House slide reproduces the PSD's crop (the master at 1:1, a ~1.2x zoom of the cover fit, window at x 64, y 300 of
   1289 x 967, fitted with a pixel search), so it carries its own class. Every other slide uses the plain cover fit and its own focal point: the
   zoom is tuned to one photo and mangles any other (client feedback 2). Add the class to a slide only if its photo is framed like the PSD's. */
.vl-landing.vl-amenities .vl-amenities__slide--psd-crop .wp-block-media-text__media img { scale: 1.2; transform-origin: 29.8% 94.5%; }
/* The panel overlaps the photo by ~10% of the slide. Only its green fill multiplies with the photo (a pseudo-element, so the text stays crisp
   where it crosses the photo, as in the PSD); the group's own background is switched off for the green preset. Neither the content column nor
   the panel may create a stacking context (no z-index, opacity, transform), or the multiply could not see the photo. */
.vl-landing.vl-amenities .wp-block-media-text__content { position: relative; margin-inline-start: -8.1cqw; padding: 0; }
.vl-landing.vl-amenities .vl-amenities__panel {
	display: flex; flex-direction: column; gap: 1.6cqw; min-height: 26.7cqw; padding: 3cqw 4.1cqw max(7.4cqw, 7.6rem) 4.4cqw; box-sizing: border-box;
}
.vl-landing.vl-amenities .vl-amenities__panel { position: relative; }
.vl-landing.vl-amenities .vl-amenities__panel.has-vl-green-background-color { background-color: transparent !important; }  /* core's preset class is !important */
.vl-landing.vl-amenities .vl-amenities__panel.has-vl-green-background-color::before {
	content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--vl-green); mix-blend-mode: multiply; pointer-events: none;
}
.vl-landing.vl-amenities .vl-amenities__panel > * { position: relative; margin: 0; }
.vl-landing.vl-amenities .vl-amenities__panel p { --vl-lh: 1.5; }
.vl-landing.vl-amenities .vl-amenities__title { text-align: left; }
/* Prev (white) and next (lime) arrows sit at the panel's bottom right; carousel.js adds them (.vl-carousel--card-nav). */
.vl-landing.vl-amenities .vl-carousel__nav { position: absolute; right: 2.1cqw; bottom: 1.8cqw; display: flex; gap: 1.7cqw; }
.vl-landing.vl-amenities .vl-carousel__arrow--prev { --vl-arrow-color: var(--wp--preset--color--vl-white); }
.vl-landing.vl-amenities .vl-amenities__cta .wp-block-button__link { white-space: nowrap; }
/* Below 900px (sections.md tablet proposal): photo on top, the panel overlaps its bottom edge, arrows centred at the panel bottom. */
@media (max-width: 899px) {
	.vl-landing.vl-amenities::before { display: none; }
	.vl-landing.vl-amenities .vl-carousel__slide { grid-template-columns: 100% !important; min-height: 0; padding-inline: 0; }
	.vl-landing.vl-amenities .wp-block-media-text__media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; min-height: 0; border-radius: 0; }
	.vl-landing.vl-amenities .wp-block-media-text__content { grid-column: 1; grid-row: 2; margin: calc(-1 * min(22cqw, 9rem)) 0 0; }
	.vl-landing.vl-amenities .vl-amenities__panel { min-height: 0; padding: 3.5cqw 7.6cqw calc(5cqw + 4.2rem); gap: 4.5cqw; }
	.vl-landing.vl-amenities .vl-amenities__title { text-align: center; }
	.vl-landing.vl-amenities .vl-carousel__nav { left: 0; right: 0; bottom: 5cqw; justify-content: center; gap: 2rem; }
	.vl-landing.vl-amenities .vl-carousel__arrow { width: 1.65rem; height: 3rem; }
}
/* Phones: the PSD's portrait photo is a ~1.35x zoom of the master, anchored near its lower left (Orchard House only; see "Photo framing" above). */
@media (max-width: 599px) {
	.vl-landing.vl-amenities .wp-block-media-text__media { aspect-ratio: 499 / 660; }
	.vl-landing.vl-amenities .vl-amenities__slide--psd-crop .wp-block-media-text__media img { object-position: 10% 50% !important; scale: 1.35; transform-origin: 0 92%; }  /* master at ~0.92x, window x 52, y 212 */
}
@media (min-width: 900px) and (max-width: 1199px) {
	/* Narrower slide, so a wider panel (overlap 15%) keeps the title on one line and the text clear of the arrows. */
	.vl-landing.vl-amenities .vl-carousel__slide { padding-inline: 5cqw; grid-template-columns: 64% 1fr !important; }
	.vl-landing.vl-amenities .wp-block-media-text__content { margin-inline-start: -13.5cqw; }
}

/* ---------- Next Chapter (patterns/landing-next-chapter.php) ---------- */
/* Sizes are the PSD's at 1920px as container-query units of the section (1% = 19.2px). The section is the container; the media-text is alignfull. */
.vl-landing.vl-next-chapter { container-type: inline-size; }
.vl-landing.vl-next-chapter .vl-next-chapter__feature { margin: 0; align-items: center; }
.vl-landing.vl-next-chapter .wp-block-media-text__content { padding: 0; }  /* core insets the content column by 8% */
.vl-landing.vl-next-chapter .vl-next-chapter__panel { position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.vl-landing.vl-next-chapter .vl-next-chapter__panel > * { margin: 0; }
.vl-landing.vl-next-chapter .vl-next-chapter__panel > p.is-style-vl-script { --vl-lh: 1.05; margin-top: -0.12em; }
.vl-landing.vl-next-chapter .vl-next-chapter__title { max-width: 26rem; margin-inline: auto; --vl-lh: 1.28; }
/* Pearland only (pearland-next-chapter.php): its heading would leave "Your" alone on the last line at 768px. Balanced lines avoid it; the Manvel heading has no vl-text-balance class. */
.vl-landing.vl-next-chapter .vl-next-chapter__title.vl-text-balance { text-wrap: balance; }
/* Leaf pattern: the motif tinted a shade darker than the panel (PSD lines are ~5-8% darker), tiled behind the text. */
.vl-landing.vl-next-chapter .vl-next-chapter__panel::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none; left: 1.3cqw; top: 4.7cqw; width: 40.4cqw; height: 26.3cqw; background: rgb(0 0 0 / 0.1);
	-webkit-mask: var(--vl-leaf-motif) 0 0 / 10.2cqw auto repeat; mask: var(--vl-leaf-motif) 0 0 / 10.2cqw auto repeat;
}
/* Photo: rounded on the left only, bleeding off the right edge, with a 69px orange multiply strip on its right edge. The PSD crop is the master at 1:1
   (a ~1.78x zoom of the cover fit; window x 284, y 380 of 1902 x 1269), so the zoom and origin below are fitted; a replacement photo inherits them. */
.vl-landing.vl-next-chapter.vl-next-chapter .wp-block-media-text__media { position: relative; overflow: hidden; border-radius: 2rem 0 0 2rem; margin: 0; }  /* beats the Overlap style's all-round radius */
.vl-landing.vl-next-chapter .wp-block-media-text__media img { scale: 1.78; transform-origin: 34.1% 35%; }
.vl-landing.vl-next-chapter .wp-block-media-text__media::after {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 6.45%; background: var(--wp--preset--color--vl-orange); mix-blend-mode: multiply; pointer-events: none;
}
@media (min-width: 900px) {
	/* Panel 53% (1017px), photo 47% + an 8.65% overlap (1069px). Heights: panel 685px, photo 590px, centred. */
	.vl-landing.vl-next-chapter .vl-next-chapter__panel { min-height: 35.7cqw; padding: 2cqw 10.5cqw 2cqw 14.6cqw; border-radius: 0 2rem 2rem 0; text-align: center; }
	.vl-landing.vl-next-chapter.vl-next-chapter .vl-next-chapter__feature.is-style-vl-overlap .wp-block-media-text__media { margin-inline-start: -8.65cqw; height: 30.7cqw; min-height: 0; align-self: center; }
}
/* 900-1199px: a wider panel (58%) so the heading keeps its lines; the photo shrinks to 42% + the overlap. */
@media (min-width: 900px) and (max-width: 1199px) {
	.vl-landing.vl-next-chapter .vl-next-chapter__feature { grid-template-columns: auto 42% !important; }
	.vl-landing.vl-next-chapter .vl-next-chapter__panel { padding: 2cqw 9.5cqw 2cqw 4cqw; }
}
/* Below 900px (sections.md tablet proposal): the panel on top, the photo overlapping its bottom edge, inset on the left and flush right, with the
   part of the photo below the panel tinted orange (PSD mobile). */
@media (max-width: 899px) {
	.vl-landing.vl-next-chapter .vl-next-chapter__feature { grid-template-columns: 100% !important; }
	.vl-landing.vl-next-chapter .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
	.vl-landing.vl-next-chapter.vl-next-chapter .wp-block-media-text__media { grid-column: 1; grid-row: 2; margin: -59cqw 0 0 7cqw; aspect-ratio: 464 / 387; height: auto; min-height: 0; border-radius: 1.4rem 0 0 1.4rem; }
	.vl-landing.vl-next-chapter .wp-block-media-text__media img { object-position: 0% 50% !important; scale: 1.77; transform-origin: 53.2% 67.8%; }  /* master at 0.54x, window x 352, y 374 */
	.vl-landing.vl-next-chapter .wp-block-media-text__media::after { top: auto; left: 0; width: auto; height: 24%; }
	.vl-landing.vl-next-chapter .vl-next-chapter__panel { min-height: 110cqw; justify-content: flex-start; padding: 13.4cqw 6cqw 63cqw; border-radius: 0; text-align: left; }
	.vl-landing.vl-next-chapter .vl-next-chapter__panel::before { left: 0; top: 7cqw; width: 100%; height: 60cqw; -webkit-mask-size: 28cqw auto; mask-size: 28cqw auto; }
	.vl-landing.vl-next-chapter .vl-next-chapter__title { max-width: none; margin-inline: 0; text-align: left; }
	.vl-landing.vl-next-chapter .vl-next-chapter__panel > p { text-align: left; }
}

/* ---------- Location (patterns/landing-location.php) ---------- */
.vl-landing.vl-location .vl-location__head > * { margin: 0; }
.vl-landing.vl-location .vl-location__head { padding-inline: var(--wp--preset--spacing--vl-xs); }
.vl-landing.vl-location .vl-location__head h3 { margin-top: 0.1em; }
@media (min-width: 1100px) { .vl-landing.vl-location .vl-location__copy { padding-inline: 0; } }  /* PSD: the copy is the full 63rem wide */
/* The badge grid keeps a side inset below ~1250px (the intro gets it from its section padding); above, it is the PSD's 1178px wide. */
.vl-landing.vl-location .vl-stats { box-sizing: border-box; max-width: calc(73.8rem + 2 * var(--wp--preset--spacing--vl-xs)); padding-inline: var(--wp--preset--spacing--vl-xs); }
/* Two raster maps until the designer supplies an SVG: the phone crop below 782px, the desktop one above. In the editor both show, so both can be selected. */
.vl-landing.vl-location .vl-location__map { margin-inline: auto; max-width: 49.7rem; }  /* client feedback 3: "taking over the site"; was 71rem (the PSD's 1136px), now 795px, 30% smaller */
.vl-landing.vl-location .vl-location__map a, .vl-landing.vl-location .vl-location__map img { display: block; }
.vl-landing.vl-location .vl-location__map img { width: 100%; height: auto; }
.vl-landing.vl-location .vl-location__map--mobile { display: none; }
@media (max-width: 781px) {
	.vl-landing.vl-location .vl-location__map--desktop { display: none; }
	.vl-landing.vl-location .vl-location__map--mobile { display: block; max-width: none; margin-inline: 0; }
}
.editor-styles-wrapper .vl-location__map--desktop, .editor-styles-wrapper .vl-location__map--mobile { display: block; }
.editor-styles-wrapper .vl-location__map--mobile { max-width: 31rem; margin-top: 1rem; }
.vl-landing.vl-location .vl-location__map + .vl-location__map { margin-top: 0; }
/* Visit Valencia band: a pale-green leaf pattern on white (a CSS mask). The PSD shows ONE row of the motif stretched to 339 x 296 on a
   347px pitch (1920 canvas; the phone PSD uses the same pixel size on its 499 canvas), centred on the text and button. leaf-tile-visit.svg is
   one such cell, repeated across only, so no second row can be cut by the band's edge. --vl-visit-tile is the cell width; the x offset puts
   the seams where the PSD has them (desktop: a cell starts 0.258 cells left of the edge; phone: 0.097 cells right of it). */
.vl-landing.vl-location .vl-location__visit { position: relative; isolation: isolate; text-align: center; --vl-visit-tile: clamp(12rem, 18.08vw, 22rem); --vl-visit-x: -0.258;
	--vl-visit-y: calc(50% + (var(--wp--preset--spacing--vl-s) - var(--wp--preset--spacing--vl-l)) / 2); }  /* centred on the content box (padding is vl-s top, vl-l bottom) */
.vl-landing.vl-location .vl-location__visit::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--wp--preset--color--vl-green-pale); opacity: 0.6;
	--vl-visit-pos: calc(var(--vl-visit-tile) * var(--vl-visit-x)) var(--vl-visit-y);
	-webkit-mask: url("../images/textures/leaf-tile-visit.svg") var(--vl-visit-pos) / var(--vl-visit-tile) auto repeat-x; mask: url("../images/textures/leaf-tile-visit.svg") var(--vl-visit-pos) / var(--vl-visit-tile) auto repeat-x;
}
@media (max-width: 781px) { .vl-landing.vl-location .vl-location__visit { --vl-visit-tile: min(69.5vw, 17.5rem); --vl-visit-x: 0.097; --vl-visit-y: 50%; } }  /* phones: the tile is nearly as tall as the band, so centre it in the band so it can't be cut (at most ~9px off the content's centre) */
.vl-landing.vl-location .vl-location__visit > * { margin-block: 0; }
.vl-landing.vl-location .vl-location__visit > * + * { margin-top: var(--wp--preset--spacing--vl-xs); }
.vl-landing.vl-location .vl-location__address { font-size: var(--wp--preset--font-size--vl-address-md) !important; }  /* the eyebrow style forces its own size */
@media (min-width: 782px) { .vl-landing.vl-location .vl-location__cta .wp-block-button__link { min-width: 31.75rem; } }  /* PSD: a 508px pill at 1920 */
@media (max-width: 899px) { .vl-landing.vl-location .vl-stats { padding-inline: calc(var(--wp--preset--spacing--vl-xs) * 2); } }  /* PSD phone inset ~29px; the intro gets it from its section padding */
@media (max-width: 781px) {
	.vl-landing.vl-location :is(.vl-location__head, .vl-location__copy) { padding-inline: calc(var(--wp--preset--spacing--vl-xs) * 2); }
	.vl-landing.vl-location .vl-location__visit { padding-inline: var(--wp--preset--spacing--vl-xs); }
	.vl-landing.vl-location .vl-location__cta .wp-block-button, .vl-landing.vl-location .vl-location__cta .wp-block-button__link { width: 100%; }
	.vl-landing.vl-location .vl-location__cta { display: block; }
}

/* ---------- Schools (patterns/landing-schools.php) ---------- */
/* The mirror of Next Chapter in green: photo on the left bleeding off the left edge with a 106px green multiply strip, a panel that overlaps its right
   edge and multiplies with it (only the fill, so the text stays crisp; see Amenities), leaf pattern in a darker green. 1% of the section = 19.2px at 1920. */
.vl-landing.vl-schools { container-type: inline-size; }
.vl-landing.vl-schools .vl-schools__feature { margin: 0; align-items: center; }
.vl-landing.vl-schools .wp-block-media-text__content { padding: 0; position: relative; }
.vl-landing.vl-schools .vl-schools__panel { position: relative; isolation: auto; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.vl-landing.vl-schools .vl-schools__panel.has-vl-green-background-color { background-color: transparent !important; }  /* core's preset class is !important */
.vl-landing.vl-schools .vl-schools__panel.has-vl-green-background-color::before { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--vl-green); mix-blend-mode: multiply; border-radius: inherit; pointer-events: none; }
.vl-landing.vl-schools .vl-schools__panel > * { position: relative; z-index: 1; margin: 0; }
.vl-landing.vl-schools .vl-schools__panel > h2 { text-align: center; }
.vl-landing.vl-schools .vl-schools__title { max-width: 30rem; margin-inline: auto; --vl-lh: 1.28; }
/* Leaf pattern: a CSS mask tinted darker than the panel, behind the text (a second pseudo-element on the content column, so it doesn't isolate the blend).
   As in the PSD it is a grid of whole motifs, 4 across and 3 down, never cut: the PSD stretches the motif to 182 x 161 on a 192.33 x 170 grid, and
   leaf-tile-schools.svg is exactly one grid cell (the motif centred in it). So the box is 4 x 3 tiles, placed so each motif lands where it sits in
   the PSD (first motif 167px right of and 111px below the panel's top left, at 1920; 1cqw = 19.2px there). All in cqw, so it holds at every width. */
.vl-landing.vl-schools .wp-block-media-text__content::after {
	content: ""; position: absolute; z-index: 0; pointer-events: none; left: 8.429cqw; top: 5.547cqw; width: calc(4 * 10.017cqw); height: calc(3 * 10.017cqw * 170 / 192.33);
	background: rgb(0 0 0 / 0.26);
	-webkit-mask: url("../images/textures/leaf-tile-schools.svg") 0 0 / 10.017cqw auto repeat; mask: url("../images/textures/leaf-tile-schools.svg") 0 0 / 10.017cqw auto repeat;
}
.vl-landing.vl-schools .wp-block-media-text__media { position: relative; overflow: hidden; border-radius: 0 2rem 2rem 0; margin: 0; }
/* Photo framing: the PSD crop is the master at 1:1 (a 1.06x zoom of the cover fit); a replacement photo inherits it. Fitted with tools/fit_crop.py. */
.vl-landing.vl-schools .wp-block-media-text__media img { scale: 1.063; transform-origin: 72.5% 50%; }
.vl-landing.vl-schools .wp-block-media-text__media::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 9.4%; background: var(--wp--preset--color--vl-green); mix-blend-mode: multiply; pointer-events: none; }
@media (min-width: 900px) {
	/* Photo 58.5% (1123px); panel 41.5% + a 7.1% overlap (934px); panel 693px, photo 595px, centred. */
	.vl-landing.vl-schools .vl-schools__feature { grid-template-columns: 58.5% 1fr !important; }
	.vl-landing.vl-schools.vl-schools .vl-schools__feature .wp-block-media-text__media { height: 31cqw; min-height: 0; align-self: center; }
	.vl-landing.vl-schools .wp-block-media-text__content { margin-inline-start: -7.1cqw; }
	.vl-landing.vl-schools .vl-schools__panel { min-height: 36.1cqw; padding: 2cqw 14cqw 2cqw 4.4cqw; border-radius: 2rem 0 0 2rem; }
}
/* 900-1199px: the photo narrows to 50% so the panel keeps room for the heading's lines. */
@media (min-width: 900px) and (max-width: 1199px) {
	.vl-landing.vl-schools .vl-schools__feature { grid-template-columns: 50% 1fr !important; }
	.vl-landing.vl-schools .vl-schools__panel { padding-right: 6cqw; }
}
/* Below 900px: panel on top, the photo (inset left, flush right, lime band across the part below the panel) overlapping its bottom edge. */
@media (max-width: 899px) {
	.vl-landing.vl-schools .vl-schools__feature { grid-template-columns: 100% !important; }
	.vl-landing.vl-schools .wp-block-media-text__content { grid-column: 1; grid-row: 1; margin: 0; }
	.vl-landing.vl-schools.vl-schools .wp-block-media-text__media { grid-column: 1; grid-row: 2; margin: -59cqw 0 0 7cqw; aspect-ratio: 464 / 387; height: auto; min-height: 0; border-radius: 1.4rem 0 0 1.4rem; }
	.vl-landing.vl-schools .wp-block-media-text__media::after { top: auto; width: auto; right: 0; height: 24%; background: var(--wp--preset--color--vl-lime); }
	.vl-landing.vl-schools .wp-block-media-text__media img { object-position: 83.7% 50% !important; scale: 1.173; transform-origin: 50% 49.3%; }  /* master at 0.57x, window x 271, y 58 */
	.vl-landing.vl-schools .vl-schools__panel { min-height: 110cqw; justify-content: flex-start; padding: 12cqw 6cqw 63cqw; border-radius: 0; }
	/* Stacked, the photo sits above the panel and is not multiplied (PSD mobile); only the lime band tints it. */
	.vl-landing.vl-schools .wp-block-media-text__media { z-index: 2; }
	.vl-landing.vl-schools .vl-schools__panel.has-vl-green-background-color::before { mix-blend-mode: normal; }
	/* Phone PSD (499px canvas): the same tile at 167px, 3 across and 3 down, the first motif 6px in and 19px below the panel top. The photo covers
	   most of it, as in the PSD; the strip left of the photo shows it running down. */
	.vl-landing.vl-schools .wp-block-media-text__content::after { left: 0.303cqw; top: 3.025cqw; width: calc(100cqw - 0.303cqw); height: calc(3 * 33.467cqw * 170 / 192.33); -webkit-mask-size: 33.467cqw auto; mask-size: 33.467cqw auto; }
	.vl-landing.vl-schools .vl-schools__panel > h2, .vl-landing.vl-schools .vl-schools__title { text-align: left; }
	.vl-landing.vl-schools .vl-schools__title { max-width: 18rem; margin-inline: 0; }
}
/* Copy (client feedback 3, Option A): the intro full width, the three schools in a row, then the two closing paragraphs full width.
   Same 70.5rem measure as the intro and Builders copy (the group's constrained layout). One spacing rhythm: paragraphs 1.7em apart,
   vl-m between the paragraphs and the schools, 0.4rem from a school's name to its grades. School text is centred in its column from 782px;
   on phones the columns stack, vl-xs apart, left-aligned with the paragraphs. */
.vl-landing.vl-schools .vl-schools__copy { margin-top: var(--wp--preset--spacing--vl-m); margin-bottom: 0; padding-inline: var(--wp--preset--spacing--vl-xs); }
.vl-landing.vl-schools .vl-schools__copy > * { margin-block: 0; }
.vl-landing.vl-schools .vl-schools__copy > p + p { margin-top: 1.7em; }
.vl-landing.vl-schools .vl-schools__copy > p + .vl-schools__list, .vl-landing.vl-schools .vl-schools__copy > .vl-schools__list + p { margin-top: var(--wp--preset--spacing--vl-m); }
.vl-landing.vl-schools .vl-schools__copy p { --vl-lh: 1.67; }
@media (min-width: 782px) { .vl-landing.vl-schools .vl-schools__copy p { --vl-lh: 1.78; } }
.vl-landing.vl-schools .vl-schools__list { gap: var(--wp--preset--spacing--vl-xs); }
.vl-landing.vl-schools .vl-schools__school { max-width: none; }
.vl-landing.vl-schools .wp-block-heading.is-style-vl-school-name { margin: 0; --vl-lh: 0.96; }
.vl-landing.vl-schools .vl-schools__school p { margin: 0.4rem 0 0; }
@media (min-width: 782px) {
	html :where(.vl-landing) .vl-schools__list .vl-schools__school > * { text-align: center !important; }
	.vl-landing .vl-schools__list .vl-schools__school { transform-origin: center center; }
}
@media (max-width: 781px) {
	.vl-landing.vl-schools .vl-schools__copy { padding-inline: calc(var(--wp--preset--spacing--vl-xs) * 1.5); margin-top: var(--wp--preset--spacing--vl-l); }
	.vl-landing.vl-schools .vl-schools__copy > p + .vl-schools__list, .vl-landing.vl-schools .vl-schools__copy > .vl-schools__list + p { margin-top: var(--wp--preset--spacing--vl-s); }
}
.editor-styles-wrapper .vl-schools__feature { margin-bottom: 1.5rem; }

/* ---------- Contact (patterns/landing-contact.php) ---------- */
/* Desktop: one orange-tinted photo with the heading, intro and form over it. Below 900px (sections.md): the photo is the top 96% of the page width with the text
   over its lower part, and the form moves onto a solid orange panel. 1% of the section = 19.2px at 1920. */
.vl-landing.vl-contact { container-type: inline-size; }
.vl-landing.vl-contact .vl-contact__cover { position: relative; padding: 0; min-height: 0; align-items: stretch; }
/* The PSD crop is the master at 1.19x (a 1.26x zoom of the cover fit; fitted with tools/fit_crop.py); a replacement photo inherits it. */
.vl-landing.vl-contact .wp-block-cover__image-background { scale: 1.255; transform-origin: 50% 96.9%; }
.vl-landing.vl-contact .wp-block-cover__inner-container { position: relative; z-index: 3; width: 100%; padding: 0; }
.vl-landing.vl-contact .vl-contact__cover::before {
	content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 19cqw; pointer-events: none; background: rgb(190 190 190 / 0.32);
	-webkit-mask: var(--vl-leaf-motif) 0 100% / 10.4cqw auto repeat-x; mask: var(--vl-leaf-motif) 0 100% / 10.4cqw auto repeat-x;
}
.vl-landing.vl-contact .vl-contact__cover::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 38%, rgb(0 0 0 / 0.5) 100%); }
.vl-landing.vl-contact .vl-contact__head > * { margin: 0; }
.vl-landing.vl-contact .vl-contact__title { text-align: left; }
.vl-landing.vl-contact .vl-contact__intro { --vl-lh: 1.56; }
.vl-landing.vl-contact .vl-contact__form { box-sizing: border-box; }
.vl-landing.vl-contact .vl-contact__closing { margin: 1.2rem 0 0; text-align: center; font-size: var(--wp--preset--font-size--vl-list-title) !important; }  /* the eyebrow style forces its own size */
.vl-landing.vl-contact .vl-nexgen .stField .stCheckBox label input[type="checkbox"] { background: transparent !important; }
/* The form: two columns of white square fields, then the consent line and the submit pill on one row. */
.vl-landing.vl-contact .vl-nexgen .stFields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; }
.vl-landing.vl-contact .vl-nexgen .stFields > .stField:has(.stCheckBox) { grid-column: span 7; align-self: center; }
/* Consent and Submit share a row only when the form has a consent checkbox (form 3521 has none: Submit then sits alone, centred). */
.vl-landing.vl-contact .vl-nexgen .stFields > .stSubmit { grid-column: span 12; margin-top: 0.4rem; }
.vl-landing.vl-contact .vl-nexgen .stFields > .stField:has(.stCheckBox) + .stSubmit { grid-column: span 5; margin-top: 0; }
/* SmartTouch adds stSpan6 / stSpanMobile12 to the fields listed in the block's "half-width field IDs". */
.vl-landing.vl-contact .vl-nexgen .stFields > .stField.stSpan6 { grid-column: span 6; }
@media (min-width: 900px) {
	.vl-landing.vl-contact .vl-contact__cover { min-height: 51.9cqw; }
	.vl-landing.vl-contact .vl-contact__head { margin-left: 13.5cqw; padding-top: 4.3cqw; }
	.vl-landing.vl-contact .vl-contact__intro { margin: 2.5cqw 0 0 5.5cqw; max-width: 39cqw; }
	.vl-landing.vl-contact .vl-contact__form.has-vl-orange-background-color { background-color: transparent !important; }  /* core's preset class is !important */
	.vl-landing.vl-contact .vl-contact__form { margin: 3.1cqw 0 0 19cqw; width: 65.1cqw; padding: 0; }
	.vl-landing.vl-contact .vl-nexgen .stForm { --stform-field-padding: 24px 46px; --stform-field-font-size: 21px; }
	.vl-landing.vl-contact .vl-nexgen .stField .stCheckBox label { font-size: clamp(1.2rem, 1.1vw, 1.6rem); font-weight: 700; }
	html :where(.vl-landing) .vl-contact .vl-nexgen button.stButton { width: 100% !important; font-size: 1.75rem !important; padding: 0.55em 1em !important; font-weight: 300 !important; }
	html :where(.vl-landing) .vl-contact .vl-nexgen .stFields > .stSubmit button.stButton { width: 42% !important; }  /* Submit alone on its row (no consent checkbox) */
	html :where(.vl-landing) .vl-contact .vl-nexgen .stFields > .stField:has(.stCheckBox) + .stSubmit button.stButton { width: 100% !important; }
}
@media (min-width: 900px) and (max-width: 1199px) {
	.vl-landing.vl-contact .vl-nexgen .stFields > .stField:has(.stCheckBox), .vl-landing.vl-contact .vl-nexgen .stFields > .stSubmit { grid-column: span 12; }
	.vl-landing.vl-contact .vl-nexgen .stFields > .stSubmit { margin-top: 0.8rem; }
	html :where(.vl-landing) .vl-contact .vl-nexgen button.stButton { width: 60% !important; }
}
@media (max-width: 899px) {
	.vl-landing.vl-contact .vl-contact__cover { background-color: var(--wp--preset--color--vl-orange); }
	.vl-landing.vl-contact .vl-contact__cover::after { display: none; }
	.vl-landing.vl-contact .vl-contact__cover::before { display: none; }
	/* The photo and its tint are only the top part (the PSD's 499 x 477 crop): the form below sits on solid orange. */
	.vl-landing.vl-contact .wp-block-cover__image-background, .vl-landing.vl-contact .wp-block-cover__background { height: 95.6cqw; bottom: auto; }
	.vl-landing.vl-contact .wp-block-cover__image-background { object-position: 75.3% 50% !important; scale: 1.24; transform-origin: 50% 99.6%; }  /* master at 0.56x, window x 1205, y 203 */
	.vl-landing.vl-contact .vl-contact__head { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; min-height: 95.6cqw; padding: 0 5cqw 5cqw; }
	.vl-landing.vl-contact .vl-contact__intro { margin-inline: 2.6cqw; }
	.vl-landing.vl-contact .vl-nexgen .stForm { --stform-field-padding: 10px 14px; }
	html :where(.vl-landing) .vl-contact .vl-nexgen button.stButton { width: 90% !important; }
	.vl-landing.vl-contact .vl-contact__head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 25%, rgb(0 0 0 / 0.7) 100%); }
	.vl-landing.vl-contact .vl-contact__title { text-align: center; }
	.vl-landing.vl-contact .vl-contact__form { padding: 4.6cqw 4.6cqw 7cqw; }
	.vl-landing.vl-contact .vl-nexgen .stFields > .stField:has(.stCheckBox), .vl-landing.vl-contact .vl-nexgen .stFields > .stSubmit, .vl-landing.vl-contact .vl-nexgen .stFields > .stField.stSpan6 { grid-column: span 12; }
	.vl-landing.vl-contact .vl-nexgen .stFields { gap: 8px; }
	.vl-landing.vl-contact .vl-nexgen .stSubmit { margin-top: 0.8rem; }
}

/* ---------- Motion (all of it off under prefers-reduced-motion; assets/js/motion.js and carousel.js add the classes) ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Next Chapter: the copy panel comes in from the left and the photo from the right and they meet. overflow-x: clip stops the off-screen start
	   position from adding a horizontal scrollbar. The pre-state only exists once JS has added vl-motion-ready, so without JS nothing is hidden. */
	.vl-landing.vl-next-chapter { overflow-x: clip; }
	.vl-landing.vl-next-chapter.vl-motion-ready .wp-block-media-text__content { transform: translateX(-70%); opacity: 0; }
	.vl-landing.vl-next-chapter.vl-motion-ready .wp-block-media-text__media { transform: translateX(70%); opacity: 0; }
	.vl-landing.vl-next-chapter.vl-motion-ready.is-in-view .wp-block-media-text__content,
	.vl-landing.vl-next-chapter.vl-motion-ready.is-in-view .wp-block-media-text__media { transform: none; opacity: 1; transition: transform 1s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.8s ease-out; }
	/* Swell: the intro circles, the Location circles and each school grow a little on hover and when tapped (.is-swelled, added by motion.js). */
	.vl-landing .vl-intro .vl-stat, .vl-landing .vl-location .vl-stat, .vl-landing .vl-schools__school { transition: transform 0.25s ease; }
	.vl-landing .vl-schools__school { transform-origin: left center; }
	.vl-landing .vl-intro .vl-stat.is-swelled, .vl-landing .vl-location .vl-stat.is-swelled { transform: scale(1.1); z-index: 2; }
	.vl-landing .vl-schools__school.is-swelled { transform: scale(1.06); }
	@media (hover: hover) {
		.vl-landing .vl-intro .vl-stat:hover, .vl-landing .vl-location .vl-stat:hover { transform: scale(1.1); z-index: 2; }
		.vl-landing .vl-schools__school:hover { transform: scale(1.06); }
	}
}
/* Carousel Pause/Play button (added by carousel.js, only when the carousel auto-advances). A small icon button in the carousel's control row, not a CTA
   (client feedback 2). Its row is reserved by CSS so nothing shifts when it appears. The icon is vl-green on white: 6.9:1. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.vl-landing .vl-carousel { padding-bottom: 2.9rem; }
	.editor-styles-wrapper .vl-carousel { padding-bottom: 0; }
}
.vl-landing .vl-carousel__pause {
	position: absolute; bottom: 0.35rem; left: 50%; translate: -50% 0; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--wp--preset--color--vl-green); border-radius: 50%; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5h3.5v14H7zM13.5 5H17v14h-3.5z' fill='%231a6833'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.vl-landing .vl-carousel__pause.is-paused { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l11 7-11 7z' fill='%231a6833'/%3E%3C/svg%3E"); background-size: 0.8rem; }
.vl-landing .vl-carousel__pause:hover { background-color: var(--wp--preset--color--vl-green-pale); }
.vl-landing .vl-carousel__pause:focus-visible { outline: 3px solid var(--wp--preset--color--vl-evergreen); outline-offset: 3px; }
/* Amenities keeps it at the right, under the panel's arrows; Builders keeps it centred under the dots. */
.vl-landing.vl-amenities .vl-carousel__pause { left: auto; right: 2.1cqw; translate: none; }
@media (max-width: 899px) { .vl-landing.vl-amenities .vl-carousel__pause { right: 1rem; } }

/* ---------- Hero background video (assets/js/hero-video.js adds .vl-hero__video after the page has loaded; the still stays the poster) ---------- */
/* The Vimeo player sits above the still and below the overlay and the text. Its iframe is sized to cover the box (the video is 2.4:1: 1920 x 800). */
.vl-landing .vl-hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; container-type: size; }
.vl-landing .vl-hero__video.is-playing { opacity: 1; }
.vl-landing .vl-hero__video iframe { position: absolute; left: 50%; top: 50%; width: max(100cqw, calc(100cqh * 2.4)); height: max(100cqh, calc(100cqw / 2.4)); translate: -50% -50%; border: 0; }
/* A scrim over the video only (the poster is untouched) keeps the white hero text legible at the video's weakest frame. */
.vl-landing .vl-hero__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.34), rgb(0 0 0 / 0.46) 45%, rgb(0 0 0 / 0.48)); }
/* A small, quiet corner button (client feedback 2). The fill stays dark enough that the white icon keeps 3:1 even over a white video frame:
   0.75 black over white leaves a relative luminance of 0.25, so white on it is 3.5:1. */
.vl-landing .vl-hero__pause {
	position: absolute; right: 0.85rem; bottom: 0.85rem; z-index: 3; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid rgb(255 255 255 / 0.9); border-radius: 50%; cursor: pointer;
	background: rgb(0 0 0 / 0.75) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcgNWgzdjE0SDd6bTcgMGgzdjE0aC0zeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==") center / 48% no-repeat;
}
.vl-landing .vl-hero__pause.is-paused { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTggNWwxMSA3LTExIDd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+"); }
.vl-landing .vl-hero__pause:hover { background-color: rgb(0 0 0 / 0.9); }
.vl-landing .vl-hero__pause:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.6); }

/* ---------- Popup form (the "vl-modal" group, shown as a <dialog> by assets/js/modal.js) ---------- */
/* Hidden by default (no flash while the script loads); shown inline when scripting is off, and in the editor so it can be edited. */
.vl-landing .vl-modal { display: none; }
@media (scripting: none) { .vl-landing .vl-modal { display: block; margin-top: var(--wp--preset--spacing--vl-m); } }
.editor-styles-wrapper .vl-modal { display: block; margin-top: var(--wp--preset--spacing--vl-m); }
.vl-landing .vl-modal__dialog .vl-modal { display: block; }
.vl-landing .vl-modal { box-sizing: border-box; padding: var(--wp--preset--spacing--vl-m) var(--wp--preset--spacing--vl-s); border-radius: clamp(1.5rem, 2vw, 2rem); }
.vl-landing .vl-modal > h2 { margin: 0 0 var(--wp--preset--spacing--vl-xs); }
.vl-landing .vl-modal__dialog { width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 0; border: 0; border-radius: clamp(1.5rem, 2vw, 2rem); background: transparent; color: #fff; }
.vl-landing .vl-modal__dialog::backdrop { background: rgb(0 0 0 / 0.65); }
.vl-landing .vl-modal__dialog[open] { animation: vl-modal-in 0.2s ease-out; }
@keyframes vl-modal-in { from { opacity: 0; transform: translateY(1rem); } }
@media (prefers-reduced-motion: reduce) { .vl-landing .vl-modal__dialog[open] { animation: none; } }
html.vl-has-modal { scrollbar-gutter: stable; }  /* the page keeps its width (and layout) while the popup locks scrolling */
html.vl-has-modal:has(dialog[open]) { overflow: hidden; }
.vl-landing .vl-modal__close {
	position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: rgb(255 255 255 / 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.vl-landing .vl-modal__close:hover { background-color: rgb(255 255 255 / 0.3); }
.vl-landing .vl-modal__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.6); }

/* ---------- Landing footer (patterns/landing-footer.php; replaces the sitewide footer part, DECISIONS.md 27) ---------- */
/* Colours, type and spacing follow the sitewide footer: #1c5649 (vl-footer-green), white Montserrat, a 1240px row, gold hairlines between the groups. */
.vl-landing.vl-site-footer { text-align: center; }
.vl-landing .vl-site-footer__row { gap: clamp(1.5rem, 4vw, 4rem); row-gap: var(--wp--preset--spacing--vl-xs); }
.vl-landing .vl-site-footer__logo { margin: 0; }
.vl-landing .vl-site-footer__logo img { display: block; height: auto; }
/* The "Follow us" group sits between the two logos, with the sitewide footer's gold hairline on each side (hidden once the row wraps). */
.vl-landing .vl-site-footer__follow { gap: 0.6rem; align-self: stretch; justify-content: center; padding-inline: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) { .vl-landing .vl-site-footer__follow { border-inline: 1px solid var(--wp--preset--color--vl-gold); } }
/* titan.css forces a colour and size on bare h2 with !important, so the heading needs the same weapon to stay white. */
html :where(.vl-landing) .vl-site-footer__follow-title { margin: 0 !important; color: var(--wp--preset--color--vl-white) !important; font-weight: 300 !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; }
.vl-landing .vl-site-footer__social { gap: 0.9rem; }
.vl-landing .vl-site-footer__social figure { margin: 0; }
.vl-landing .vl-site-footer__social img { display: block; height: auto; }
.vl-landing .vl-site-footer__social a:focus-visible { outline: 3px solid var(--wp--preset--color--vl-gold); outline-offset: 3px; }
/* The two bottom rows copy the SITEWIDE footer's exactly, under our own class names (computed values measured on /contact-us/
   at 1440, 1024, 768 and 390; breakpoints 767px and 577px are the theme's). Fixed px, not presets, on purpose: these mirror
   the main site's fixed footer values, which step at breakpoints rather than scale. titan.css forces size, weight and line
   height on bare p with !important, hence the html :where() + !important pattern used elsewhere in this file. */
/* Row 1: the address, then the phone with the main site's handset icon (a CSS background, as there: decorative, no alt). */
.vl-landing .vl-site-footer__contact { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 24px; margin: 30px 0 0; }
/* The address links to Google Maps, as on the main site. Same structure as there (a 15px paragraph holding a 20px link), so the
   line box and the text position match too. Like the main site's: white, no underline, and no change on hover. Keyboard focus
   gets the footer's gold ring (further down); the main site's is the browser default, which can't be seen on this green. */
html :where(.vl-landing) .vl-site-footer__address { margin: 0 40px 0 0 !important; font-size: 15px !important; font-weight: 400 !important; line-height: 30px !important; letter-spacing: normal !important; text-align: left !important; }
html :where(.vl-landing) .vl-site-footer__address a { font-size: 20px !important; font-weight: 500 !important; line-height: 30px !important; }
/* Hover: like the main site's footer, the address and the two legal links don't change (no underline). Keyboard focus keeps the gold ring. */
.vl-landing.vl-site-footer :is(.vl-site-footer__address, .vl-site-footer__privacy, .vl-site-footer__terms) a:hover { text-decoration: none !important; }
/* As on the main site, the paragraph is 15px and the number inside it 20px: the mixed sizes give the line box its extra 2px (48px row). */
html :where(.vl-landing) .vl-site-footer__phone {
	margin: 0 !important; padding: 0 0 8px 42px !important; font-size: 15px !important; font-weight: 300 !important; line-height: 38px !important; letter-spacing: normal !important;
	background: url("../images/icons/icon-phone.png") 0 7px / 25px auto no-repeat;
}
html :where(.vl-landing) .vl-site-footer__phone a { font-size: 20px !important; font-weight: 500 !important; line-height: 38px !important; }
/* Row 2: OUR PRIVACY POLICY, TERMS OF USE, COPYRIGHT, one centred row, 20px apart (three blocks, so the gaps are even). */
.vl-landing .vl-site-footer__legal { flex-wrap: nowrap; justify-content: center; gap: 20px; margin: 0; padding-top: 15px; }
html :where(.vl-landing) .vl-site-footer__legal p { margin: 0 !important; font-size: 15px !important; font-weight: 400 !important; line-height: 30px !important; letter-spacing: normal !important; text-transform: uppercase !important; }
/* The sitewide footer leaves 40px below its last row, and none at all on small phones. */
.vl-landing.vl-site-footer { padding-bottom: 40px !important; }
@media (max-width: 767px) {
	/* Same text width as the main site's footer (viewport minus 20px a side), so the address and legal lines wrap at the same words.
	   Our footer's own side padding is the vl-xs preset, so make up the difference on the two rows only. */
	.vl-landing .vl-site-footer__contact, .vl-landing .vl-site-footer__legal { margin-inline: calc(20px - var(--wp--preset--spacing--vl-xs)); }
	.vl-landing .vl-site-footer__contact { flex-direction: column; }
	html :where(.vl-landing) .vl-site-footer__address { margin: 0 !important; text-align: center !important; }
	html :where(.vl-landing) .vl-site-footer__address a { font-size: 16px !important; }
	.vl-landing .vl-site-footer__legal { flex-wrap: wrap; gap: 5px 20px; }
}
@media (max-width: 577px) {
	html :where(.vl-landing) .vl-site-footer__phone { padding-left: 32px !important; }
	html :where(.vl-landing) .vl-site-footer__legal p { font-size: 12.1875px !important; line-height: 26px !important; letter-spacing: 1px !important; }
	.vl-landing.vl-site-footer { padding-bottom: 0 !important; }
}
/* Links: not underlined until hover, as in the sitewide footer. NOTE the compound selector: the footer group carries BOTH vl-landing and
   vl-site-footer, and it sits outside the template's <main class="vl-landing">, so a descendant selector would never match. */
.vl-landing.vl-site-footer a { color: var(--wp--preset--color--vl-white) !important; text-decoration: none !important; }
.vl-landing.vl-site-footer :is(a:hover, a:focus-visible) { text-decoration: underline !important; }
.vl-landing.vl-site-footer a:focus-visible { outline: 3px solid var(--wp--preset--color--vl-gold); outline-offset: 3px; }
/* Visually hidden, still read out: the "(opens in a new tab)" note on the legal links. */
.vl-landing .vl-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Backstop: the footer's text is always visible, whatever the theme's scroll fade-in does. main.js gives EVERY h1/h2/p a
   GSAP `from` tween (opacity 0, and scale 1.15 on headings) that ScrollTrigger plays when the element's top reaches the
   viewport bottom. Trigger positions are measured once, on the page as it is at load; if the page then gets SHORTER, the
   lowest triggers end up past the maximum scroll and never fire, leaving that text at opacity 0 for good. That happened
   here: the footer's lazy-loaded images were reserved at their full intrinsic size (the logo at 900 x 408) and shrank
   ~450px as they loaded. inc/images.php now stops that at the source (the footer's images skip the lazy-loader), so the
   text fades in normally again; this rule makes sure it can never vanish if anything above it shrinks in future.
   main.js has no opt-out, and GSAP writes inline styles, so !important is the only thing that wins. Footer only. */
.vl-landing.vl-site-footer :is(h1, h2, h3, p) { opacity: 1 !important; transform: none !important; }

/* ---------- Placeholders (every one is also logged in _project-docs/PLACEHOLDERS.md) ---------- */
/* The marker only shows to logged-in users (and in the editor), so visitors never see it. */
body.logged-in .vl-landing .is-placeholder, .editor-styles-wrapper .is-placeholder { outline: 2px dashed #e0245e; outline-offset: -2px; }
body.logged-in .vl-landing p.is-placeholder, body.logged-in .vl-landing :is(h1, h2, h3, h4).is-placeholder,
.editor-styles-wrapper :is(p, h1, h2, h3, h4).is-placeholder { background: rgba(224, 36, 94, 0.08); }

/* ---------- Form wrapper (SmartTouch NexGen renders inside; styled per section later) ---------- */
.vl-landing smarttouch-nexgen { display: block; }
.vl-landing :is(input, select, textarea) { font-size: max(16px, 1em); }  /* iOS zoom guard */

/* ---------- Tablet / small ---------- */
@media (max-width: 781px) {
	.vl-landing .wp-block-columns { gap: var(--wp--preset--spacing--vl-m); }
}
