/* Luxoria — dark luxury. Palette after Rolls-Royce midnight & Rolex green/gold. */
:root {
  --noir: #0b0b0c;
  --ink: #121214;
  --panel: #17171a;
  --line: rgba(201, 169, 110, 0.18);
  --line-strong: rgba(201, 169, 110, 0.42);
  --gold: #c9a96e;
  --gold-deep: #a37e2c;
  --gold-bright: #e6cf9a;
  --crown: #006039;          /* Rolex green */
  --crown-deep: #0a3d2a;
  --ivory: #f3ede1;
  --mist: rgba(243, 237, 225, 0.62);
  --whisper: rgba(243, 237, 225, 0.38);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --text-hero: clamp(3.2rem, 1.2rem + 7vw, 8.4rem);
  --text-h2: clamp(2.4rem, 1.4rem + 3.6vw, 4.8rem);
  --space-section: clamp(5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--noir);
  color: var(--ivory);
  font: 300 16px/1.65 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--noir); }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-3%, 2%); }
  60% { transform: translate(2%, -4%); }
  90% { transform: translate(-1%, 3%); }
}

/* ---------- Type & primitives ---------- */
.eyebrow {
  margin: 0 0 1.2rem;
  font: 400 0.72rem/1 var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.02; }
h2 { font-size: var(--text-h2); }
h2 em, h1 em { font-style: italic; color: var(--gold-bright); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 2rem;
  font: 400 0.74rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid transparent; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--gold { background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-bright) 60%, var(--gold)); color: var(--noir); font-weight: 500; }
.btn--gold::before { background: var(--ivory); }
.btn--ghost { border-color: rgba(243, 237, 225, 0.4); color: var(--ivory); }
.btn--ghost::before { background: var(--ivory); }
.btn--ghost:hover { color: var(--noir); }
.btn--line { border-color: var(--line-strong); color: var(--gold); }
.btn--line::before { background: var(--gold); }
.btn--line:hover { color: var(--noir); }
.btn.is-disabled { opacity: 0.4; pointer-events: none; }

.link {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist);
  border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.link:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 50%; color: var(--ivory); font-size: 0.95rem;
  background: rgba(11, 11, 12, 0.6); backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--crown); color: var(--ivory);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0;
}
.badge--inline { background: var(--gold); color: var(--noir); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--gutter);
  transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 11, 12, 0.82); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 0.8rem; color: var(--gold); }
.crest svg { width: 30px; height: 30px; transition: transform 1.2s var(--ease); }
.nav__brand:hover .crest svg { transform: rotate(90deg); }
.nav__word { font: 400 1.25rem/1 var(--serif); letter-spacing: 0.5em; color: var(--ivory); }
.nav__links { display: flex; gap: 2.4rem; }
.nav__links a {
  position: relative; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mist);
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 1.2rem; }


/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 7rem; overflow: hidden;
}
.hero__media {
  position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px;
  transform: rotate(-6deg); opacity: 0.95;
}
.hero__media figure {
  margin: 0; background-size: cover; background-position: center; filter: saturate(0.9) brightness(0.6);
  animation: drift 60s linear infinite alternate;
}
.hero__media figure:nth-child(even) { animation-direction: alternate-reverse; }
@keyframes drift { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 30% 50%, rgba(11, 11, 12, 0.4), rgba(11, 11, 12, 0.94) 75%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.7) 0%, transparent 25%, transparent 70%, var(--noir) 100%);
}
.hero__content { position: relative; max-width: 58rem; }
.hero__title { font-size: var(--text-hero); line-height: 0.92; letter-spacing: -0.01em; }
.hero__title span { display: block; color: var(--ivory); }
.hero__title em { display: block; padding-left: clamp(1rem, 8vw, 9rem); }
.hero__lede { max-width: 32rem; margin: 2rem 0 2.6rem; font-size: 1.06rem; color: var(--mist); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
  position: absolute; right: var(--gutter); bottom: 5rem; display: flex; gap: clamp(1.5rem, 4vw, 4rem); margin: 0;
}
.hero__stats div { border-left: 1px solid var(--line-strong); padding-left: 1rem; }
.hero__stats dt { font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--whisper); }
.hero__stats dd { margin: 0.3rem 0 0; font: 300 2.4rem/1 var(--serif); color: var(--gold-bright); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--gold); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.3rem 0; background: var(--ink); }
.marquee__track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: italic 300 1.6rem/1 var(--serif); color: var(--ivory); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); align-self: center; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head { max-width: 48rem; margin-bottom: 3.5rem; }
.section-head__sub { margin: 1.4rem 0 0; color: var(--mist); max-width: 38rem; }

/* ---------- Collection ---------- */
.collection { padding: var(--space-section) var(--gutter) 6rem; }
.toolbar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1rem 0; margin-bottom: 2rem; background: rgba(11, 11, 12, 0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: top 0.5s var(--ease);
}
body.nav-visible .toolbar { top: var(--nav-h); }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 0.8rem; height: 52px; padding: 0 1.2rem; border: 1px solid var(--line); transition: border-color 0.3s; }
.search:focus-within { border-color: var(--gold); }
.search svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 0.95rem; }
.search input::placeholder { color: var(--whisper); }
.filters-open { display: none; }
.sort { display: flex; align-items: center; gap: 0.8rem; height: 52px; padding: 0 1rem; border: 1px solid var(--line); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--whisper); }
.sort select { background: transparent; border: 0; outline: 0; color: var(--ivory); letter-spacing: 0.04em; text-transform: none; font-size: 0.9rem; cursor: pointer; }
.sort option { background: var(--ink); }
.view-switch { display: flex; border: 1px solid var(--line); }
.view-switch button { width: 52px; height: 50px; display: grid; place-items: center; color: var(--whisper); transition: color 0.3s, background 0.3s; }
.view-switch button svg { width: 18px; height: 18px; }
.view-switch button.is-active { color: var(--gold); background: rgba(201, 169, 110, 0.08); }

.collection__body { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }

.filters { position: sticky; top: calc(var(--nav-h) + 100px); max-height: calc(100vh - var(--nav-h) - 120px); overflow-y: auto; padding-right: 0.6rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.filters__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filters__head h3 { font-size: 1.7rem; }
.filters__close, .filters__apply { display: none; }
.filter-group { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.filter-group h4 { display: flex; justify-content: space-between; margin: 0 0 1rem; font: 400 0.66rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--whisper); }
.filter-group output { color: var(--gold); letter-spacing: 0.1em; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 10px; padding-top: 4px; }
.swatch {
  position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: transform 0.4s var(--ease);
}
.swatch::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold);
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.4s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }
.swatch[disabled] { opacity: 0.18; pointer-events: none; }
.swatch .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; z-index: 3;
  background: var(--ivory); color: var(--noir); font-size: 0.66rem; letter-spacing: 0.1em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.swatch:hover .tip, .swatch:focus-visible .tip { opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 0.5rem 0.9rem; border: 1px solid var(--line); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--mist);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.chip small { color: var(--whisper); margin-left: 0.3rem; }
.chip:hover { border-color: var(--line-strong); color: var(--ivory); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--noir); background: var(--gold); }
.chip[aria-pressed="true"] small { color: rgba(11, 11, 12, 0.6); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line-strong); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--gold); border: 3px solid var(--noir); box-shadow: 0 0 0 1px var(--gold); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--noir); box-shadow: 0 0 0 1px var(--gold); }
.range-legend { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--whisper); }

.check { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0; cursor: pointer; font-size: 0.88rem; color: var(--mist); }
.check input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--noir); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }

.results__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; min-height: 32px; margin-bottom: 1.4rem; }
.results__meta p { margin: 0; font: italic 300 1.15rem/1 var(--serif); color: var(--mist); }
.results__meta strong { font-style: normal; font-weight: 400; color: var(--gold-bright); }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.active-chips button { padding: 0.3rem 0.7rem; border: 1px solid var(--line); font-size: 0.72rem; color: var(--mist); transition: border-color 0.3s, color 0.3s; }
.active-chips button::after { content: " ✕"; color: var(--gold); }
.active-chips button:hover { border-color: var(--gold); color: var(--ivory); }

.empty { padding: 6rem 1rem; text-align: center; border: 1px solid var(--line); }
.empty__title { font: italic 300 1.8rem/1.2 var(--serif); margin: 0 0 1.5rem; }
.sentinel { height: 1px; }

/* ---------- Acquire ---------- */
.acquire {
  position: relative; padding: var(--space-section) var(--gutter);
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(0, 96, 57, 0.55), transparent 70%),
    linear-gradient(160deg, var(--crown-deep), #06261a 70%);
  border-block: 1px solid var(--line);
}
.paths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.path { padding: 2.4rem 2rem 2.4rem 0; border-right: 1px solid var(--line); }
.path + .path { padding-left: 2rem; }
.path:last-child { border-right: 0; }
.path__num { display: block; font: italic 300 3.4rem/1 var(--serif); color: var(--gold); margin-bottom: 1.6rem; }
.path h3 { font-size: 1.8rem; margin-bottom: 0.9rem; }
.path p { margin: 0; color: var(--mist); font-size: 0.95rem; }
.acquire__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; }

/* ---------- Maison ---------- */
.maison { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: var(--space-section) var(--gutter); }
.maison__media { position: relative; z-index: 0; aspect-ratio: 4 / 5; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.maison__media figure { margin: 0; background-size: cover; background-position: center; }
.maison__media figure:first-child { grid-row: span 2; }
.maison__media::after { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--line-strong); z-index: -1; }
.maison__text h2 { margin-bottom: 1.8rem; }
.maison__text > p { color: var(--mist); max-width: 32rem; }
.pillars { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; gap: 1.2rem; }
.pillars li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.pillars strong { font: 400 1.25rem/1.2 var(--serif); color: var(--gold-bright); }
.pillars span { color: var(--mist); font-size: 0.92rem; }

/* ---------- Contact & footer ---------- */
.contact { padding: var(--space-section) var(--gutter); text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(201, 169, 110, 0.12), transparent 70%); }
.contact h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.6rem); }
.contact__lede { color: var(--mist); margin: 1.2rem 0 3rem; }
.contact__channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 2.4rem var(--gutter); border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--whisper); }
.footer__brand { display: flex; align-items: baseline; gap: 1rem; }
.footer__tag { font: italic 300 1rem var(--serif); color: var(--gold); }
.footer p { margin: 0; }
.footer__note { text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.24s; }
.hero .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .collection__body { grid-template-columns: 1fr; }
  .filters-open { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(380px, 92vw); max-height: none; padding: 1.4rem 1.6rem 6rem;
    background: var(--ink); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform 0.6s var(--ease);
  }
  .filters.is-open { transform: none; box-shadow: 40px 0 80px rgba(0, 0, 0, 0.6); }
  .filters__close { display: grid; }
  .filters__apply { display: flex; width: 100%; margin-top: 1.5rem; }
  .filters__head { gap: 1rem; align-items: center; }
  .filters__head h3 { margin-right: auto; }
  .paths { grid-template-columns: 1fr 1fr; }
  .path:nth-child(2) { border-right: 0; }
  .path:nth-child(3) { padding-left: 0; }
  .path:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .maison { grid-template-columns: 1fr; }
  .hero__stats { position: relative; right: auto; bottom: auto; margin-top: 3.5rem; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav__word { letter-spacing: 0.32em; font-size: 1.05rem; }
  .nav__actions { gap: 0.8rem; }
  .view-switch { display: none; }
  .sort { flex: 1; }
  .sort span { display: none; }
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 2rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .pillars li { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .hero__media { grid-template-columns: repeat(3, 1fr); }
  .hero__stats dd { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .card { opacity: 1; transform: none; }
}
