:root {
  color-scheme: dark;
  --ink: #0c0a09;
  --ink-2: #15110f;
  --pearl: #f4ede3;
  --muted: #a89d90;
  --gold: #d6b98c;
  --gold-deep: #9c7a4d;
  --line: rgba(214, 185, 140, .22);
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;
  --sans: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--pearl);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before { /* soft paper grain + warm glow */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(214,185,140,.10), transparent 70%),
    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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.maison { position: relative; z-index: 1; }

/* ---------- Portrait ---------- */
.portrait { position: relative; height: 72svh; min-height: 460px; overflow: hidden; }
.portrait-slides { position: absolute; inset: 0; }
.portrait-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.portrait-slides img.is-active { opacity: 1; transform: scale(1); }
.portrait-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,10,9,.35) 0%, transparent 22%, transparent 55%, var(--ink) 99%);
}
.seal {
  position: absolute; top: max(20px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(244,237,227,.55);
  background: rgba(12,10,9,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: italic 17px/1 var(--serif); letter-spacing: .04em; color: var(--pearl);
}
.seal::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgba(244,237,227,.2); }
.portrait-pause {
  position: absolute; right: 18px; top: max(28px, calc(env(safe-area-inset-top) + 8px)); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(244,237,227,.3);
  background: rgba(12,10,9,.25); color: var(--pearl); font-size: 10px; cursor: pointer;
}

/* ---------- Invitation ---------- */
.invite {
  position: relative; margin-top: -120px;
  padding: 0 24px calc(96px + env(safe-area-inset-bottom));
  max-width: 480px; margin-inline: auto; text-align: center;
}
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 14px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.rule { width: 28px; height: 1px; background: var(--gold); opacity: .6; }
.name {
  margin: 0; font: 400 clamp(64px, 19vw, 96px)/.92 var(--serif); letter-spacing: -.02em;
}
.name em { font-style: italic; color: var(--gold); }
.name span, .name em { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.name em { animation-delay: .15s; }
.tagline {
  margin: 18px auto 30px; max-width: 30ch;
  font: italic 17px/1.5 var(--serif); color: #d9cfc2;
}

/* Main CTA */
.vip {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 22px; border-radius: 2px; text-align: left;
  background: linear-gradient(120deg, #efdcbc 0%, #d6b98c 45%, #b8935f 100%);
  color: #1c140c;
  box-shadow: 0 18px 50px -12px rgba(214,185,140,.45), inset 0 0 0 1px rgba(255,255,255,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.vip::before { /* inner hairline frame, like an engraved card */
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(28,20,12,.22); pointer-events: none;
}
.vip::after { /* light sweep */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 4.5s 1.2s ease-in-out infinite;
}
.vip:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px rgba(214,185,140,.6), inset 0 0 0 1px rgba(255,255,255,.35); }
.vip-copy { display: grid; gap: 4px; }
.vip-copy small { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: #5a4430; }
.vip-copy strong { font: 400 27px/1.05 var(--serif); letter-spacing: -.01em; }
.vip-badge {
  flex: none; padding: 8px 12px; border-radius: 40px;
  border: 1px solid rgba(28,20,12,.35);
  font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

.perks {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  font-size: 11px; letter-spacing: .04em; color: var(--muted);
}
.perks li::before { content: "✦"; margin-right: 6px; font-size: 8px; color: var(--gold); vertical-align: 1px; }

/* Secondary links */
.more { margin-top: 38px; border-top: 1px solid var(--line); text-align: left; }
.more a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline;
  padding: 18px 2px; border-bottom: 1px solid var(--line);
  transition: padding .3s ease, color .3s ease;
}
.more a:hover { padding-left: 8px; }
.more-title { font: 400 21px/1.15 var(--serif); }
.more-sub { grid-row: 2; font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.more-arrow { grid-row: 1 / 3; align-self: center; color: var(--gold); font-size: 16px; transition: transform .3s ease; }
.more a:hover .more-arrow { transform: translateX(4px); }

.foot { margin-top: 30px; display: grid; gap: 10px; justify-items: center; }
.socials { display: flex; gap: 10px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.socials a:hover { color: var(--gold); }
.foot p { margin: 0; font-size: 10px; letter-spacing: .12em; color: #6f665d; text-transform: uppercase; }

/* Sticky CTA (mobile) */
.sticky {
  position: fixed; z-index: 10; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: 2px;
  background: linear-gradient(120deg, #efdcbc, #c9a676);
  color: #1c140c; box-shadow: 0 12px 40px rgba(0,0,0,.55);
  font: 400 20px/1 var(--serif);
  opacity: 0; transform: translateY(140%); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.sticky em { font: 600 9px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; font-style: normal;
  padding: 7px 10px; border: 1px solid rgba(28,20,12,.35); border-radius: 40px; }
.sticky.is-shown { opacity: 1; transform: none; pointer-events: auto; }

.invite > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.invite > .tagline { animation-delay: .25s; }
.invite > .vip { animation-delay: .35s; }
.invite > .perks { animation-delay: .45s; }
.invite > .more, .invite > .foot { animation-delay: .55s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

/* ---------- Desktop: framed portrait + invitation card ---------- */
@media (min-width: 981px) {
  .maison {
    min-height: 100vh; max-width: 1240px; margin: 0 auto; padding: 56px 64px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 96px; align-items: center;
  }
  .portrait {
    height: auto; min-height: 0; aspect-ratio: 3 / 4; max-height: calc(100vh - 112px);
    outline: 1px solid var(--line); outline-offset: 14px;
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
  }
  .portrait-shade { background: linear-gradient(180deg, transparent 60%, rgba(12,10,9,.45)); }
  .seal { top: 22px; left: 22px; transform: none; }
  .invite { margin: 0; padding: 0; max-width: none; text-align: left; }
  .kicker { justify-content: flex-start; }
  .kicker .rule:first-child { display: none; }
  .name { font-size: clamp(84px, 8vw, 112px); }
  .tagline { margin-left: 0; }
  .perks { justify-content: flex-start; }
  .foot { justify-items: start; }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
