/* =========================================================================
   FAVORITE HOME — "Noir & Champagne" theme layer
   Near-black grounds, champagne-gold accents, white serif display type with gold
   italics, thin gold rules. Loaded after main.css + motion.css; redefines tokens
   and overrides light-theme specifics. Remove this file to return to ivory.
   ========================================================================= */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
	color-scheme: dark;
	--bg: #0A0A0A;
	--bg-2: #121110;
	--deep: #050505;
	--ink: #F2EDE4;
	--ink-2: #A39B8F;
	--accent: #C9A36A;
	--accent-ink: #D8B47C;
	--line: rgba(242, 237, 228, .12);
	--gold-line: rgba(201, 163, 106, .35);
	--gold-grad: linear-gradient(135deg, #EDD09A 0%, #C9A36A 46%, #A47B3C 100%);
}

::selection { background: var(--accent); color: #0A0A0A; }
.skip-link { background: var(--accent); color: #0A0A0A; }

/* ---------- Typography accents ---------- */
.eyebrow { color: var(--accent); }
.eyebrow::before { display: none; }
.eyebrow::after { content: ""; width: 46px; height: 1px; background: currentColor; opacity: .55; flex: none; transform: scaleX(var(--rule, 1)); transform-origin: left; }
.display-1 em, .display-xl em, .display-2 em, .hero__title em, .opening__title em, .cine__title em, .contact__title em { color: var(--accent-ink); }
.opening__eyebrow { color: var(--accent); }
.stat dd { color: var(--accent-ink); }
.stat dd sup { color: var(--accent); }
.why__num, .svc-row__num, .dropdown__num, .mobile-menu__num, .story__idx, .col-list__num { color: var(--accent); }
.prose { color: #CFC8BC; }
.prose a { color: var(--ink); }
.prose .wp-block-button__link, .pagination .page-numbers.current { background: var(--gold-grad); color: #0A0A0A; }

/* Section heads: thin gold vertical rule (drawn on scroll by app.js) */
.section-head, .why__head, .faq__head, .process__head, .villa__head, .story__head, .showcase__head { position: relative; }
.section-head::before, .why__head::before {
	content: ""; position: absolute; left: calc(var(--gutter) * -0.5); top: 6px; bottom: 6px; width: 1px;
	background: linear-gradient(var(--accent), transparent); transform: scaleY(var(--vr, 1)); transform-origin: top;
}

/* ---------- Buttons ---------- */
.btn { --b-bg: transparent; --b-fg: var(--ink); --b-bd: rgba(201,163,106,.75); --b-hover: var(--accent); }
.btn:hover { color: #0A0A0A; }
.btn--solid, .btn--light { --b-bg: var(--gold-grad); --b-fg: #0A0A0A; --b-bd: transparent; --b-hover: #F2EDE4; }
.btn--solid:hover, .btn--light:hover { color: #0A0A0A; border-color: transparent; }
.btn--outline { --b-fg: var(--ink); --b-bd: rgba(201,163,106,.75); --b-hover: var(--gold-grad); }
.btn--outline:hover { color: #0A0A0A; }
.btn--ghost-light { --b-fg: #fff; --b-bd: rgba(255,255,255,.55); --b-hover: var(--gold-grad); }
.btn--ghost-light:hover { color: #0A0A0A; }
.btn--pill { --b-fg: currentColor; --b-bd: rgba(201,163,106,.85); --b-hover: var(--gold-grad); }
.btn--pill:hover { color: #0A0A0A; border-color: transparent; }
.btn::before { background: var(--b-hover); }
/* Champagne sheen that sweeps across gold buttons */
.btn--solid::after, .btn--light::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
	background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%) -150% 0 / 250% 100% no-repeat;
	animation: fh-sheen 5.5s var(--ease) infinite;
}
@keyframes fh-sheen { 0%, 55% { background-position: -150% 0; } 85%, 100% { background-position: 150% 0; } }
.round-btn { border-color: var(--gold-line); }
.round-btn:hover { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }
.filter__btn.is-active { background: var(--gold-grad); color: #0A0A0A; border-color: transparent; }
.filter__btn:hover { border-color: var(--accent); }
.link-arrow:hover { border-color: var(--accent); }
.u-link:hover { color: var(--accent-ink); }

/* ---------- Chrome: header, preloader, cursor, menu, footer ---------- */
.site-header.is-scrolled { background: rgba(8,8,8,.78); box-shadow: 0 1px 0 rgba(201,163,106,.18); }
.nav__link::after { background: var(--accent); }
.brand__word em { color: var(--accent); }
.preloader { background: var(--bg); }
.preloader__word--b { color: var(--accent); }
.preloader__bar span { background: var(--gold-grad); }
.curtain { background: #0F0E0C; }
.curtain__mark { color: var(--accent); }
.scroll-progress span { background: var(--gold-grad); }
@media (hover: hover) and (pointer: fine) {
	.cursor__dot { background: var(--accent); mix-blend-mode: normal; filter: none; }
	.cursor__ring { border-color: rgba(201,163,106,.55); }
	.cursor.is-label .cursor__ring { background: var(--gold-grad); border-color: transparent; }
	.cursor.is-label .cursor__label { color: #0A0A0A; }
	.cursor.is-drag .cursor__ring { background: rgba(10,10,10,.85); border-color: var(--accent); }
	.cursor.is-drag .cursor__label { color: var(--accent); }
}
.dropdown__inner { background: #0F0F0F; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); border-color: var(--gold-line); }
.dropdown__list a:hover, .dropdown__list a:focus-visible { color: var(--accent-ink); }
.mobile-menu { background: #080808; }
.site-footer { background: var(--deep); box-shadow: inset 0 1px 0 var(--gold-line); }
.site-footer__word em { color: var(--accent); }
.wa-float { background: var(--gold-grad); color: #0A0A0A; border: 0; box-shadow: 0 16px 40px -12px rgba(201,163,106,.45); }
.wa-float:hover { background: #F2EDE4; color: #0A0A0A; }
.divider span { background: var(--accent); opacity: .35; }

/* ---------- Sections ---------- */
.section--dark { background: var(--deep); color: var(--ink); }
.process__step::before { background: var(--deep); }
.contact { background: var(--bg-2); }
.form { background: #0D0D0D; border-color: var(--gold-line); }
.contact-page .form { background: var(--bg-2); }
.field input, .field select, .field textarea { color: var(--ink); }
.field select option { background: #111; color: var(--ink); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 40px #0D0D0D inset; }
.aside-cta { background: var(--bg-2); border: 1px solid var(--gold-line); }
.tile__media, .story__frame, .post-card__media, .svc-feature__media, .team__photo, .gallery__item, .intro__img-main { border-radius: 8px; }
.tile__media::after { background: rgba(0,0,0,.28); }
.svc-index__float { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); border-radius: 8px; }
.intro__img-small { border-color: var(--bg); border-radius: 8px; }
.tags li { border-color: var(--gold-line); }

/* ---------- Motion experiences on dark ---------- */
.opening { background: #000; }
.text-rows > div { -webkit-text-stroke-color: rgba(242,237,228,.1); }
.text-rows em { -webkit-text-stroke-color: rgba(201,163,106,.4); }

/* Services cards: photograph always present (dimmed); cursor spotlight brightens it */
.pcard { background: #101010; border-color: var(--gold-line); border-radius: 10px; color: #fff; }
.pcard__base { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pcard__base img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.85); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s; }
.pcard:hover .pcard__base img { transform: scale(1.1); }
.pcard__base::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201,163,106,.22), transparent 45%), linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.pcard__num { color: var(--accent); }
.pcard__arrow { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; top: auto; bottom: clamp(20px, 2vw, 30px); }
.pcard__arrow svg { position: static; }
.pcard__arrow svg + svg { display: none; }
.pcard:hover .pcard__arrow { background: var(--gold-grad); border-color: transparent; color: #0A0A0A; }
.pcard__body { padding-right: 46px; }
/* gold border trace on hover */
.pcard::before, .story__frame::before, .mat-card::before {
	content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 1px; pointer-events: none;
	background: conic-gradient(from var(--ang), transparent 0 62%, #EDD09A 76%, #C9A36A 82%, transparent 92%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0; transition: opacity .5s; animation: fh-trace 3.2s linear infinite paused;
}
.pcard:hover::before, .story__link:hover .story__frame::before, .mat-card:hover::before, .mat-card.is-active::before { opacity: 1; animation-play-state: running; }
@keyframes fh-trace { to { --ang: 360deg; } }
@media (hover: none) { .pcard__base img { filter: brightness(.5); } }

/* 3D villa (night) */
.villa { background: #0B0B0D; }
.villa__fallback::after { background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.6) 40%, rgba(8,8,8,.05) 75%); }
.villa__cap { background: rgba(12,12,12,.7); border-color: var(--gold-line); }
.villa__dots li { border-color: rgba(242,237,228,.45); }
.villa__dots li.is-active { background: var(--accent); border-color: var(--accent); }

/* Story gallery */
.story__progress span, .build__bar span { background: var(--gold-grad); }
.story__card--lg .story__frame { box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.story__end-disc { border-color: var(--accent); }
.story__end-disc:hover { background: var(--gold-grad); color: #0A0A0A; border-color: transparent; }

/* Marquee */
.cmq { border-color: var(--gold-line); }
.cmq__row[data-dir="right"] .cmq__word { -webkit-text-stroke-color: rgba(242,237,228,.35); }
.cmq__word--italic { color: var(--accent-ink); }

/* Blueprint becomes a gold-on-black technical drawing */
.bp { background: #0E0D0C; border-radius: 8px; overflow: hidden; }
.bp-svg { mix-blend-mode: normal; }
.bp-svg .bp-grid line { stroke: rgba(201,163,106,.1); }
.bp-svg .bp-line { stroke: #D8B47C; }
.bp-svg .bp-dim { stroke: rgba(216,180,124,.65); }
.bp-svg .bp-texts { fill: #D8B47C; }

/* Construction stage stays a lit drawing board inside the dark page */
.build { background: var(--deep); }
.build__stage { border-radius: 10px; box-shadow: 0 60px 120px -50px rgba(0,0,0,.9), 0 0 0 1px var(--gold-line); }
.build__cap { background: rgba(10,10,10,.8); color: var(--ink-2); }
.build__step.is-done { color: rgba(242,237,228,.45); }
.build__counter { color: var(--accent); }

/* Compare */
.compare { border-radius: 10px; }
.compare__handle i { background: #0A0A0A; color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px -14px rgba(0,0,0,.8); }
.compare__tag { background: rgba(10,10,10,.78); color: var(--ink); }
.compare__tag--after { background: var(--gold-grad); color: #0A0A0A; }

/* Material showcase */
.showcase__backdrops::after { background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.7) 42%, rgba(8,8,8,.15) 100%); }
.showcase__kicker { color: var(--accent); }
.mat-card { box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); border-radius: 10px; }
.mat-card.is-active { box-shadow: 0 40px 70px -24px rgba(0,0,0,.95); outline-color: rgba(237,208,154,.85); }
.mat-panel__close { background: #0A0A0A; border-color: var(--gold-line); }

/* Cinematic contact panel */
.cine__panel::after { background: rgba(0,0,0,.5); }

/* =========================================================================
   NEW · Hero slideshow (cinematic-opening)
   ========================================================================= */
.opening__slides { position: absolute; inset: 0; transform-origin: 58% 56%; will-change: transform; }
.opening__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.opening__slide img { width: 100%; height: 100%; object-fit: cover; }
.opening__slide:not(.is-active) { visibility: hidden; }
.opening__foot { align-items: flex-end; }
.opening__actions { display: grid; gap: 26px; justify-items: start; }
.opening__nav { display: grid; justify-items: end; gap: 12px; color: #fff; }
.opening__caption { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); min-height: 1.2em; }
.opening__controls { display: flex; align-items: center; gap: 14px; }
.opening__count { font-size: .82rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.opening__count b { font-weight: 600; color: var(--accent-ink); }
.opening__bar { width: 70px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.opening__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.opening__controls .round-btn { width: 44px; height: 44px; color: #fff; border-color: rgba(255,255,255,.4); }
html:not(.motion) .opening__controls, .fh-fallback .opening__controls { display: none; }
.mouse-cue { display: inline-flex; align-items: center; gap: 14px; font-size: .78rem; color: rgba(255,255,255,.85); }
.mouse-cue .mouse { width: 22px; height: 34px; border: 1.5px solid var(--accent); border-radius: 12px; position: relative; }
.mouse-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--accent); animation: fh-wheel 1.8s var(--ease-io) infinite; }
@keyframes fh-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* =========================================================================
   NEW · Ambient gold light (bokeh preset)
   ========================================================================= */
.bokeh { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bokeh span { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,170,.95), rgba(201,163,106,.35) 45%, transparent 70%); will-change: transform, opacity; }
.bokeh span.is-soft { filter: blur(6px); }
.cine .bokeh, .villa .bokeh { z-index: 1; }

@media (max-width: 899px) {
	.opening__foot { flex-direction: column; align-items: stretch; }
	.opening__nav { justify-items: start; }
	.opening__actions .btn { flex: 1 1 auto; }
	.villa__fallback::after { background: linear-gradient(180deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.35) 42%, rgba(8,8,8,.85) 100%); }
	.showcase__backdrops::after { background: linear-gradient(180deg, rgba(8,8,8,.92), rgba(8,8,8,.7)); }
	.section-head::before, .why__head::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.btn--solid::after, .btn--light::after, .mouse-cue .mouse::after { animation: none; }
}
