:root {
    --bg: #F9F8F6; --light: #FFFFFF; --accent: #E5E1D8; --text: #2D2D2D; --muted: #6B7280;
    --dark: #1A1A1A; --sage: #E3E5DF; --gold: #D4AF37; --beige: #D8B494;
    --ease: cubic-bezier(.22,.8,.3,1);
    --serif: 'Playfair Display', serif; --sans: 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
::selection { background: var(--dark); color: var(--bg); }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--dark); margin: 0; line-height: 1.1; }
p { margin: 0; }
b { font-weight: 600; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d6d1c4; border-radius: 10px; border: 2px solid var(--bg); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.kicker { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.muted { color: var(--muted); font-size: .95rem; max-width: 34rem; }

/* Fixed 3D background */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

/* Loader */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--dark); color: #fff; display: grid; place-items: center; }
.loader-inner { text-align: center; width: min(320px, 70vw); }
.loader-logo { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 28px; }
.loader-logo span { color: var(--gold); }
.loader-bar { height: 1px; background: rgba(255,255,255,.18); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.loader-count { margin-top: 14px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }

#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--dark); transform: scaleX(0); transform-origin: left; z-index: 60; }

/* Cursor (fine pointers only) */
#cursor { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 90; pointer-events: none; display: none; }
#cursor i { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid var(--dark); border-radius: 50%; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s; }
#cursor.is-hover i { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(212,175,55,.18); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { #cursor { display: block; } }

/* Header */
#site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .35s, box-shadow .35s, transform .45s var(--ease); }
#site-header.scrolled { background: rgba(249,248,246,.96); box-shadow: 0 1px 0 var(--accent); }
#site-header.hide { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--dark); }
.logo span, .footer-logo span { color: var(--gold); }
.nav { display: none; gap: 36px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav-link { position: relative; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav-link:hover, .nav-link.is-active { color: var(--dark); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--dark); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .25s; }
.icon-btn:hover { background: rgba(229,225,216,.6); }
@media (max-width: 640px) { .header-actions .btn { display: none; } }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font-size: 14px; font-weight: 500; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s; }
.btn > * { position: relative; z-index: 1; }
.btn-sm { padding: 11px 20px; font-size: 12px; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-dark:hover::before { transform: translateX(120%); }
.btn-dark:hover { box-shadow: 0 16px 30px -14px rgba(0,0,0,.45); }
.btn-light { background: #fff; color: var(--dark); border: 1px solid var(--accent); }
.btn-light:hover { border-color: var(--dark); box-shadow: 0 16px 30px -18px rgba(0,0,0,.3); }
.btn-gold { background: var(--gold); color: #000; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-radius: 10px; padding: 14px 22px; }
.btn-gold:hover { background: #fff; }
.btn-ghost-gold { border: 1px solid var(--gold); color: var(--gold); border-radius: 10px; font-size: 12px; padding: 14px 22px; }
.btn-ghost-gold:hover { background: rgba(212,175,55,.12); }
.btn:active { transform: scale(.97) !important; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--accent); background: rgba(255,255,255,.7); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Views */
.view { display: none; }
.view.is-active { display: block; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
/* After the reveal finishes, drop the transform transition so the 3D tilt responds instantly */
[data-reveal].done { transition-property: box-shadow, border-color; transition-duration: .45s; transition-delay: 0ms; }
.tilt { transform-style: preserve-3d; }
body.header-hidden .filter-bar { top: 0; }

/* Footer */
.footer { background: var(--dark); color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { font-family: var(--serif); font-size: 2rem; margin-bottom: 12px; }
.footer p { color: #9ca3af; font-size: 14px; max-width: 24rem; }
.footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6b7280; margin-bottom: 16px; font-weight: 500; }
.footer button { display: block; color: #d1d5db; font-size: 14px; margin-bottom: 12px; transition: color .2s; }
.footer button:hover { color: #fff; }
@media (max-width: 640px) {
    .container { width: min(1240px, 100% - 36px); }
    .header-row { height: 68px; }
    .logo { font-size: 1.35rem; }
    .btn { padding: 15px 24px; }
    .cta-row .btn { flex: 1 1 100%; }
}
.copyright { padding-top: 28px; font-size: 12px !important; color: #6b7280 !important; max-width: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
