/* ==========================================================================
   Maison Velle — styles
   Edit the palette and type below; everything else follows from it.
   ========================================================================== */
:root {
  --ink:        #141311;   /* near-black, warm */
  --charcoal:   #1d1b18;
  --charcoal-2: #262320;
  --ivory:      #f6f1e7;   /* warm ivory */
  --cream:      #ece4d4;   /* soft cream */
  --taupe:      #6f665a;   /* dark taupe for secondary text */
  --gold:       #b59a6a;   /* muted antique champagne */
  --gold-soft:  #cdb98f;
  --line-dark:  rgba(181,154,106,.28);
  --line-light: rgba(20,19,17,.14);

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(1.4rem, 5vw, 4rem);
  --section: clamp(5.5rem, 13vw, 10.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 350;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + .7vw, 1.9rem); }
p  { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ivory); color: var(--ink); padding: .6rem 1rem; font-size: .85rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Wordmark (pure CSS typography) ---------- */
.wm { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--serif); text-transform: uppercase; line-height: 1; }
.wm__a { font-weight: 400; letter-spacing: .34em; margin-right: -.34em; }  /* negative margin re-centers tracked text */
.wm__p { font-family: var(--sans); font-weight: 400; letter-spacing: .62em; margin-right: -.62em; color: var(--gold); }
.wm__rule { display: block; width: 2.4em; height: 1px; background: var(--gold); opacity: .7; }

.wm--lg .wm__a { font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6.4rem); }
.wm--lg .wm__rule { width: clamp(3rem, 8vw, 5.5rem); margin: clamp(1.1rem, 2.4vw, 1.8rem) 0; }
.wm--lg .wm__p { font-size: clamp(.82rem, .66rem + .62vw, 1.18rem); }

.wm--sm .wm__a { font-size: 1.12rem; letter-spacing: .3em; margin-right: -.3em; }
.wm--sm .wm__p { font-size: .5rem; margin-top: .45rem; letter-spacing: .7em; margin-right: -.7em; }
.wm--xs .wm__a { font-size: .95rem; letter-spacing: .3em; margin-right: -.3em; }
.wm--xs .wm__p { font-size: .45rem; margin-top: .4rem; letter-spacing: .7em; margin-right: -.7em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem var(--pad);
  color: var(--ivory);
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(20,19,17,.94); padding-top: .9rem; padding-bottom: .9rem; border-color: var(--line-dark); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* backdrop-filter would trap the fixed mobile menu inside the header */
.site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
.header-mark { text-decoration: none; opacity: 0; transition: opacity .5s ease; }
.site-header.is-scrolled .header-mark, .site-header.nav-open .header-mark { opacity: 1; }

.nav__list { display: flex; gap: clamp(1.2rem, 2.6vw, 2.6rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__list a { text-decoration: none; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; opacity: .78; transition: opacity .3s, color .3s; }
.nav__list a:hover { opacity: 1; color: var(--gold-soft); }
.nav__cta { border: 1px solid var(--line-dark); padding: .7rem 1.15rem; opacity: 1 !important; }
.nav__cta:hover { border-color: var(--gold); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .header-mark { opacity: 1; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; color: var(--ivory);
  }
  .nav__bar { display: block; height: 1px; width: 100%; background: currentColor; transition: transform .35s ease; }
  .nav-open .nav__bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav__bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .nav__list {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 2.2rem;
    background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  }
  .nav-open .nav__list { opacity: 1; visibility: visible; }
  .nav__list a { font-size: .8rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; margin-top: 2.6rem;
  padding: 1.05rem 2.4rem;
  font-size: .72rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  color: var(--ivory); border: 1px solid var(--gold);
  transition: background .4s ease, color .4s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--dark { color: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 8rem var(--pad) 6rem;
  color: var(--ivory); overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(181,154,106,.10), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, #0c0b0a, transparent 60%),
    linear-gradient(180deg, #1b1916 0%, var(--ink) 100%);
}
/* faint architectural arch — a quiet nod to European interiors */
.hero__arch {
  position: absolute; left: 50%; top: 50%;
  width: min(78vw, 620px); aspect-ratio: 3 / 4.2;
  transform: translate(-50%, -46%);
  border: 1px solid rgba(181,154,106,.13);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.hero__arch::before {
  content: ""; position: absolute; inset: 22px;
  border: 1px solid rgba(181,154,106,.07);
  border-radius: inherit;
}
.hero::after { /* subtle film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.25;
  margin: clamp(2.6rem, 6vw, 4rem) 0 1.4rem; color: var(--ivory);
}
.hero__intro { max-width: 36rem; margin: 0 auto; color: rgba(246,241,231,.72); }
.hero__foot {
  position: absolute; bottom: 2rem; left: 0; right: 0; margin: 0;
  font-size: .65rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(246,241,231,.4);
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--charcoal); color: var(--ivory); }
.section--dark p { color: rgba(246,241,231,.72); }

.eyebrow {
  font-family: var(--sans); font-size: .68rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--taupe); margin-bottom: 1.6rem;
}
.eyebrow--gold { color: var(--gold) !important; }
.lede { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); line-height: 1.5; font-weight: 400; color: var(--ink); }
.section p:not(.lede):not(.eyebrow) { color: #4a443c; }
.section--dark p:not(.lede):not(.eyebrow) { color: rgba(246,241,231,.7); }

.section__head { max-width: 760px; margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Split layout — The Private Office */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.split__head h2 { max-width: 9ch; }
.split__body .lede { margin-bottom: 2rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__head h2 { max-width: none; } }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.service {
  display: grid; grid-template-columns: 5rem 1fr 1.35fr; gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: baseline;
  padding: clamp(2rem, 4vw, 2.9rem) 0; border-bottom: 1px solid var(--line-light);
}
.service__num { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #8f7748; }
.service p { margin: 0; max-width: 40rem; }
@media (max-width: 860px) {
  .service { grid-template-columns: 3rem 1fr; }
  .service p { grid-column: 2; }
}

/* Approach */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 5vw, 5rem); }
.principle { text-align: center; }
.principle h3 { color: var(--ivory); }
.principle__rule { display: block; width: 2.2rem; height: 1px; background: var(--gold); margin: 1.6rem auto; opacity: .8; }
.principle p { max-width: 20rem; margin: 0 auto; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 3.5rem; } }

/* Membership */
#membership h2 { margin-bottom: 2.2rem; }
#membership .lede { margin-bottom: 1.6rem; }

/* Contact */
.contact { background: var(--ink); border-top: 1px solid var(--line-dark); }
.contact h2 { margin-bottom: 1.8rem; }
.contact__emails { margin: 2.2rem 0 2.2rem; }
.contact__email {
  display: inline-block; margin: 0 0 .55rem;
  font-family: var(--serif); font-size: clamp(1.05rem, .85rem + 1vw, 1.45rem); letter-spacing: .02em;
  color: var(--gold-soft); text-decoration: none;
  border-bottom: 1px solid var(--line-dark); padding-bottom: .35rem;
  transition: color .3s, border-color .3s; word-break: break-word;
}
.contact__email--secondary {
  margin-top: 1.6rem;
  color: var(--gold-soft);
}
.contact__email:hover { color: var(--ivory); border-color: var(--gold); }
.contact__label {
  margin: 0 0 0 !important;
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(246,241,231,.42) !important;
}
.contact__note { font-size: .9rem; max-width: 32rem; margin: 1.8rem auto 0 !important; }
.contact__place { margin-top: 2.6rem !important; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold) !important; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(246,241,231,.55); text-align: center;
  padding: 3.5rem var(--pad) 3rem; border-top: 1px solid rgba(181,154,106,.14);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
.site-footer .wm { color: var(--ivory); margin-bottom: 1.8rem; }
.site-footer p { margin: 0 0 .7rem; }
.site-footer .sep { color: var(--gold); margin: 0 .6em; }
.site-footer__small { font-size: .6rem; opacity: .6; letter-spacing: .18em; }
@media (max-width: 600px) { .site-footer .sep { display: block; height: 0; overflow: hidden; } .site-footer p { line-height: 2.2; } }

/* Reveal on scroll (progressive enhancement; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
