/* =========================================================================
   FAVORITE HOME — motion experiences
   Pre-states apply only with .motion (JS + motion allowed) and are released per
   element by .is-motion (set by the preset core) or globally by .fh-fallback.
   ========================================================================= */

/* ---------- Pre-states ---------- */
.motion:not(.fh-fallback) [data-motion~="editorial-type"],   /* revealed inline once split (fonts ready) */
.motion:not(.fh-fallback) [data-motion~="label"]:not(.is-motion),
.motion:not(.fh-fallback) [data-motion~="rules"]:not(.is-motion),
.motion:not(.fh-fallback) [data-motion~="image-mask"]:not(.is-motion) { visibility: hidden; }
.motion:not(.fh-fallback) [data-motion~="page-hero"]:not(.is-motion) .w__i { transform: translateY(115%); }
.motion:not(.fh-fallback) [data-motion~="page-hero"]:not(.is-motion) :is(.crumbs, .eyebrow, .page-hero__lede) { opacity: 0; }
.motion:not(.fh-fallback) [data-motion~="page-hero"]:not(.is-motion) [data-hero-media] { clip-path: circle(0% at 70% 50%); }
.motion:not(.fh-fallback) .opening .opening__title { visibility: hidden; } /* shown inline after split */
.motion:not(.fh-fallback) .opening:not(.is-motion) [data-opening-fade],
.motion:not(.fh-fallback) .opening:not(.is-motion) .opening__mid span { opacity: 0; }
.motion:not(.fh-fallback) .opening:not(.is-motion) .opening__bg { clip-path: inset(14% 10% 14% 10%); }
.motion:not(.fh-fallback) [data-motion~="blueprint"]:not(.is-motion) .bp-photo { clip-path: inset(0 100% 0 0); }
.motion:not(.fh-fallback) .cine:not(.is-motion) .cine__panel { clip-path: inset(20% 26% 20% 26% round 32px); }

/* Labels & rules */
.eyebrow::before { transform: scaleX(var(--rule, 1)); transform-origin: left; }
.label-mask { display: inline-block; }
.rule-item { position: relative; }
.rule-item::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent-ink);
	transform: scaleX(var(--rule, 1)); transform-origin: left; opacity: calc((1 - var(--rule, 1)) * 3); pointer-events: none;
}
.split-line-mask { padding: 0 .14em .06em 0; margin: 0 -.14em -.06em 0; }

/* Shutter reveal */
.is-shuttered { position: relative; }
.shutter { position: absolute; inset: 0; display: flex; z-index: 2; pointer-events: none; }
.shutter span { flex: 1; background: var(--shutter, var(--bg)); transform-origin: 50% 0%; }
.shutter span:nth-child(even) { transform-origin: 50% 100%; }
.section--alt .shutter span { background: var(--bg-2); }

/* Header transforms while scrolling */
.site-header__bar { transition: height .6s var(--ease); }
.site-header.is-scrolled .site-header__bar { height: 66px; }
.brand__word { transition: font-size .6s var(--ease), letter-spacing .6s var(--ease); }
.site-header.is-scrolled .brand__word { font-size: 1.4rem; letter-spacing: .04em; }

/* Cursor lens */
@media (hover: hover) and (pointer: fine) {
	.cursor.is-label .cursor__ring { width: var(--lens, 96px); height: var(--lens, 96px); margin: calc(var(--lens, 96px) / -2) 0 0 calc(var(--lens, 96px) / -2); }
	.cursor__label { text-align: center; line-height: 1.25; padding: 0 10px; }
	.cursor.is-drag .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(247,245,240,.9); border-color: var(--bg); }
	.cursor.is-drag .cursor__label { opacity: 1; }
	.cursor.is-drag .cursor__label::before { content: "‹ "; }
	.cursor.is-drag .cursor__label::after { content: " ›"; }
}

/* =========================================================================
   A · Cinematic opening
   ========================================================================= */
.opening { position: relative; height: 230vh; background: var(--ink); }
.opening__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--white); isolation: isolate; }
.opening__layer { position: absolute; }
.opening__bg { inset: -3%; z-index: 0; overflow: hidden; background: #3b3632; }
.opening__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 58% 56%; will-change: transform; }
.opening__shade { position: absolute; inset: 0; z-index: 1; background: #141210; opacity: .22; pointer-events: none; }
.opening__sticky::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(20,18,16,.5), rgba(20,18,16,.08) 55%, transparent 80%), linear-gradient(180deg, rgba(20,18,16,.35), transparent 30%, transparent 55%, rgba(20,18,16,.65));
}
.opening__mid {
	inset: 0; z-index: 2; display: flex; justify-content: center; padding-top: 17vh; pointer-events: none;
	font-family: var(--serif); font-size: 15.5vw; line-height: 1; letter-spacing: .01em;
	color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.32);
}
.opening__mid span { display: inline-block; }
.opening__fg { inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.opening__focus { position: absolute; left: 61%; top: 47%; z-index: 3; width: 92px; height: 92px; margin: -46px 0 0 -46px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; pointer-events: none; }
.opening__focus i { position: absolute; inset: 0; }
.opening__focus i::before, .opening__focus i::after { content: ""; position: absolute; background: rgba(255,255,255,.6); }
.opening__focus i::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.opening__focus i::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.opening__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding-bottom: clamp(48px, 8vh, 104px); margin-inline: auto; }
.opening__eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.85); }
.opening__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); line-height: .86; letter-spacing: -.015em; text-transform: uppercase; margin-block: 20px 36px; }
.opening__title .line { display: block; }
.opening__title .line--indent { padding-left: 1.1em; }
.opening__title em { color: var(--accent); text-transform: none; }
.opening__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-right: 70px; }
.opening__lede { font-size: var(--fs-lead); max-width: 30ch; line-height: 1.45; color: rgba(255,255,255,.9); }
.opening__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.opening__meta { position: absolute; z-index: 4; right: var(--gutter); top: calc(var(--header-h) + 40px); display: grid; gap: 4px; text-align: right; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.opening .scroll-cue { z-index: 4; color: var(--white); }
.opening__veil { position: absolute; inset: 0; z-index: 6; background: var(--bg); transform: translateY(100%); pointer-events: none; }

/* =========================================================================
   F · Editorial typography — oversized rows, floating details
   ========================================================================= */
.intro--home { overflow: hidden; padding-top: calc(var(--sec) * .6); }
.text-rows { pointer-events: none; margin-bottom: clamp(32px, 5vw, 80px); user-select: none; }
.text-rows > div { font-family: var(--serif); font-size: clamp(5rem, 17vw, 19rem); line-height: .86; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(37,37,37,.2); }
.text-rows > div:nth-child(2) { text-align: right; }
.text-rows em { text-transform: none; -webkit-text-stroke-color: rgba(140,117,86,.45); }
.float-detail { position: absolute; pointer-events: none; z-index: 3; }
.float-detail--arch { width: 92px; right: -36px; top: -40px; }
.float-detail--measure { width: 200px; left: -70px; bottom: 34%; }

/* =========================================================================
   Services · perspective cards
   ========================================================================= */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.pcard {
	position: relative; display: grid; grid-template-rows: auto 1fr; aspect-ratio: 3 / 4; padding: clamp(20px, 2vw, 30px);
	background: var(--bg); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transform-style: preserve-3d;
	transition: color .6s var(--ease), border-color .6s;
}
.pcard__media { position: absolute; inset: 0; z-index: -1; clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .9s var(--ease); }
.pcard__media img { width: 112%; height: 112%; max-width: none; margin: -6%; object-fit: cover; }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.15), rgba(20,18,16,.7)); }
.pcard:hover, .pcard:focus-visible { color: var(--white); border-color: transparent; }
.pcard:hover .pcard__media, .pcard:focus-visible .pcard__media { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.pcard__num { font-family: var(--serif); font-size: 1.5rem; color: var(--accent-ink); transition: color .6s; transform: translateZ(30px); }
.pcard:hover .pcard__num { color: var(--accent); }
.pcard__body { align-self: end; display: grid; gap: 10px; transform: translateZ(50px); }
.pcard__title { font-family: var(--serif); font-size: clamp(1.55rem, 2.1vw, 2.2rem); line-height: 1.02; text-transform: uppercase; }
.pcard__points { font-size: .78rem; letter-spacing: .02em; opacity: .75; }
.pcard__arrow { position: absolute; top: clamp(20px, 2vw, 30px); right: clamp(20px, 2vw, 30px); }

/* =========================================================================
   B · Villa study (3D)
   ========================================================================= */
.villa { position: relative; height: 420vh; background: #EFE9DF; }
.villa__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.villa__fallback, .villa__canvas { position: absolute; inset: 0; }
.villa__fallback img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 55%; }
.villa__fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(239,233,223,.94) 0%, rgba(239,233,223,.7) 38%, rgba(239,233,223,0) 70%); }
.villa__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.villa.is-3d .villa__fallback { opacity: 0; transition: opacity 1.2s; }
.villa__ui { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 440px) 1fr auto; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; pointer-events: none; }
.villa__ui a { pointer-events: auto; }
.villa__head { grid-column: 1; display: grid; gap: 16px; }
.villa__caps { grid-column: 1; grid-row: 3; position: relative; min-height: 190px; }
.villa__cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 10px; padding: 26px 28px; background: rgba(247,245,240,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.villa__cap.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }
.villa__num { font-size: .7rem; letter-spacing: .2em; color: var(--accent-ink); }
.villa__cap-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; }
.villa__cap p { color: var(--ink-2); font-size: .95rem; }
.villa__cap .u-link { justify-self: start; font-size: .85rem; }
.villa__dots { grid-column: 3; grid-row: 1 / -1; align-self: center; display: grid; gap: 10px; }
.villa__dots li { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-2); transition: background .4s, transform .4s; }
.villa__dots li.is-active { background: var(--ink); transform: scale(1.3); }
.villa__note { grid-column: 2 / 4; grid-row: 3; justify-self: end; align-self: end; margin-right: 76px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

/* =========================================================================
   D · Horizontal story gallery
   ========================================================================= */
.story { position: relative; padding-top: var(--sec); overflow: hidden; }
.story__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(32px, 4vw, 64px); }
.story__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 40px; margin-bottom: clamp(28px, 3vw, 48px); }
.story__head .eyebrow { grid-column: 1 / -1; }
.story__progress { width: 200px; height: 1px; background: var(--line); align-self: center; overflow: hidden; }
.story__progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.story__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 56px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.story__card { position: relative; flex: none; }
.story__card--xl { width: clamp(320px, 44vw, 760px); }
.story__card--sm { width: clamp(220px, 19vw, 330px); margin-top: 16vh; }
.story__card--md { width: clamp(260px, 26vw, 440px); margin-top: -12vh; }
.story__card--lg { width: clamp(300px, 34vw, 580px); margin-left: -7vw; margin-top: 12vh; z-index: 2; }
.story__card--lg .story__frame { box-shadow: 0 40px 80px -40px rgba(37,37,37,.5); }
.story__link { display: block; }
.story__frame { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.story__card--xl .story__frame { aspect-ratio: 16 / 10; }
.story__card--sm .story__frame { aspect-ratio: 3 / 4; }
.story__card--lg .story__frame { aspect-ratio: 1; }
.story__media { position: absolute; inset: 0; overflow: hidden; }
.story__img { width: 118%; max-width: none; height: 100%; margin-left: -9%; object-fit: cover; }
.story__media { transition: transform 1.2s var(--ease); }
.story__link:hover .story__media { transform: scale(1.06); }
.story__detail {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 20px; color: var(--white); font-size: .8rem; letter-spacing: .06em;
	background: linear-gradient(transparent, rgba(20,18,16,.75)); transform: translateY(101%); transition: transform .7s var(--ease);
}
.story__detail-cta { display: inline-flex; gap: 10px; align-items: center; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .7rem; }
.story__link:hover .story__detail, .story__link:focus-visible .story__detail { transform: translateY(0); }
.story__info { display: flex; gap: 16px; padding-top: 16px; align-items: baseline; }
.story__idx { font-size: .72rem; color: var(--ink-2); letter-spacing: .12em; }
.story__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 2.1rem); line-height: 1.04; }
.story__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--ink-2); margin-top: 4px; }
.story__meta span + span::before { content: "— "; }
.story__end { flex: none; width: clamp(240px, 22vw, 340px); }
.story__end-disc { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); padding: 22%; transition: background .5s, color .5s; }
.story__end-disc span { font-family: var(--serif); font-size: clamp(1.8rem, 2.4vw, 2.6rem); line-height: 1; text-transform: uppercase; }
.story__end-disc:hover { background: var(--ink); color: var(--bg); }

/* =========================================================================
   K · Cinematic marquee
   ========================================================================= */
.cmq { padding-block: clamp(56px, 8vw, 120px); overflow: hidden; border-block: 1px solid var(--line); }
.cmq__row { white-space: nowrap; line-height: 1; }
.cmq__row + .cmq__row { margin-top: clamp(4px, 1vw, 14px); }
.cmq__track { display: inline-flex; will-change: transform; }
.cmq__set { display: inline-flex; align-items: center; gap: .3em; padding-right: .3em; font-family: var(--serif); font-size: clamp(3.2rem, 10vw, 10.5rem); text-transform: uppercase; }
.cmq__row[data-dir="right"] .cmq__word { color: transparent; -webkit-text-stroke: 1px rgba(37,37,37,.45); }
.cmq__word--italic { font-style: italic; text-transform: none; color: var(--accent-ink); }
.cmq__row[data-dir="right"] .cmq__word--italic { -webkit-text-stroke-color: var(--accent-ink); }
.cmq__pill { display: inline-block; width: 1.9em; height: .82em; border-radius: 999px; overflow: hidden; flex: none; vertical-align: middle; }
.cmq__pill img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   L · Blueprint → built
   ========================================================================= */
.bp { display: grid; margin: 0; }
.bp-photo, .bp-svg { grid-area: 1 / 1; width: 100%; aspect-ratio: 5 / 6; }
.bp { background: #F1ECE3 linear-gradient(transparent, transparent); }
.bp-photo { overflow: hidden; }
.bp-photo img { width: 100%; height: 100%; object-fit: cover; }
.bp-svg { height: auto; mix-blend-mode: multiply; pointer-events: none; }
.bp-texts { text-anchor: middle; }
.bp-texts text:nth-child(n+3):nth-child(-n+5) { text-anchor: start; }
.bp-cap { grid-area: 2 / 1; margin-top: 14px; font-size: .76rem; color: var(--ink-2); letter-spacing: .02em; }
html:not(.motion) .bp-svg, .fh-fallback .bp-svg { opacity: .32; }

/* =========================================================================
   C · Construction transformation
   ========================================================================= */
.build { position: relative; height: 620vh; background: var(--bg-2); }
.build__sticky {
	position: sticky; top: 0; height: 100svh; overflow: hidden;
	display: grid; grid-template-columns: minmax(280px, 1fr) 1.65fr; gap: clamp(28px, 4vw, 72px); align-items: center;
	padding: calc(var(--header-h) + 16px) var(--gutter) 32px; max-width: var(--max); margin-inline: auto;
}
.build__copy { display: grid; gap: 22px; align-content: center; }
.build__counter { font-family: var(--serif); font-size: clamp(3.6rem, 6vw, 6rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.build__counter span:last-child { font-size: .38em; color: var(--ink-2); }
.build__steps-wrap { position: relative; padding-left: 26px; }
.build__bar { position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.build__bar span { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleY(0); transform-origin: top; }
.build__step { padding-block: 7px; color: var(--ink-2); transition: color .5s; }
.build__step-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.15; transition: font-size .6s var(--ease); }
.build__step p { max-height: 0; overflow: hidden; opacity: 0; font-size: .9rem; transition: max-height .7s var(--ease), opacity .5s, margin .7s var(--ease); }
.build__step.is-done { color: rgba(37,37,37,.55); }
.build__step.is-active { color: var(--ink); }
.build__step.is-active .build__step-title { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
.build__step.is-active p { max-height: 6em; opacity: 1; margin-top: 8px; color: var(--ink-2); }
.build__stage { position: relative; height: min(calc(100svh - var(--header-h) - 64px), 62vw); overflow: hidden; background: #F3EEE6; box-shadow: 0 50px 100px -60px rgba(37,37,37,.45); }
.build__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 48%; }
.build__photo { position: absolute; inset: 0; }
.motion:not(.fh-fallback) .build__photo { clip-path: circle(0% at 50% 48%); }
.build__photo img { width: 100%; height: 100%; object-fit: cover; }
.build__cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; background: rgba(247,245,240,.88); font-size: .7rem; letter-spacing: .06em; color: var(--ink-2); }

/* =========================================================================
   H · Before / after
   ========================================================================= */
.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; touch-action: pan-y; background: #F3EEE6; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare--drawing { background: #F3EEE6 repeating-linear-gradient(0deg, rgba(140,117,86,.08) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(140,117,86,.08) 0 1px, transparent 1px 40px); }
.compare--drawing .compare__before { filter: url(#fh-sketch); mix-blend-mode: multiply; opacity: .9; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; z-index: 2; pointer-events: none; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,.25); }
.compare__handle i { position: absolute; top: 50%; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 1.1rem; letter-spacing: .1em; box-shadow: 0 16px 40px -14px rgba(37,37,37,.5); transition: transform .4s var(--ease); }
.compare.is-dragging .compare__handle i { transform: scale(.88); }
.compare:has(.compare__range:focus-visible) .compare__handle i { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.compare__tag { position: absolute; top: 18px; z-index: 3; padding: 7px 14px; border-radius: 999px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; background: rgba(247,245,240,.9); color: var(--ink); }
.compare__tag--before { left: 18px; }
.compare__tag--after { right: 18px; background: var(--ink); color: var(--bg); }
.compare__range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.compare__note { margin-top: 16px; font-size: .85rem; }

/* =========================================================================
   G · Material showcase
   ========================================================================= */
.showcase { position: relative; height: calc(var(--n, 5) * 70vh + 100vh); }
.showcase__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.showcase__backdrops { position: absolute; inset: 0; }
.showcase__backdrop { position: absolute; inset: 0; overflow: hidden; }
.showcase__backdrop .mat-tex { position: absolute; inset: 0; }
.showcase__backdrops::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(247,245,240,.95) 0%, rgba(247,245,240,.72) 42%, rgba(247,245,240,.12) 100%); }
.showcase__inner { position: relative; z-index: 4; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding-top: calc(var(--header-h) + 28px); padding-bottom: 36px; }
.showcase__head { display: grid; gap: 16px; }
.showcase__now { align-self: center; max-width: 620px; }
.showcase__now-item { display: grid; gap: 14px; }
.showcase__kicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); }
.showcase__name { font-family: var(--serif); font-size: clamp(3rem, 7.2vw, 7.6rem); line-height: .9; text-transform: uppercase; }
.showcase__text { color: var(--ink-2); max-width: 46ch; font-size: 1.02rem; }
.showcase__cards { display: flex; gap: clamp(10px, 1.2vw, 18px); justify-content: flex-end; }
.mat-card {
	position: relative; width: clamp(140px, 13vw, 210px); aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; text-align: left;
	top: 0; box-shadow: 0 24px 50px -30px rgba(37,37,37,.6); transition: top .7s var(--ease), box-shadow .7s;
	color: var(--white); transform-style: preserve-3d;
}
.mat-card .mat-tex { position: absolute; inset: -6%; }
.mat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20,18,16,.55)); }
.mat-card.is-active { top: -22px; box-shadow: 0 40px 70px -30px rgba(37,37,37,.7); outline: 1px solid var(--white); outline-offset: -8px; }
.mat-card__num, .mat-card__title, .mat-card__plus { position: absolute; z-index: 2; }
.mat-card__num { top: 14px; left: 16px; font-size: .7rem; letter-spacing: .14em; }
.mat-card__plus { top: 10px; right: 14px; font-size: 1.3rem; font-weight: 300; transition: transform .5s var(--ease); }
.mat-card:hover .mat-card__plus { transform: rotate(90deg); }
.mat-card__title { left: 16px; right: 16px; bottom: 14px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.05; }

.mat-panel { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: auto; }
.mat-panel::backdrop { background: transparent; }
.mat-panel__item { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100%; }
.mat-panel__tex { position: relative; overflow: hidden; min-height: 50vh; }
.mat-panel__tex .mat-tex { position: absolute; inset: 0; }
.mat-panel__copy { display: grid; gap: 20px; align-content: center; padding: clamp(32px, 6vw, 100px); }
.mat-panel__copy > p { color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
.mat-panel__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.mat-panel__close { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; z-index: 2; background: var(--bg); border-color: var(--line); }

/* Procedural material textures (SVG noise — no stock imagery) */
.mat-tex { background-size: cover; background-position: center; }
.mat-tex::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.3), transparent 55%), linear-gradient(180deg, transparent 60%, rgba(0,0,0,.08)); pointer-events: none; }
.mat-tex--oak { background-color: #C8A57A; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.09 0.004' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0.26 0 0 0 0.6  0.2 0 0 0 0.45  0.15 0 0 0 0.3  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
.mat-tex--walnut { background-color: #6B4C35; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06 0.003' numOctaves='4' seed='19'/%3E%3CfeColorMatrix values='0.22 0 0 0 0.27  0.15 0 0 0 0.17  0.1 0 0 0 0.11  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
.mat-tex--marble { background-color: #EEEAE3; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.011' numOctaves='5' seed='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='table' tableValues='0.96 0.95 0.94 0.62 0.94 0.95 0.96'/%3E%3CfeFuncG type='table' tableValues='0.95 0.94 0.92 0.6 0.92 0.94 0.95'/%3E%3CfeFuncB type='table' tableValues='0.92 0.91 0.89 0.57 0.89 0.91 0.92'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
.mat-tex--travertine { background-color: #D9C9AE; background-image: radial-gradient(rgba(120,100,70,.18) 1px, transparent 1.6px), url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.05' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0.18 0 0 0 0.73  0.17 0 0 0 0.66  0.15 0 0 0 0.54  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); background-size: 9px 13px, cover; }
.mat-tex--plaster { background-color: #E7DFD2; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0.12 0 0 0 0.84  0.12 0 0 0 0.8  0.12 0 0 0 0.74  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }

/* =========================================================================
   Contact · cinematic panel
   ========================================================================= */
.cine { position: relative; height: 220vh; }
.cine__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.cine__panel { position: absolute; inset: 0; overflow: hidden; }
.cine__panel img { width: 100%; height: 100%; object-fit: cover; }
.cine__panel::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,16,.42); }
.cine__content { position: relative; z-index: 2; text-align: center; display: grid; gap: 30px; justify-items: center; }
.cine__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 9vw, 9.5rem); line-height: .9; text-transform: uppercase; letter-spacing: -.015em; color: var(--white); max-width: 13ch; }
.cine__title em { text-transform: none; color: var(--accent); }
.cine__sub { display: grid; gap: 20px; justify-items: center; color: rgba(255,255,255,.9); font-size: var(--fs-lead); }
.cine__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Footer wordmark letters */
.site-footer__word i { display: inline-block; font-style: inherit; }

/* =========================================================================
   Reduced motion / no-JS: every experience collapses to a calm static layout
   ========================================================================= */
html:not(.motion) .opening, .fh-fallback .opening { height: 100svh; }
html:not(.motion) :is(.villa, .build, .showcase, .cine), .fh-fallback :is(.villa, .build, .showcase, .cine) { height: auto; }
html:not(.motion) :is(.villa__sticky, .build__sticky, .showcase__sticky, .cine__sticky), .fh-fallback :is(.villa__sticky, .build__sticky, .showcase__sticky, .cine__sticky) { position: relative; height: auto; min-height: 100svh; }
html:not(.motion) .villa__cap, .fh-fallback .villa__cap { position: relative; opacity: 1; visibility: visible; }
html:not(.motion) .villa__caps, .fh-fallback .villa__caps { display: grid; gap: 12px; }
html:not(.motion) .build__step p, .fh-fallback .build__step p { max-height: none; opacity: 1; }
html:not(.motion) .build__step, .fh-fallback .build__step { color: var(--ink); }
html:not(.motion) .story__viewport, .fh-fallback .story__viewport { overflow-x: auto; }
.fh-fallback .build__photo { clip-path: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
	.pcards { grid-template-columns: repeat(2, 1fr); }
	.pcard { aspect-ratio: 4 / 3; }
	.build__sticky { grid-template-columns: 1fr 1.3fr; }
}
@media (hover: none) {
	.pcard { color: var(--white); border-color: transparent; }
	.pcard__media { clip-path: none; }
	.pcard__num { color: var(--accent); }
}
@media (max-width: 899px) {
	.opening { height: 150vh; }
	.opening__mid { font-size: 22vw; padding-top: 22vh; }
	.opening__focus, .opening__meta { display: none; }
	.opening__foot { padding-right: 0; }
	.opening__title .line--indent { padding-left: .5em; }
	.opening__ctas { width: 100%; }
	.opening__ctas .btn { flex: 1 1 auto; justify-content: space-between; }
	.float-detail { display: none; }
	.text-rows > div { font-size: 22vw; }

	.pcards { grid-template-columns: 1fr; }
	.pcard { aspect-ratio: 16 / 11; }

	.villa { height: 300vh; }
	.villa__ui { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding-bottom: 24px; }
	.villa__dots { display: none; }
	.villa__caps { grid-row: 3; min-height: 210px; }
	.villa__note { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 12px; }
	.villa__fallback::after { background: linear-gradient(180deg, rgba(239,233,223,.92) 0%, rgba(239,233,223,.35) 40%, rgba(239,233,223,.85) 100%); }

	.story__pin { min-height: 0; }
	.story__head { grid-template-columns: 1fr; }
	.story__progress { display: none; }
	.story__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
	.story__viewport::-webkit-scrollbar { display: none; }
	.story__track { align-items: flex-start; padding-right: var(--gutter); }
	.story__card, .story__card--xl, .story__card--sm, .story__card--md, .story__card--lg { width: 80vw; margin: 0; scroll-snap-align: start; }
	.story__card .story__frame { aspect-ratio: 4 / 5; }
	.story__detail { transform: none; }
	.story__end { width: 62vw; align-self: center; }

	.build { height: 480vh; }
	.build__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 16px; align-items: start; padding-top: calc(var(--header-h) + 8px); padding-bottom: 20px; }
	.build__stage { order: -1; height: 46svh; }
	.build__copy { gap: 10px; }
	.build__copy .eyebrow, .build__copy .display-2 { display: none; }
	.build__counter { font-size: 2.6rem; }
	.build__step:not(.is-active) { display: none; }
	html:not(.motion) .build__step:not(.is-active), .fh-fallback .build__step:not(.is-active) { display: block; }
	.build__bar { display: none; }
	.build__steps-wrap { padding-left: 0; }

	.compare { aspect-ratio: 4 / 5; }
	.compare__handle i { width: 52px; height: 52px; margin: -26px 0 0 -26px; }

	.showcase { height: auto; }
	.showcase__sticky { position: relative; height: auto; min-height: 0; padding-bottom: 32px; }
	.showcase__inner { height: auto; grid-template-rows: auto auto auto; padding-top: var(--sec); }
	.showcase__backdrops::after { background: linear-gradient(180deg, rgba(247,245,240,.94), rgba(247,245,240,.7)); }
	.showcase__name { font-size: clamp(2.6rem, 13vw, 4rem); }
	.showcase__cards { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 26px 2px 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.showcase__cards::-webkit-scrollbar { display: none; }
	.showcase__cards li { scroll-snap-align: start; }
	.mat-card { width: 42vw; }
	.mat-panel__item { grid-template-columns: 1fr; grid-template-rows: 42vh auto; }

	.cine { height: 170vh; }
	.cine__title { font-size: clamp(2.6rem, 12vw, 4rem); }
}
