/* Vanilla Privé — English edition
   Ivory sweep for the page, ink for the film and the configurator.
   One flood of colour: the stones. */

:root {
  --vanilla: #FBF9F4;
  --vanilla-deep: #F1ECE1;
  --surface: #FFFEFB;
  --ink: #151210;
  --ink-2: #6C6358;
  --gold: #A8862F;
  --gold-text: #85671D;
  --gold-light: #E2C161;
  --line: rgba(21, 18, 16, .14);
  --line-strong: rgba(21, 18, 16, .42);
  --line-d: rgba(251, 249, 244, .18);
  --line-d-strong: rgba(251, 249, 244, .5);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;

  --e-state: cubic-bezier(.7, 0, .2, 1);
  --e-arrive: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(18px, 4.4vw, 64px);
  --head: 74px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--head);
}
body {
  margin: 0;
  background: var(--vanilla);
  color: var(--ink);
  font: 300 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; text-wrap: balance; }

.wrap { max-width: 1340px; margin-inline: auto; padding-inline: var(--gut); }
.vh {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold-light); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--vanilla); padding: 12px 18px;
  font: 500 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
.label {
  font: 500 11px/1.3 var(--f-body);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label--gold { color: var(--gold-text); }
.h-sec {
  font: 400 clamp(38px, 5.4vw, 86px)/.98 var(--f-display);
  letter-spacing: -.02em;
}
.h-sec em { font-style: italic; }
.lead {
  font: 300 clamp(16px, 1.2vw, 19px)/1.68 var(--f-body);
  color: var(--ink-2);
  max-width: 46ch;
}
.num {
  font: italic 400 15px/1 var(--f-display);
  color: var(--gold-text);
  letter-spacing: .04em;
  font-variant-numeric: lining-nums;
}
.script { font-family: var(--f-script); }

/* ---------------------------------------------------------------- header */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: var(--head);
  display: flex; align-items: center;
  transition: background .5s var(--e-state), border-color .5s var(--e-state), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.head.is-solid {
  background: rgba(251, 249, 244, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.head__in {
  width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5em;
  text-decoration: none; color: var(--ink);
}
.brand__mark { font: 400 clamp(19px, 1.5vw, 22px)/1 var(--f-display); letter-spacing: .02em; }
.brand__sub {
  font: 500 9px/1 var(--f-body); letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-text);
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  text-decoration: none; font: 400 12.5px/1 var(--f-body);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .45s var(--e-state);
}
.nav a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--ink); padding: 11px 20px !important;
  transition: background .4s var(--e-state), color .4s var(--e-state);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--vanilla); }
.head.is-dark { color: var(--vanilla); }
.head.is-dark .brand, .head.is-dark .nav a { color: var(--vanilla); }

.burger { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .brand { gap: .35em; white-space: nowrap; }
  .brand__sub { display: none; }
  .brand__mark { font-size: 19px; }
  .burger {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; cursor: pointer;
    font: 500 11px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase;
  }
  .burger span { display: block; width: 22px; height: 1px; background: currentColor; position: relative; }
  .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor;
    transition: transform .4s var(--e-state), top .4s var(--e-state);
  }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 110; background: var(--vanilla);
  transform: translateY(-100%); transition: transform .6s var(--e-state);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gut);
}
.drawer.is-open { transform: none; }
.drawer a {
  font: 400 clamp(30px, 9vw, 52px)/1.15 var(--f-display);
  text-decoration: none; padding: .3em 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.drawer a small { font: 500 11px/1 var(--f-body); letter-spacing: .2em; color: var(--ink-2); }
.drawer__close {
  position: absolute; top: 22px; right: var(--gut); background: none; border: 0;
  font: 500 11px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; cursor: pointer;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, .42) 0%, rgba(12, 10, 8, .06) 34%, rgba(12, 10, 8, .12) 56%, rgba(12, 10, 8, .82) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vh, 92px); color: var(--vanilla); }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hero__eyebrow .label { color: rgba(251, 249, 244, .82); }
.hero__line { width: 54px; height: 1px; background: rgba(251, 249, 244, .5); }
.hero h1 {
  font: 400 clamp(52px, 10.5vw, 168px)/.9 var(--f-display);
  letter-spacing: -.035em;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero__foot {
  margin-top: clamp(28px, 4vh, 52px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.hero__foot p { max-width: 38ch; color: rgba(251, 249, 244, .86); font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 500 10.5px/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase;
  color: rgba(251, 249, 244, .9);
}
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(rgba(251, 249, 244, .1), rgba(251, 249, 244, .9)); display: block; }

/* ---------------------------------------------------------------- intro */
.statement { padding: clamp(90px, 13vh, 170px) 0 clamp(60px, 9vh, 110px); }
.statement__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 5vw, 90px); align-items: end;
}
.statement h2 { font-size: clamp(28px, 3.5vw, 52px); line-height: 1.12; letter-spacing: -.01em; max-width: 20ch; }
.statement h2 em { font-style: italic; color: var(--gold-text); }
.statement__body p + p { margin-top: 1em; }
.statement__sign {
  margin-top: 26px; font-family: var(--f-script); font-size: 30px; color: var(--gold-text);
}
@media (max-width: 820px) { .statement__grid { grid-template-columns: 1fr; gap: 30px; align-items: start; } }

/* section header */
.sechead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  margin-bottom: clamp(34px, 5vw, 64px);
}
.sechead .num { margin-bottom: 14px; display: block; }
.sechead__aside { text-align: right; }
@media (max-width: 700px) {
  .sechead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sechead__aside { text-align: left; }
}

/* ---------------------------------------------------------------- collection */
.collection { padding: 0 0 clamp(80px, 12vh, 150px); }
.collection__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.2vw, 20px);
}
.card {
  position: relative; grid-column: span 3; overflow: hidden; background: var(--vanilla-deep);
  cursor: pointer; border: 0; padding: 0; text-align: left;
}
.card--wide { grid-column: span 6; }
.card--tall { grid-column: span 3; grid-row: span 2; }
.card img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5;
  transition: transform 1.1s var(--e-state), filter 1.1s var(--e-state);
}
.card--wide img { aspect-ratio: 16 / 10; }
.card--tall img { aspect-ratio: 3 / 5.2; }
.card:hover img { transform: scale(1.045); }
.card__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font: 500 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--vanilla); background: rgba(21, 18, 16, .55); backdrop-filter: blur(6px);
  padding: 8px 11px; opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--e-state), transform .5s var(--e-state);
}
.card:hover .card__tag { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .card { grid-column: span 6; }
  .card--wide { grid-column: span 12; }
  .card--tall { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 560px) {
  .card, .card--tall { grid-column: span 12; }
  .card img { aspect-ratio: 4 / 5; }
}

/* archive rail */
.archive {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gut) 24px; scrollbar-width: none; cursor: grab;
}
.archive::-webkit-scrollbar { display: none; }
.arch {
  flex: 0 0 auto; width: clamp(150px, 15vw, 210px); scroll-snap-align: start;
  background: var(--vanilla-deep); border: 0; padding: 0; cursor: pointer;
  position: relative; overflow: hidden;
}
.arch img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1s var(--e-state); }
.arch:hover img { transform: scale(1.05); }
.arch span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(21,18,16,.62));
  color: var(--vanilla); font: 500 9.5px/1.2 var(--f-body); letter-spacing: .16em;
  text-transform: uppercase; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s;
}
.arch:hover span { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(12, 10, 8, .94); padding: clamp(16px, 4vw, 60px);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; width: auto; object-fit: contain; box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 20px; right: 26px; background: none; border: 0; color: var(--vanilla);
  font: 500 11px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; cursor: pointer;
}

/* ---------------------------------------------------------------- configurator */
.atelier { background: var(--ink); color: var(--vanilla); padding: clamp(80px, 12vh, 150px) 0; position: relative; }
.atelier .label { color: rgba(251, 249, 244, .6); }
.atelier .label--gold { color: var(--gold-light); }
.atelier .h-sec { color: var(--vanilla); }
.atelier .h-sec em { color: var(--gold-light); }
.atelier__top { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 64px); }
.atelier__top .lead { color: rgba(251, 249, 244, .7); }

.config {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 4vw, 70px);
  align-items: center;
}
.stage {
  position: relative; background: #0a0908; overflow: hidden;
  aspect-ratio: 4 / 5; border: 1px solid var(--line-d);
}
.stage__layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .55s var(--e-state);
  padding: 4%;
}
.stage__layer.is-on { opacity: 1; }
.stage__badge {
  position: absolute; left: 16px; top: 16px; z-index: 3;
  font: 500 10px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase;
  color: var(--vanilla); display: flex; align-items: center; gap: 9px;
}
.stage__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px var(--gold-light); }
.stage__meta {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; text-align: right;
  font: italic 400 13px/1.3 var(--f-display); color: rgba(251, 249, 244, .72);
}

.controls { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }
.ctrl__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ctrl__val { font: italic 400 16px/1 var(--f-display); color: var(--gold-light); }
.ctrl__val.is-flash { animation: flash .5s var(--e-arrive); }
@keyframes flash { 0% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: none; border: 1px solid var(--line-d-strong); color: var(--vanilla);
  padding: 12px 18px; cursor: pointer;
  font: 500 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .35s, background .35s, color .35s;
}
.pill:hover { border-color: var(--vanilla); }
.pill[aria-pressed="true"] { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(251, 249, 244, .26);
  position: relative; transition: transform .35s var(--e-arrive);
}
.sw::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid transparent; transition: border-color .35s;
}
.sw:hover { transform: scale(1.06); }
.sw[aria-pressed="true"]::after { border-color: var(--gold-light); }
.sw__dot { position: absolute; inset: 5px; border-radius: 50%; box-shadow: inset 0 -4px 10px rgba(0,0,0,.35); }

.model-name { font: italic 400 clamp(24px, 2.4vw, 32px)/1.1 var(--f-display); color: var(--vanilla); margin-bottom: 6px; }
.model-desc { font-size: 14.5px; line-height: 1.6; color: rgba(251, 249, 244, .66); min-height: 3.2em; }
.divider { height: 1px; background: var(--line-d); }

.cta-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--vanilla); background: none; color: var(--vanilla);
  padding: 15px 26px; font: 500 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  transition: background .45s var(--e-state), color .45s var(--e-state);
}
.btn:hover { background: var(--vanilla); color: var(--ink); }
.btn--gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.btn--gold:hover { background: transparent; color: var(--gold-light); }
.btn svg { width: 15px; height: 15px; }

@media (max-width: 880px) {
  .config { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 1 / 1; }
}

/* ---------------------------------------------------------------- films */
.films { padding: clamp(80px, 12vh, 150px) 0; background: var(--vanilla); overflow: hidden; }
.films__rail {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px;
  scrollbar-width: none;
}
.films__rail::-webkit-scrollbar { display: none; }
.film {
  flex: 0 0 auto; width: clamp(230px, 26vw, 360px); scroll-snap-align: start;
  position: relative; background: #0a0908;
}
.film video { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.film--land video { aspect-ratio: 16 / 9; }
.film__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 9, 8, .7));
  color: var(--vanilla); font: 500 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- process */
.process { padding: clamp(80px, 12vh, 150px) 0; background: var(--vanilla-deep); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 46px); margin-top: clamp(34px, 5vw, 60px); }
.step { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.step .num { display: block; margin-bottom: 20px; }
.step h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

/* ---------------------------------------------------------------- contact */
.contact { position: relative; background: var(--ink); color: var(--vanilla); overflow: hidden; }
.contact__media { position: absolute; inset: 0; opacity: .38; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,10,8,.92), rgba(12,10,8,.55)); }
.contact__in { position: relative; z-index: 2; padding: clamp(90px, 16vh, 200px) 0; }
.contact h2 { font: 400 clamp(44px, 8vw, 128px)/.94 var(--f-display); letter-spacing: -.03em; color: var(--vanilla); }
.contact h2 em { font-style: italic; color: var(--gold-light); }
.contact__foot { margin-top: clamp(34px, 6vh, 64px); display: flex; flex-wrap: wrap; gap: 30px 60px; align-items: flex-end; justify-content: space-between; }
.contact__links { display: flex; flex-direction: column; gap: 14px; }
.contact__links a {
  text-decoration: none; font: 400 clamp(16px, 1.5vw, 20px)/1 var(--f-body); color: rgba(251, 249, 244, .88);
  display: flex; align-items: center; gap: 14px;
  transition: color .35s, gap .35s;
}
.contact__links a:hover { color: var(--gold-light); gap: 20px; }
.contact__links span { width: 32px; height: 1px; background: currentColor; display: inline-block; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: rgba(251, 249, 244, .55); border-top: 1px solid var(--line-d); padding: 40px 0; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.foot__brand { font: 400 16px/1 var(--f-display); color: var(--vanilla); }
.foot__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__nav a { text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 249, 244, .6); }
.foot__nav a:hover { color: var(--vanilla); }
.foot small { font-size: 11.5px; letter-spacing: .04em; }

/* ---------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--e-arrive), transform .9s var(--e-arrive);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
