/* BRIGHT Wongwian Yai — main stylesheet (tokens from docs/visual/tokens.css) */

:root {
	--navy-900: #14223F;
	--navy-800: #1B2D52;
	--navy-600: #34466B;
	--gold-500: #B3946F;
	--gold-700: #7E6444;
	--gold-200: #E6D8C3;
	--ivory: #FAF7F2;
	--sand: #F1EBE2;
	--mist: #E9EDF3;
	--ink: #1E2433;
	--ink-2: #4A5163;
	--line: #D9D2C6;
	--white: #FFFFFF;
	--error: #A3352B;
	--success: #2F6B4F;

	--glass-bg: rgba(255, 255, 255, .74);
	--glass-bg-strong: rgba(255, 255, 255, .86);
	--glass-border: rgba(255, 255, 255, .9);
	--glass-blur: 18px;
	--glass-shadow: 0 20px 60px rgba(20, 34, 63, .14);

	--font-display: "BW Display", "IBM Plex Sans Thai", "Cormorant Fallback", Georgia, serif;
	--font-body: "IBM Plex Sans Thai", "Plex Thai Fallback", "Helvetica Neue", Arial, sans-serif;
	--fs-h1: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
	--fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
	--fs-h3: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
	--fs-body: 1.0625rem;
	--fs-small: .875rem;
	--fs-eyebrow: .75rem;

	--content: 1240px;
	--margin: clamp(20px, 6vw, 96px);
	--gutter: clamp(20px, 2vw, 32px);
	--section: clamp(72px, 9vw, 140px);
	--radius-glass: 20px;

	--ease: cubic-bezier(.2, .7, .2, 1);
	--dur-fast: 180ms;
	--dur: 420ms;
	--dur-slow: 700ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font: 400 var(--fs-body)/1.7 var(--font-body);
	line-break: loose;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.bw-main > .wp-block-post-content > * + * { margin-block-start: 0; }
figure { margin: 0; }
[hidden]:not(.bw-sticky) { display: none !important; }

.bw-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.bw-skip:focus { top: 16px; }

.bw-wrap { max-width: calc(var(--content) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.bw-eyebrow { display: block; font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700); font-weight: 500; margin: 0 0 .6em; }
.bw-display { font-family: var(--font-display); font-weight: 500; color: var(--navy-800); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
/* Thai glyphs fall back to IBM Plex Sans Thai via the stack; Thai needs taller leading for vowels/tone marks. */
.bw-display:lang(th) { line-height: 1.28; letter-spacing: 0; }
.bw-display--h1 { font-size: var(--fs-h1); margin: .15em 0; }
.bw-display--h1:lang(en) { line-height: 1.04; }
.bw-display--h2 { font-size: var(--fs-h2); margin: .1em 0 .45em; }
.bw-display--h2:lang(th) { font-size: calc(var(--fs-h2) * .86); font-weight: 400; }
.bw-display em { font-style: italic; color: var(--gold-700); }
.bw-sheen { background: linear-gradient(100deg, var(--gold-700) 30%, #A88659 50%, var(--gold-700) 70%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.bw-ruled::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold-500); margin-top: 24px; }
.bw-rule { width: 56px; height: 1px; background: var(--gold-500); border: 0; margin: 20px 0 24px; }
.bw-lead { color: var(--ink-2); max-width: 36em; }
.bw-muted { color: var(--ink-2); }
.bw-row { display: flex; gap: 12px; flex-wrap: wrap; }
.bw-footnote { font-size: var(--fs-small); color: var(--ink-2); margin-top: 16px; }
.bw-only-mobile { display: none; }

/* Coin */
.bw-coin { width: 48px; height: 48px; color: var(--gold-500); flex: none; }
.bw-coin--sm { width: 22px; height: 22px; }
.bw-coin--lg { width: 64px; height: 64px; }

/* ---------- Buttons ---------- */
.bw-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
	font: 500 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.bw-btn--primary { background: var(--navy-800); color: #fff; }
.bw-btn--primary:hover { background: var(--navy-900); }
.bw-btn--secondary { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.bw-btn--secondary:hover { background: var(--navy-800); color: #fff; }
.bw-btn--block { width: 100%; }
.bw-btn:active { transform: translateY(1px); }
.bw-btn[disabled], .bw-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.bw-arr { transition: transform var(--dur-fast) var(--ease); }
.bw-btn:hover .bw-arr { transform: translateX(4px); }

.bw-glass {
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
	border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--radius-glass);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bw-glass, .bw-nav { background: rgba(255, 255, 255, .92); }
}

/* ---------- Header ---------- */
.bw-header { position: fixed; inset: 16px 16px auto; z-index: 40; }
.bw-nav {
	display: flex; align-items: center; gap: 28px; padding: 10px 12px 10px 24px; border-radius: 999px;
	background: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
	border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 10px 30px rgba(20, 34, 63, .06);
	transition: box-shadow var(--dur) var(--ease), background var(--dur);
}
.bw-nav.is-scrolled { box-shadow: 0 14px 40px rgba(20, 34, 63, .1); background: rgba(255, 255, 255, .62); }
.bw-wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--navy-800); text-decoration: none; }
.bw-wordmark b { font: 600 1.35rem/1 var(--font-display); letter-spacing: .18em; padding-left: .18em; }
.bw-wordmark small { font-size: .55rem; letter-spacing: .34em; margin-top: 4px; padding-left: .34em; }
.bw-wordmark--light { color: var(--ivory); }
.bw-logo { display: inline-flex; flex: none; line-height: 0; }
.bw-logo img { height: 34px; width: auto; }
.bw-logo--footer img { height: 48px; }
.bw-nav__links { margin-left: auto; }
.bw-nav__links ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.bw-nav__links a { color: var(--ink-2); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.bw-nav__links a:hover, .bw-nav__links a[aria-current="true"] { color: var(--navy-800); border-bottom-color: var(--gold-500); }
.bw-lang { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: .85rem; line-height: 1; }
.bw-lang li { display: flex; align-items: center; }
.bw-lang li + li::before { content: "·"; color: var(--ink-2); margin: 0 6px; }
.bw-lang a { color: var(--ink-2); text-decoration: none; display: inline-block; min-width: 24px; padding: 10px 0; text-align: center; }
.bw-lang span { display: inline-block; min-width: 24px; padding: 10px 0; text-align: center; color: var(--navy-800); font-weight: 600; }

/* ---------- Hero ---------- */
/* Height stops at the key visual's 16:9 ratio so wide screens show the whole figure and tower. */
.bw-hero {
	position: relative; min-height: clamp(720px, 100vh, 56.25vw); display: grid; grid-template-columns: minmax(0, 46%) 1fr;
	overflow: hidden; isolation: isolate; background: var(--ivory);
}
.bw-hero__copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 120px 24px 150px var(--margin); }
.bw-hero__copy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 45% at 30% 12%, rgba(240, 214, 176, .18), transparent 70%); }
.bw-hero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.bw-hero__meta .bw-eyebrow { margin: 0; }
.bw-ready { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold-500); font-size: .78rem; color: var(--gold-700); background: rgba(255, 255, 255, .5); white-space: nowrap; }
.bw-ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(179, 148, 111, .18); }
.bw-hero__prices { display: flex; gap: 28px; margin: 8px 0 32px; flex-wrap: wrap; }
.bw-hero__prices div { border-left: 1px solid var(--gold-500); padding-left: 14px; }
.bw-hero__prices dt { font-size: var(--fs-small); color: var(--ink-2); }
.bw-hero__prices dd { margin: 2px 0 0; font: 300 1.4rem/1.3 var(--font-body); color: var(--navy-800); }
.bw-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bw-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 12%; }
/* Parallax: main.js sets --bw-par to the scroll offset (px) while the hero is on screen. */
@media (min-width: 900px) {
	.bw-hero__media img, .bw-bloom { transform: translate3d(0, calc(var(--bw-par, 0) * .4px), 0); will-change: transform; }
	.bw-hero__copy { transform: translate3d(0, calc(var(--bw-par, 0) * .15px), 0); opacity: calc(1 - var(--bw-par, 0) / 1100); }
}
.bw-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(250, 247, 242, .55), rgba(250, 247, 242, .2) 38%, rgba(250, 247, 242, 0) 55%); }

/* Golden light — subtle */
.bw-golden, .bw-bloom { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bw-golden {
	background:
		radial-gradient(38% 46% at 76% 20%, rgba(255, 200, 130, .30), rgba(255, 200, 130, 0) 70%),
		radial-gradient(60% 50% at 36% 8%, rgba(246, 214, 170, .16), rgba(246, 214, 170, 0) 70%);
	mix-blend-mode: soft-light;
}
.bw-golden::after { content: ""; position: absolute; inset: 0; background: radial-gradient(30% 38% at 74% 22%, rgba(255, 226, 180, .18), transparent 70%); animation: bw-glow 9s ease-in-out infinite alternate; }
@keyframes bw-glow { from { opacity: .55; transform: translate3d(0, 0, 0); } to { opacity: 1; transform: translate3d(-1.5%, 1%, 0); } }
.bw-bloom {
	--crown-x: 87%; --crown-y: 15%;
	mix-blend-mode: screen;
	background:
		radial-gradient(150px 150px at var(--crown-x) var(--crown-y), rgba(255, 214, 150, .26), rgba(255, 200, 130, .06) 45%, transparent 72%),
		radial-gradient(34% 40% at 88% 16%, rgba(255, 196, 128, .18), transparent 70%),
		linear-gradient(200deg, rgba(255, 190, 120, .08) 0%, transparent 45%);
}

.bw-hero__facts { position: absolute; z-index: 3; left: var(--margin); bottom: 36px; padding: 14px 24px; }
.bw-hero__facts dl { margin: 0; display: grid; grid-auto-flow: column; gap: 36px; }
.bw-hero__facts dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.bw-hero__facts dd { margin: 2px 0 0; font: 300 1.5rem/1.1 var(--font-body); color: var(--navy-800); }
.bw-hero__facts small { font-size: .8rem; color: var(--ink-2); }
.bw-hero__thumbs { position: absolute; z-index: 3; right: clamp(20px, 4vw, 64px); bottom: 40px; display: flex; gap: 12px; }
.bw-hero__thumbs a { display: block; width: 168px; padding: 8px; text-decoration: none; transition: transform var(--dur) var(--ease); }
.bw-hero__thumbs a:hover { transform: translateY(-4px); }
.bw-hero__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.bw-hero__thumbs span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px 2px; font-size: .78rem; color: var(--navy-800); }
.bw-hero__loc { position: absolute; z-index: 3; left: calc(44% + 36px); bottom: 40px; margin: 0; padding: 10px 16px; font-size: .8rem; color: var(--navy-800); display: flex; gap: 10px; align-items: center; }
.bw-hero__loc svg { width: 14px; height: 14px; flex: none; }
.bw-hero__vert { position: absolute; z-index: 3; right: 14px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(20, 34, 63, .35); }
.bw-hero__scroll { position: absolute; z-index: 3; left: var(--margin); bottom: 36px; display: flex; align-items: center; gap: 14px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.bw-hero__ring { width: 40px; height: 40px; color: var(--gold-500); }
.bw-hero__line { width: 48px; height: 1px; background: var(--gold-500); }
.bw-hero__thumbs, .bw-hero__loc, .bw-hero__vert, .bw-hero__scroll { display: none; }

/* ---------- About / chapter index ---------- */
.bw-about { padding: var(--section) 0; background: var(--white); }
.bw-about__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; }
.bw-about__copy { font-size: 1.125rem; max-width: 34em; }
.bw-about__alt { max-width: 34em; }
.bw-about__coin { justify-self: end; width: min(360px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.bw-about__coin img { width: 100%; height: 100%; object-fit: cover; }
.bw-chapters { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
.bw-chapters::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--navy-800); }
.bw-chapters__item { display: block; padding: 28px 28px 8px 0; margin-right: 28px; border-right: 1px solid var(--line); text-decoration: none; }
.bw-chapters__item:last-child { border-right: 0; margin-right: 0; }
.bw-chapters__title { display: flex; align-items: center; gap: 10px; font: 500 2rem/1.2 var(--font-display); color: var(--navy-800); margin: .2em 0; transition: color var(--dur-fast); }
.bw-chapters__item:hover .bw-chapters__title { color: var(--gold-700); }
.bw-chapters__desc { display: block; color: var(--ink-2); font-size: .95rem; }

/* ---------- Chapters ---------- */
.bw-chapter { padding: var(--section) 0; }
.bw-chapter--prosperity { background: var(--sand); }
.bw-ch-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: center; }
.bw-stats { display: flex; gap: 40px; margin: 28px 0 0; }
.bw-stats div { display: flex; flex-direction: column-reverse; }
.bw-stats dd { margin: 0; font: 300 2.8rem/1 var(--font-body); color: var(--navy-800); }
.bw-stats dt { font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; }
.bw-ch-img { border-radius: var(--radius-glass); overflow: hidden; aspect-ratio: 3 / 2; }
.bw-ch-img img { width: 100%; height: 100%; object-fit: cover; }
.bw-subhead { font: 500 var(--fs-h3)/1.3 var(--font-display); color: var(--navy-800); margin: 88px 0 20px; }

/* Residences */
/* Residences / floor-plan tabs */
.bw-tabs { margin-top: 88px; }
.bw-tabs__list { display: flex; gap: 36px; margin-bottom: 20px; }
.bw-tabs__tab {
	position: relative; padding: 4px 0 10px; border: 0; background: none; cursor: pointer;
	font: 500 var(--fs-h3)/1.3 var(--font-display); color: var(--ink-2); transition: color var(--dur-fast);
}
.bw-tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.bw-tabs__tab:hover { color: var(--navy-800); }
.bw-tabs__tab[aria-selected="true"] { color: var(--navy-800); }
.bw-tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.bw-tabs__tab:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; border-radius: 4px; }
.bw-floorplans { border-top: 1px solid var(--navy-800); padding-top: 24px; }
.bw-floorplans__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.bw-chip {
	min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
	font: 500 .85rem/1.2 var(--font-body); color: var(--ink-2); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.bw-chip:hover { border-color: var(--gold-500); color: var(--navy-800); }
.bw-chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.bw-floorplans__stage { display: block; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-glass); background: #fff; cursor: zoom-in; }
.bw-floorplans__stage img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.bw-floorplans__label { margin: 12px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.bw-units { border-top: 1px solid var(--navy-800); }
.bw-units__head, .bw-unit__row { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr 1.3fr 40px; align-items: center; gap: 12px; }
.bw-units__head { padding: 14px 0; font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.bw-unit { border-bottom: 1px solid var(--line); }
.bw-unit__title { font: inherit; margin: 0; }
.bw-unit__row { width: 100%; padding: 20px 0; background: none; border: 0; text-align: left; font-size: 1rem; cursor: pointer; transition: background var(--dur-fast); }
span.bw-unit__row { cursor: default; }
button.bw-unit__row:hover { background: rgba(230, 216, 195, .25); }
.bw-unit.is-open > .bw-unit__title .bw-unit__row { background: rgba(230, 216, 195, .4); }
.bw-unit__code { font: 400 1.25rem/1 var(--font-body); letter-spacing: .06em; color: var(--navy-800); padding-left: 8px; }
.bw-unit__price { font-weight: 500; color: var(--navy-800); }
.bw-unit__toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--navy-800); position: relative; justify-self: end; margin-right: 8px; }
.bw-unit__toggle::before, .bw-unit__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--navy-800); transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease); }
.bw-unit__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.bw-unit.is-open .bw-unit__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.bw-unit__panel { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); padding: 28px 0 40px; }
.bw-unit__plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-glass); padding: 24px; display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.bw-unit__planbtn { background: none; border: 0; padding: 0; cursor: zoom-in; }
.bw-unit__planbtn img { max-height: 340px; width: auto; margin: 0 auto; }

.bw-gallery { position: relative; border-radius: var(--radius-glass); overflow: hidden; background: var(--sand); min-height: 280px; }
.bw-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0; scrollbar-width: none; height: 100%; }
.bw-gallery__track::-webkit-scrollbar { display: none; }
.bw-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.bw-gallery__slide button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bw-gallery__slide img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bw-gallery__nav { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bw-gallery__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--navy-800); cursor: pointer; font-size: 1.1rem; }
.bw-gallery__btn:hover { background: var(--navy-800); color: #fff; }
.bw-gallery__count { font-size: .85rem; color: var(--navy-800); min-width: 52px; text-align: center; }
.bw-gallery--empty { display: grid; place-items: center; text-align: center; padding: 32px; color: var(--ink-2); }

.bw-floors { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.bw-floors p { margin: 0; font-size: var(--fs-small); }

/* Location */
.bw-location { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: center; }
.bw-places { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 24px; }
.bw-places h3 { font: 500 var(--fs-small)/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 6px; }
.bw-places ul { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.bw-places li { padding: 3px 0; }
.bw-map { border-radius: var(--radius-glass); overflow: hidden; cursor: zoom-in; box-shadow: var(--glass-shadow); }

/* Signature spaces */
.bw-signature { margin-top: var(--section); }
.bw-signature__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; margin-top: 16px; }
.bw-signature__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-glass); overflow: hidden; }
.bw-signature__img { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur) var(--ease); }
.bw-signature__img.is-active { opacity: 1; }
.bw-signature__img img { width: 100%; height: 100%; object-fit: cover; }
.bw-signature__img figcaption { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--glass-bg-strong); color: var(--navy-800); font-size: .85rem; opacity: 0; }
.bw-signature__list { list-style: none; counter-reset: sig; margin: 0; padding: 0; }
.bw-signature__list li { counter-increment: sig; display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; color: var(--ink-2); cursor: pointer; transition: color var(--dur-fast); }
.bw-signature__list li::before { content: counter(sig, decimal-leading-zero); font-size: .75rem; letter-spacing: .1em; color: var(--gold-700); }
.bw-signature__list li.is-active, .bw-signature__list li:hover, .bw-signature__list li:focus-visible { color: var(--navy-800); }
.bw-signature__list li.is-active { font-weight: 500; }
.bw-signature__more { margin-top: 16px; font-size: var(--fs-small); }

/* Progress */
.bw-progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 2); align-items: center; }
.bw-progress-img { border-radius: var(--radius-glass); overflow: hidden; aspect-ratio: 4 / 5; }
.bw-progress-img img { width: 100%; height: 100%; object-fit: cover; object-position: 90% 50%; }
.bw-dev-name { color: var(--navy-800); margin-top: 32px; }
.bw-facts { margin: 28px 0 0; padding: 20px 24px; border-radius: var(--radius-glass); background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.bw-facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--sand); }
.bw-facts div:last-child { border-bottom: 0; }
.bw-facts dt { color: var(--ink-2); }
.bw-facts dd { margin: 0; color: var(--ink); }

/* ---------- Register ---------- */
.bw-register { display: grid; grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 2); max-width: calc(var(--content) + var(--margin) * 2); margin: 0 auto; padding: var(--section) var(--margin); }
.bw-register__phone { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.bw-register__phone a { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--navy-800); text-decoration: none; }
.bw-register__phone span { color: var(--ink-2); font-size: var(--fs-small); }
.bw-register { position: relative; isolation: isolate; }
.bw-register::before {
	content: ""; position: absolute; z-index: -1; inset: 4% 2% 4% 40%; pointer-events: none; filter: blur(24px);
	background: radial-gradient(38% 46% at 22% 28%, rgba(222, 196, 158, .95), transparent 72%), radial-gradient(34% 44% at 84% 78%, rgba(179, 148, 111, .6), transparent 72%), radial-gradient(32% 40% at 78% 18%, rgba(176, 198, 230, .75), transparent 72%), radial-gradient(30% 36% at 30% 86%, rgba(214, 196, 226, .55), transparent 72%);
}
.bw-register__card {
	position: relative; border-radius: var(--radius-glass); padding: clamp(24px, 3vw, 40px);
	background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
	-webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 24px 70px rgba(20, 34, 63, .1);
}
.bw-register__card::after {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, .9) 0%, rgba(230, 216, 195, 1) 22%, rgba(255, 255, 255, .5) 40%, rgba(179, 148, 111, .8) 60%, rgba(255, 255, 255, .9) 80%, rgba(230, 216, 195, 1) 100%);
	background-size: 300% 100%;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: bw-card-sheen 7s linear infinite;
}
@keyframes bw-card-sheen { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .bw-register__card::after { animation: none; } }
.bw-demo { background: var(--gold-200); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: var(--fs-small); margin-bottom: 20px; }
.bw-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.bw-field { display: flex; flex-direction: column; }
.bw-field--full { grid-column: 1 / -1; }
.bw-field label { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 6px; }
.bw-register > *, .bw-form__grid > *, .bw-unit__panel > *, .bw-location > *, .bw-signature__grid > *, .bw-ch-head > *, .bw-about__grid > *, .bw-progress-grid > * { min-width: 0; }
.bw-field input:not([type="checkbox"]), .bw-field select {
	width: 100%; min-width: 0;
	height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink);
	font: 400 1rem var(--font-body); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.bw-field input:focus, .bw-field select:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(179, 148, 111, .35); }
.bw-field.has-error input, .bw-field.has-error select { border-color: var(--error); }
.bw-field__err { min-height: 1.4em; margin: 4px 0 8px; font-size: .8rem; color: var(--error); }
.bw-field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 4px; }
.bw-field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-800); flex: none; }
.bw-field--check label { flex: 1; margin: 0; color: var(--ink); font-size: .9rem; }
.bw-field--check .bw-field__err { flex-basis: 100%; }
.bw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bw-form__summary { background: #FBEDEB; color: var(--error); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: var(--fs-small); }
.bw-success { text-align: center; padding: 24px 8px; }
.bw-success h3 { font: 500 var(--fs-h3) var(--font-display); color: var(--navy-800); margin: 12px 0 8px; }
.bw-success .bw-coin { margin: 0 auto; }
.bw-success:focus { outline: none; }

/* ---------- Footer ---------- */
.bw-footer { background: var(--navy-900); color: rgba(250, 247, 242, .82); padding: 72px 0 32px; font-size: .95rem; }
.bw-footer a { color: var(--ivory); }
.bw-footer__grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: var(--gutter); }
.bw-footer__h { font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 12px; font-weight: 500; }
.bw-footer__tag { margin-top: 24px; letter-spacing: .12em; color: var(--ivory); }
.bw-footer__tag em { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0; color: var(--gold-200); }
.bw-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(250, 247, 242, .14); font-size: .8rem; color: rgba(250, 247, 242, .6); }

/* ---------- Chapter progress (coin) ---------- */
.bw-progress { position: fixed; z-index: 30; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.bw-progress.is-visible { opacity: 1; pointer-events: auto; }
.bw-progress__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.bw-progress__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.bw-progress__fill { fill: none; stroke: var(--gold-500); stroke-width: 2.5; stroke-dasharray: 3; stroke-dashoffset: 3; transition: stroke-dashoffset var(--dur) var(--ease); }
.bw-progress__hole { fill: none; stroke: var(--gold-500); stroke-width: 1.5; transform-origin: 24px 24px; transform: rotate(90deg); }
.bw-progress ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bw-progress a { display: flex; align-items: center; justify-content: center; width: 44px; height: 32px; font-size: 0; text-decoration: none; color: var(--ink-2); }
.bw-progress a span { font-size: .72rem; letter-spacing: .1em; }
.bw-progress a.is-current { color: var(--navy-800); font-weight: 600; }

/* ---------- Sticky mobile bar ---------- */
.bw-sticky { display: none; }

/* ---------- Viewer dialog ---------- */
.bw-viewer { width: min(1200px, 100vw); height: min(92vh, 100dvh); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: var(--radius-glass); background: var(--ivory); color: var(--ink); overflow: hidden; }
.bw-viewer[open] { display: flex; flex-direction: column; animation: bw-pop 240ms var(--ease); }
.bw-viewer::backdrop { background: rgba(20, 34, 63, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes bw-pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.bw-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.bw-viewer__title { flex: 1; font-size: 1rem; color: var(--navy-800); font-weight: 500; }
.bw-viewer__zoom, .bw-viewer__close { min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0 14px; }
.bw-viewer__zoom[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.bw-viewer__chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.bw-viewer__chips button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--navy-800); background: #fff; color: var(--navy-800); cursor: pointer; font-size: .85rem; }
.bw-viewer__chips button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.bw-viewer__stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 16px; touch-action: pan-x pan-y pinch-zoom; }
.bw-viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bw-viewer__stage.is-zoomed { place-items: start; }
.bw-viewer__stage.is-zoomed img { max-width: none; max-height: none; width: 200%; }
.bw-viewer__nav { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); }
.bw-viewer__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy-800); background: #fff; color: var(--navy-800); cursor: pointer; }

/* ---------- Pages ---------- */
.bw-page { padding: 160px 0 var(--section); }
.bw-page__inner { max-width: 820px; }

/* ---------- Spacing inside core flow layouts (core resets child margins with :root :where(.is-layout-flow) > *) ---------- */
.bw-main .is-layout-flow > p { margin-block: 0 1em; }
.bw-main .is-layout-flow > p:last-child { margin-block-end: 0; }
.bw-main .is-layout-flow > .bw-eyebrow { margin-block: 0 .6em; }
.bw-main .is-layout-flow > .bw-display--h2 { margin-block: .1em .45em; }
.bw-main .is-layout-flow > .bw-stats { margin-block-start: 28px; }
.bw-main .is-layout-flow > .bw-places { margin-block-start: 24px; }
.bw-main .is-layout-flow > .bw-facts { margin-block-start: 28px; }
.bw-main .is-layout-flow > .bw-subhead { margin-block: 88px 20px; }
.bw-main .is-layout-flow > .bw-tabs { margin-block-start: 88px; }
.bw-main .is-layout-flow > .bw-chapters { margin-block-start: 64px; }
.bw-main .is-layout-flow > .bw-signature { margin-block-start: var(--section); }
.bw-main .is-layout-flow > .bw-signature__grid { margin-block-start: 16px; }
.bw-main .is-layout-flow > .bw-signature__more { margin-block-start: 16px; }
.bw-main .is-layout-flow > .bw-floors { margin-block-start: 32px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
[data-reveal].is-in, .no-js [data-reveal], .bw-editor-ssr [data-reveal], .editor-styles-wrapper [data-reveal] { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
	.bw-nav__links { display: none; }
	.bw-nav { gap: 14px; }
	.bw-lang { margin-left: auto; }
	.bw-progress { left: 50%; top: 84px; transform: translateX(-50%); flex-direction: row; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(20, 34, 63, .1); }
	.bw-progress__ring { width: 32px; height: 32px; }
	.bw-progress ol { flex-direction: row; }
	.bw-progress a { width: auto; height: 32px; padding: 0 8px; font-size: .8rem; gap: 6px; }
	.bw-progress a:not(.is-current) { font-size: 0; }
	.bw-footer__grid { grid-template-columns: 1fr 1fr; }
	.bw-sticky {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--glass-bg-strong);
		-webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
		border-top: 1px solid var(--line); transform: translateY(110%); transition: transform var(--dur) var(--ease);
	}
	.bw-sticky[hidden] { display: flex; }
	.bw-sticky.is-visible { transform: none; }
	.bw-sticky .bw-btn { flex: 1; min-height: 52px; }
	.bw-sticky .bw-btn--secondary { flex: 0 0 34%; }
}

@media (max-width: 899px) {
	.bw-only-desktop { display: none; }
	.bw-only-mobile { display: inline; }
	.bw-nav__cta { min-height: 44px; padding: 0 16px; font-size: .85rem; }
	.bw-nav__cta .bw-arr { display: none; }
	.bw-logo img { height: 30px; }
	.bw-lang a, .bw-lang span { min-width: 36px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
	.bw-lang li + li::before { margin: 0 2px; }
	.bw-progress a { min-height: 44px; min-width: 44px; justify-content: center; }
	.bw-field select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2D52' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }

	.bw-hero { grid-template-columns: 1fr; min-height: auto; }
	.bw-hero__media { position: relative; inset: auto; order: -1; height: 64vh; min-height: 360px; }
	.bw-hero__media img { object-position: 88% 30%; }
	.bw-hero__media::before { inset: auto 0 0 0; height: 24%; background: linear-gradient(0deg, var(--ivory), rgba(250, 247, 242, 0)); }
	.bw-hero__copy { padding: 28px var(--margin) 24px; }
	.bw-golden, .bw-bloom { bottom: auto; height: max(64vh, 360px); }
	.bw-bloom { --crown-x: 88%; --crown-y: 17%; }
	.bw-hero__facts { position: static; margin: 0 var(--margin) 40px; padding: 12px 16px; }
	.bw-hero__facts dl { gap: 16px; justify-content: space-between; }
	.bw-hero__facts dd { font-size: 1.15rem; }
	.bw-hero__facts dt { letter-spacing: .12em; }
	.bw-hero__prices { flex-direction: column; gap: 12px; }
	.bw-hero .bw-row .bw-btn { flex: 1 1 100%; }

	.bw-about__grid, .bw-ch-head, .bw-unit__panel, .bw-location, .bw-signature__grid, .bw-progress-grid, .bw-register { grid-template-columns: 1fr; }
	.bw-about__coin { order: -1; justify-self: center; width: 200px; margin-bottom: 16px; }
	.bw-about__alt { display: none; }
	.bw-chapters { grid-template-columns: 1fr; }
	.bw-main .is-layout-flow > .bw-chapters { margin-block-start: 40px; }
	.bw-main .is-layout-flow > .bw-subhead { margin-block: 56px 12px; }
	.bw-main .is-layout-flow > .bw-tabs { margin-block-start: 56px; }
	.bw-tabs__list { gap: 24px; }
	.bw-tabs__tab { font-size: 1.35rem; }
	.bw-floorplans__stage { padding: 10px; }
	.bw-floorplans__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding: 2px var(--margin); }
	.bw-floorplans__chips::-webkit-scrollbar { display: none; }
	.bw-chip { flex: none; white-space: nowrap; }
	.bw-chapters__item { border-right: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); min-height: 56px; }
	.bw-chapters__title { font-size: 1.6rem; }
	.bw-stats { gap: 0; justify-content: space-between; }
	.bw-stats dd { font-size: 2.2rem; }
	.bw-ch-img { aspect-ratio: 4 / 3; order: 2; }

	.bw-units__head { display: none; }
	.bw-unit__row { grid-template-columns: auto 1fr auto; grid-template-areas: "code size toggle" "code price toggle"; gap: 2px 14px; padding: 16px 0; }
	.bw-unit__code { grid-area: code; font-size: 1.4rem; padding-left: 4px; }
	.bw-unit__beds { display: none; }
	.bw-unit__size { grid-area: size; font-size: .9rem; color: var(--ink-2); }
	.bw-unit__price { grid-area: price; }
	.bw-unit__toggle { grid-area: toggle; }
	.bw-unit__panel { padding: 8px 0 28px; }
	.bw-unit__plan { order: 2; }
	.bw-gallery__slide { flex-basis: 88%; padding-right: 8px; }
	.bw-gallery { border-radius: 14px; background: transparent; }
	.bw-gallery__slide img { border-radius: 14px; aspect-ratio: 4 / 3; }

	.bw-map { order: -1; }
	.bw-signature__list { display: none; }
	.bw-signature__media { position: static; aspect-ratio: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; scrollbar-width: none; }
	.bw-signature__img { position: relative; inset: auto; opacity: 1; flex: 0 0 82%; scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
	.bw-signature__img figcaption { opacity: 1; }
	.bw-progress-img { aspect-ratio: 4 / 3; }
	.bw-facts div { grid-template-columns: 1fr; gap: 0; }

	.bw-form__grid { grid-template-columns: 1fr; }
	.bw-footer__grid { grid-template-columns: 1fr; }
	.bw-footer { padding-bottom: 96px; }
}

@media (min-width: 900px) and (max-width: 1199px) {
	.bw-hero { grid-template-columns: minmax(0, 44%) 1fr; }
	.bw-hero__media img { object-position: 78% 12%; }
	.bw-display--h1 { font-size: 3.4rem; }
	.bw-hero__facts dl { gap: 24px; }
	.bw-hero__prices { gap: 12px; flex-wrap: nowrap; }
	.bw-hero__prices div { padding-left: 10px; }
	.bw-hero__prices dt { font-size: .7rem; white-space: nowrap; }
	.bw-hero__prices dd { font-size: 1.2rem; }
}

@media (min-width: 600px) and (max-width: 899px) {
	.bw-hero__thumbs { display: flex; position: static; padding: 0 var(--margin) 48px; }
	.bw-hero__facts { margin-bottom: 24px; }
	.bw-hero__thumbs a { width: auto; flex: 1; max-width: 280px; }
	.bw-hero .bw-row .bw-btn { flex: 0 1 auto; }
}

@media (max-width: 379px) {
	.bw-header { inset: 10px 10px auto; }
	.bw-nav { gap: 6px; padding: 6px 6px 6px 14px; }
	.bw-logo img { height: 26px; }
	.bw-wordmark b { font-size: 1.1rem; letter-spacing: .14em; }
	.bw-wordmark small { font-size: .5rem; letter-spacing: .26em; }
	.bw-nav__cta { padding: 0 12px; }
	.bw-hero__facts dl { gap: 10px; }
	.bw-hero__facts dt { font-size: .62rem; letter-spacing: .08em; }
	.bw-stats dd { font-size: 1.9rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
	.bw-hero__media { height: 100vh; min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

/* Editor preview */
.editor-styles-wrapper .bw-hero { min-height: 640px; }
.editor-styles-wrapper .bw-sticky, .editor-styles-wrapper .bw-progress { display: none; }
