/* Privé San Francisco — marketing site. Black marble, brushed gold, editorial serif. */

:root {
  --bg: #070605;
  --bg-2: #0e0c0a;
  --bg-3: #171310;
  --ink: #f1eadc;
  --ink-2: #b8ad9a;
  --muted: #7d7366;
  --line: rgba(241, 234, 220, 0.10);
  --line-2: rgba(201, 168, 106, 0.35);
  --gold: #c9a86a;
  --gold-2: #e9cc86;
  --gold-3: #8a6b35;
  --gold-ink: #15110a;
  --gold-grad: linear-gradient(180deg, #f3dc9c 0%, #c9a86a 45%, #8a6b35 100%);
  --serif: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 60ch;
  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
.muted { color: var(--muted); }
em { font-style: normal; color: var(--muted); font-weight: 300; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: var(--measure); margin-bottom: 3rem; }
.lede { color: var(--ink-2); font-size: 1.15rem; max-width: var(--measure); }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.25rem; font-weight: 400;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.link { color: var(--gold); text-decoration: none; letter-spacing: 0.06em; font-size: 0.95rem; }
.link:hover { color: var(--gold-2); }

/* ---------- buttons ---------- */
.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.75rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--gold {
  background: var(--gold-grad); color: var(--gold-ink); border-color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset, 0 10px 30px -12px rgba(201,168,106,.6);
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset, 0 14px 36px -12px rgba(233,204,134,.8); }
.btn--ghost { color: var(--ink); border-color: var(--line-2); background: rgba(7,6,5,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--block { width: 100%; margin-top: auto; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: linear-gradient(180deg, rgba(7,6,5,.85), rgba(7,6,5,0));
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(7,6,5,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__emblem { width: 22px; height: auto; filter: drop-shadow(0 0 6px rgba(201,168,106,.35)); }
.brand__word {
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.3; padding-top: .05em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .28em;
}
.brand__city { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-left: -.2rem; }
.nav__links { display: flex; gap: 1.75rem; align-items: center; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-weight: 400; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--gold) !important; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .25s ease, opacity .25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 52%, rgba(7,6,5,.55) 0%, rgba(7,6,5,.75) 60%, rgba(7,6,5,.95) 100%),
    linear-gradient(180deg, rgba(7,6,5,.5) 0%, rgba(7,6,5,0) 25%, rgba(7,6,5,0) 60%, var(--bg) 100%);
}
.hero__content { padding: 9rem var(--gutter) 7rem; max-width: 60rem; }
.hero__title { margin-bottom: 0.5em; display: flex; flex-direction: column; align-items: center; gap: .35em; line-height: 1; }
.hero__name {
  font-size: clamp(4.5rem, 14vw, 10rem); line-height: 1.25; letter-spacing: 0.18em; text-transform: uppercase; padding: .08em 0 0 .18em; margin-bottom: -.2em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.95)) drop-shadow(0 0 40px rgba(201,168,106,.25));
}
.hero__place { font-family: var(--sans); font-weight: 300; font-size: clamp(0.9rem, 2.2vw, 1.35rem); letter-spacing: 0.5em; text-transform: uppercase; color: var(--ink); padding-left: .5em; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.hero__lede { color: var(--ink-2); text-shadow: 0 1px 8px rgba(0,0,0,.9); font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; margin-bottom: 2.25rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 1px; height: 56px; overflow: hidden; }
.hero__scroll span { display: block; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--gold), transparent); animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- intro ---------- */
.intro__text { max-width: 44rem; margin: 0 auto; text-align: center; }
.intro__text .lede { margin-left: auto; margin-right: auto; }

/* ---------- room ---------- */
.room__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.room__plan { margin: 0; position: sticky; top: 6rem; }
.room__plan img { border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 100px -30px rgba(201,168,106,.25); }
.legend, .perks { list-style: none; margin: 0; padding: 0; }
.legend li, .perks li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.legend li:last-child, .perks li:last-child { border-bottom: 1px solid var(--line); }
.legend h3, .perks h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.legend p, .perks p { color: var(--ink-2); margin: 0; }
.legend__n, .perk__n { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; letter-spacing: .1em; padding-top: .3rem; }

/* ---------- membership ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 3rem; }
.perks li:last-child { border-bottom: 0; }
@media (min-width: 700px) { .perks li { border-bottom: 0; } }

/* ---------- tiers ---------- */
.tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 2.25rem 2rem; border: 1px solid var(--line); background: var(--bg-2); border-radius: 6px;
}
.tier--featured {
  border-color: var(--line-2); background: linear-gradient(180deg, #14110c, var(--bg-2));
  box-shadow: 0 0 0 1px rgba(201,168,106,.15), 0 40px 90px -40px rgba(201,168,106,.35);
}
.tier__flag { position: absolute; top: -0.7rem; left: 2rem; margin: 0; padding: 0.25rem 0.7rem; background: var(--gold-grad); color: var(--gold-ink); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; border-radius: 2px; font-weight: 500; }
.tier h3 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.price { margin: 0 0 1rem; font-family: var(--serif); }
.price strong { font-weight: 400; font-size: 1.9rem; color: var(--gold-2); }
.price span { color: var(--muted); font-family: var(--sans); font-size: 0.85rem; margin-left: .15rem; }
.price em { margin: 0 .4rem; font-size: .85rem; }
.tier__tag { color: var(--ink-2); min-height: 3.2em; }
.center { text-align: center; }
.small { font-size: .9rem; }
.tier ul { padding: 0; margin: 0 0 1.5rem; list-style: none; }
.tier li { padding: 0.6rem 0 0.6rem 1.4rem; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: 0.98rem; }
.tier li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.tier__cap { color: var(--muted); font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.5rem; }

/* ---------- packages ---------- */
.menu { list-style: none; margin: 0; padding: 0; counter-reset: pk; }
.menu li { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); counter-increment: pk; }
.menu li:last-child { border-bottom: 1px solid var(--line); }
.menu li > div { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: .5rem; position: relative; }
.menu li > div::before { content: counter(pk, decimal-leading-zero); font-family: var(--serif); color: var(--gold); font-size: .95rem; letter-spacing: .1em; padding-top: .45rem; grid-row: 1 / span 2; }
.menu h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 .25em; letter-spacing: .04em; }
.menu p { color: var(--ink-2); margin: 0; max-width: 56ch; grid-column: 2; }
.menu .tier__flag { position: static; display: inline-block; grid-column: 2; margin-bottom: .6rem; justify-self: start; color: var(--gold-ink); font-size: .62rem; max-width: none; }
.menu__cta { flex: none; color: var(--gold); text-decoration: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; padding: .7rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--radius); transition: background .2s ease, color .2s ease; }
.menu__cta:hover { background: var(--gold); color: var(--gold-ink); }
.menu__featured { background: linear-gradient(90deg, rgba(201,168,106,.07), transparent 70%); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
@media (max-width: 700px) {
  .menu li { flex-direction: column; align-items: stretch; gap: 1rem; }
  .menu__cta { align-self: flex-start; margin-left: 3.75rem; }
}

/* ---------- founding ---------- */
.founding { text-align: center; overflow: hidden; isolation: isolate; padding: clamp(6rem, 14vw, 11rem) 0; }
.founding__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; filter: saturate(.8); }
.founding::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(7,6,5,.4), var(--bg) 85%); }
.founding__inner { display: flex; flex-direction: column; align-items: center; }
.founding__emblem { width: 70px; margin-bottom: 2rem; filter: drop-shadow(0 0 30px rgba(201,168,106,.4)); }
.founding__num { font-family: var(--serif); font-size: clamp(6rem, 16vw, 11rem); line-height: .9; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founding__label { letter-spacing: 0.34em; text-transform: uppercase; font-size: 0.8rem; color: var(--ink-2); margin: 1rem 0 2rem; }
.founding .lede { text-align: center; margin: 0 auto; }

/* ---------- form ---------- */
.apply .section__head { margin-bottom: 0; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field > span { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 0.9rem; font: inherit; font-weight: 300; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.15); }
.field input::placeholder { color: var(--muted); }
.form__foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.form__status { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.form__status.is-ok { color: var(--gold-2); }
.form__status.is-err { color: #d38a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-done { opacity: .55; pointer-events: none; }
.deposit { grid-column: 2; margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line-2); border-radius: 6px; background: linear-gradient(180deg, #14110c, var(--bg-2)); }
.deposit p { color: var(--ink-2); margin-bottom: 1rem; }
@media (max-width: 760px) { .deposit { grid-column: 1; } }

/* ---------- visit ---------- */
.visit__inner { max-width: 44rem; margin: 0 auto; text-align: center; }
.visit__address { font-style: normal; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; margin-bottom: 1rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.hours div:last-child { border-bottom: 1px solid var(--line); }
.hours dt { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--ink-2); padding-top: .15rem; }
.hours dd { margin: 0; color: var(--ink); text-align: right; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; font-size: 0.9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--muted); text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.footer__links a:hover { color: var(--gold); }
.footer .muted { margin: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tiers__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tier--featured { order: -1; }
  .room__grid { grid-template-columns: 1fr; }
  .room__plan { position: static; max-width: 560px; margin: 0 auto 2rem; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .brand__city { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(7,6,5,.96); font-size: 1.1rem; opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open { background: transparent; }
  .hero__content { padding-top: 7rem; padding-bottom: 6rem; }
  .founding__emblem { width: 56px; }
}
