/* ==========================================================================
   Sinful Spaces — v2 "A New Beginning"
   Luxury editorial direction: near-black wine, gold hairlines, ADE display,
   IBM Plex Serif text. Colours follow the game's Design System (Vault > Color).
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "ADE"; src: url("../assets/fonts/Ade-Display.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/IBMPlexSerif-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/IBMPlexSerif-LightItalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/IBMPlexSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/IBMPlexSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/IBMPlexSerif-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../assets/fonts/IBMPlexSerif-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --ink: #0B0405;
  --wine: #180102;
  --wine-2: #2A070B;
  --bordeaux: #6A1216;
  /* brand + category colours (Design System) */
  --cream: #F1C3A9;
  --cream-hi: #F7E3D6;
  --gold: #DB962E;
  --gold-lt: #EDC27A;
  --gold-dk: #A6752A;
  --pink: #E91F67;
  --red: #E3192D;
  --purple: #551A49;
  --light-purple: #C068C1;
  --purple-glow: #D88BDA;
  --green: #3FE850;
  --neutral: #F1C3A9;

  --font-display: "ADE", "Plex", Georgia, serif;
  --font-text: "Plex", "IBM Plex Serif", Georgia, serif;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-io: cubic-bezier(.7,0,.2,1);
  --hair: rgba(219,150,46,.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--font-text); font-weight: 300; font-size: clamp(1rem, .92rem + .35vw, 1.2rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip; /* clip, not hidden: hidden would break position: sticky */
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-family: var(--font-text); font-weight: 500; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow--center { justify-content: center; }
.numeral { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; color: var(--gold-lt); display: inline-flex; align-items: center; gap: 14px; }
.numeral::after { content: ""; width: 48px; height: 1px; background: var(--hair); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.display {
  font-family: var(--font-display); text-transform: uppercase; /* ADE is uppercase-only */
  font-size: clamp(2.6rem, 1.4rem + 5vw, 6.5rem); line-height: .92; letter-spacing: .005em;
  background: linear-gradient(180deg, var(--cream-hi) 0%, var(--cream) 55%, var(--gold-lt) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 32px;
}
.display--xl { font-size: clamp(3.4rem, 1.6rem + 8vw, 10rem); }
.hairline { display: block; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); margin: 28px auto; }
.tag {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--c, var(--gold)); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--c, var(--gold));
}
.tag--harem { --c: var(--purple-glow); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 16px 30px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--font-text); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s, background-color .3s, color .3s;
}
.btn--gold { color: var(--wine); background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 45%, var(--gold-dk) 100%); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(219,150,46,.35); }
.btn--ghost { color: var(--cream); border-color: rgba(241,195,169,.35); background: rgba(11,4,5,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn::after { content: ""; position: absolute; inset: 0; translate: -130% 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); pointer-events: none; }
.btn:hover::after { translate: 130% 0; transition: translate .9s var(--ease); }
.btn--sm { min-height: 40px; padding: 10px 20px; font-size: 11px; }
.btn--lg { min-height: 60px; padding: 20px 36px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: inherit; }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 160; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(237,194,122,.7); pointer-events: none; opacity: 0;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1));
  transition: opacity .3s, background-color .3s, border-color .3s;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-hover { --cs: 1.8; background: rgba(219,150,46,.12); border-color: var(--gold); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Curtain / age gate ---------- */
.curtain { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
html:not(.js) .curtain { display: none; } /* never trap visitors without JavaScript */
.curtain__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transition: transform 1.2s var(--ease-io); }
.curtain__half--top { top: 0; border-bottom: 1px solid transparent; }
.curtain__half--bottom { bottom: 0; }
.curtain__content { position: relative; z-index: 1; width: min(560px, 100% - 40px); text-align: center; transition: opacity .5s, transform .8s var(--ease-io); }
.curtain__logo { width: min(340px, 78%); height: auto; margin: 0 auto; animation: fade-up 1.2s var(--ease) both; }
.curtain .eyebrow { animation: fade-up 1s var(--ease) both; }
.curtain .hairline { animation: grow 1.2s var(--ease) .3s both; transform-origin: top; }
.curtain__gate { animation: fade-up 1s var(--ease) .5s both; }
.curtain__gate[hidden] { display: none; }
.curtain__title { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; letter-spacing: .06em; color: var(--cream-hi); margin-bottom: 12px; }
.curtain__gate p { font-size: 14px; color: rgba(241,195,169,.75); }
.curtain__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.curtain.is-open { pointer-events: none; }
.curtain.is-open .curtain__content { opacity: 0; transform: scale(.96); }
.curtain.is-open .curtain__half--top { transform: translateY(-101%); }
.curtain.is-open .curtain__half--bottom { transform: translateY(101%); }
.curtain.is-gone { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); transition: background-color .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(11,4,5,.72); backdrop-filter: blur(14px); padding-block: 12px; border-color: rgba(219,150,46,.15); }
.site-header__brand img { width: 118px; height: auto; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
.site-header.is-scrolled .site-header__brand img { opacity: 1; transform: none; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-nav a:not(.btn) { position: relative; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(241,195,169,.8); transition: color .3s; }
.site-nav a:not(.btn) i { font-family: var(--font-display); font-style: normal; color: var(--gold); margin-right: 6px; letter-spacing: 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-nav a:not(.btn):hover { color: var(--cream-hi); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }
@media (max-width: 1100px) { .site-nav a:not(.btn) i { display: none; } }
@media (max-width: 960px) {
  .site-header__brand img { opacity: 1; transform: none; width: 96px; }
  .nav-toggle { display: grid; gap: 8px; place-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; z-index: 2; }
  .nav-toggle span { width: 26px; height: 1px; background: var(--cream); transition: transform .4s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 96px var(--gutter) 48px; background: var(--ink);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden;
  }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: 0; color: var(--cream); line-height: 1.15; }
  .site-nav a:not(.btn) i { display: inline; font-size: .45em; vertical-align: middle; }
  .site-nav .btn { margin-top: 28px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero__bg {
  position: absolute; inset: -5%; z-index: -2;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px + var(--sy, 0px) * .35), 0);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/mansion.jpg") center 40% / cover no-repeat;
  filter: brightness(.38) saturate(.9) contrast(1.08) blur(1.5px);
  animation: push 16s var(--ease) both;
}
@keyframes push { from { transform: scale(1.18); } to { transform: scale(1.04); } }
.hero::after { /* vignette, darker on the text side, and a floor */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,4,5,.85) 0%, rgba(11,4,5,.45) 45%, transparent 70%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
/* Duo: Fika behind, Janina in front, a pink disc behind both (from the key art) */
.hero__duo { position: absolute; z-index: 2; right: clamp(-40px, 2vw, 80px); bottom: 0; height: min(96svh, 1120px); aspect-ratio: 1 / 1; pointer-events: none; }
.hero__disc {
  position: absolute; left: 50%; top: 40%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff4f8f 0%, var(--pink) 38%, #a3104a 72%, #5d0a3a 100%);
  box-shadow: 0 0 120px 20px rgba(233,31,103,.35), 0 0 0 1px rgba(237,194,122,.25), 0 0 0 18px rgba(192,104,193,.06);
  transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px + var(--sy, 0px) * .12), 0) scale(var(--disc, 1));
}
.hero__disc::after { /* slow light sweep on the disc */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.16) 80%, transparent 90%);
  animation: sweep 9s linear infinite; mix-blend-mode: soft-light;
}
@keyframes sweep { to { rotate: 1turn; } }
.hero__figure { position: absolute; bottom: 0; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hero__figure img { display: block; width: auto; height: 100%; }
.hero__figure--back { right: 0; height: 90%; transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -8px + var(--sy, 0px) * -.02), 0); }
.hero__figure--back img { filter: brightness(.88); }
.hero__figure--front { left: 4%; height: 100%; transform: translate3d(calc(var(--mx, 0) * -44px), calc(var(--my, 0) * -12px + var(--sy, 0px) * -.06), 0); }
@media (min-width: 761px) and (max-width: 1280px) { .hero__duo { right: calc(-26vw + 120px); } } /* mid widths: keep the title clear */
.hero__content {
  position: absolute; z-index: 3; left: var(--gutter); top: 50%; translate: 0 -46%; width: min(820px, 62vw);
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -6px), 0);
}
.hero__word { margin: 0 0 clamp(20px, 3vh, 36px); font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(4rem, 1rem + 8.6vw, 12rem); line-height: .82; }
.hero__line { display: block; overflow: hidden; padding: .05em 0 .02em; }
.hero__line > span {
  display: block;
  background: linear-gradient(180deg, #ffd9e5 0%, var(--pink) 45%, #8e0b39 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__line--1 > span { background-image: linear-gradient(180deg, #ffd0d3 0%, var(--red) 50%, #7a0610 110%); }
.hero__line--2 { padding-left: .55em; } /* editorial offset */
.hero__lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); line-height: 1.35; color: var(--cream-hi); margin-bottom: 28px; }
.hero__lead em { color: var(--gold-lt); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; z-index: 4; left: 50%; translate: -50% 0; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(241,195,169,.7);
}
.hero__scroll i { position: relative; width: 1px; height: 56px; background: rgba(241,195,169,.2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* hero intro (html.is-ready once the curtain opens) */
.js .hero__line > span { transform: translateY(105%); }
.js .hero__figure { opacity: 0; translate: 0 60px; }
.js .hero__disc { opacity: 0; --disc: .6; }
.js.is-ready .hero__disc { opacity: 1; --disc: 1; transition: opacity 1.2s var(--ease) .2s, transform 1.6s var(--ease) .2s; }
@property --disc { syntax: "<number>"; inherits: false; initial-value: 1; }
.js .reveal-intro { opacity: 0; translate: 0 20px; }
.js.is-ready .hero__line > span { transform: none; transition: transform 1.4s var(--ease) .15s; }
.js.is-ready .hero__line--2 > span { transition-delay: .3s; }
.js.is-ready .hero__figure { opacity: 1; translate: 0 0; transition: opacity 1.4s var(--ease) .35s, translate 1.6s var(--ease) .35s; }
.js.is-ready .hero__figure--front { transition-delay: .55s; }
.js.is-ready .reveal-intro { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease) var(--d), translate 1s var(--ease) var(--d); }

@media (max-width: 760px) {
  .hero::after { z-index: 2; background: linear-gradient(0deg, var(--ink) 0%, rgba(11,4,5,.94) 30%, rgba(11,4,5,.5) 46%, transparent 62%), linear-gradient(180deg, rgba(11,4,5,.6), transparent 30%); }
  .hero__duo { z-index: 1; right: 50%; translate: 50% 0; height: min(74svh, 150vw); bottom: 14svh; }
  .hero__content { top: auto; bottom: 28px; translate: none; width: auto; right: var(--gutter); transform: none; }
  .hero__word { position: static; font-size: 19vw; margin-bottom: 18px; }
  .hero__scroll { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- Scroll reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- I · Prologue ---------- */
.prologue { position: relative; height: 260vh; background: radial-gradient(60% 40% at 50% 50%, rgba(106,18,22,.35), transparent 70%), var(--ink); }
.prologue__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 var(--gutter); }
.prologue__text {
  max-width: 1100px; text-align: center; margin: 0;
  font-size: clamp(1.45rem, .9rem + 2.6vw, 3.3rem); line-height: 1.28; font-weight: 300; color: var(--cream-hi);
}
.prologue__text .w { opacity: .14; transition: opacity .5s var(--ease), color .5s; }
.prologue__text .w.is-lit { opacity: 1; }
.prologue__text em { font-style: italic; }
.prologue__text em .w.is-lit { color: var(--gold-lt); }

/* ---------- II · The Family (pinned horizontal scroll on desktop) ---------- */
.family { position: relative; background: linear-gradient(180deg, var(--ink), var(--wine) 40%, var(--ink)); }
.family__sticky { display: flex; flex-direction: column; gap: 40px; padding: clamp(96px, 10vw, 160px) 0; }
.family__intro { padding: 0 var(--gutter); max-width: 520px; flex: 0 0 auto; }
.family .display { font-size: clamp(2.1rem, .7rem + 2.6vw, 3.5rem); }
.family__progress { display: none; height: 1px; background: rgba(219,150,46,.2); margin-top: 32px; }
.family__progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); }
.family__track { display: flex; align-items: flex-start; gap: clamp(20px, 2.4vw, 40px); padding: 0 var(--gutter) 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.family__track::-webkit-scrollbar { display: none; }
.member { flex: 0 0 clamp(230px, 21vw, 310px); scroll-snap-align: start; }
.member:nth-child(odd):not(.member--lead) { margin-top: 56px; }
.member figure { margin: 0; }
.member__img { position: relative; aspect-ratio: 9 / 16; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--wine-2); }
.member__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(241,195,169,.12); transition: box-shadow .5s; }
.member__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s, opacity 1.2s var(--ease); filter: saturate(.85) brightness(.92); }
.member:hover .member__img img { transform: scale(1.06); filter: none; }
.member:hover .member__img::after { box-shadow: inset 0 0 0 1px var(--c), 0 0 40px color-mix(in srgb, var(--c) 35%, transparent); }
.member figcaption { padding-top: 22px; }
.member__no { font-family: var(--font-display); text-transform: uppercase; color: var(--gold); font-size: 15px; }
.member h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1; color: var(--cream-hi); margin: 6px 0 8px; }
.member__role { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.member figcaption p:last-child { font-size: .9rem; line-height: 1.5; color: rgba(241,195,169,.75); }

/* Ms. Verga leads the family: bigger card, one portrait, quote and facts */
.member--lead { flex-basis: min(86vw, 880px); }
.member--lead figure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.member--lead .member__img { position: relative; }
.member--lead .member__img::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none; box-shadow: inset 0 -120px 80px -60px rgba(11,4,5,.6); }
.member--lead h3 { font-size: clamp(3rem, 1.6rem + 3.4vw, 5.6rem); }
.member--lead .pull { margin: 18px 0 20px; padding-left: 20px; border-left: 1px solid var(--gold); font-style: italic; font-size: clamp(1.05rem, .9rem + .6vw, 1.45rem); line-height: 1.4; color: var(--cream-hi); }
.member--lead figcaption p:last-child { font-size: .95rem; }
@media (max-width: 760px) {
  .member--lead figure { grid-template-columns: 1fr; }
  .member--lead .member__img { width: 78%; }
}

.family.is-pinned .family__sticky { position: sticky; top: 0; height: 100svh; flex-direction: row; align-items: center; gap: 0; padding: 0; overflow: hidden; }
.family.is-pinned .family__intro {
  position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  width: clamp(360px, 30vw, 480px); max-width: none; padding-right: 48px;
  background: linear-gradient(90deg, var(--wine) 0%, var(--wine) 82%, transparent 100%);
}
.family.is-pinned .family__progress { display: block; }
.family.is-pinned .family__track { align-items: center; overflow: visible; padding: 0 var(--gutter) 0 24px; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.family.is-pinned .member { flex-basis: clamp(200px, calc((100svh - 360px) * .5625), 300px); }
.family.is-pinned .member:nth-child(odd):not(.member--lead) { margin-top: 0; translate: 0 48px; }
.family.is-pinned .member:nth-child(even) { translate: 0 -24px; }
.family.is-pinned .member--lead { flex-basis: min(calc((100svh - 220px) * .5625 * 2.25), 900px); }

/* ---------- IV · The Game ---------- */
.game { position: relative; padding: clamp(96px, 10vw, 160px) var(--gutter); text-align: center; background: radial-gradient(60% 50% at 50% 60%, color-mix(in srgb, var(--active, var(--pink)) 14%, transparent), transparent 70%), var(--ink); transition: background .8s; }
.game .eyebrow { justify-content: center; }
.game__intro { max-width: 640px; margin: 0 auto 48px; color: rgba(241,195,169,.85); }
.game__stage { max-width: 1120px; margin: 0 auto; }
.frame {
  position: relative; aspect-ratio: 16 / 9; padding: 10px; border-radius: 14px; background: linear-gradient(140deg, rgba(219,150,46,.45), rgba(219,150,46,.05) 40%, rgba(219,150,46,.3));
  box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 120px color-mix(in srgb, var(--active, var(--pink)) 22%, transparent);
  transition: box-shadow 1s;
}
.frame img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 8px; opacity: 0; transform: scale(1.03); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.frame img.is-active { opacity: 1; transform: none; }
.frame__corner { position: absolute; width: 28px; height: 28px; border: 1px solid var(--gold); }
.frame__corner--tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.frame__corner--br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
.game__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(8px, 2vw, 28px); margin: 8px 0 18px; }
.game__tabs button {
  position: relative; background: none; border: 0; padding: 10px 4px 14px; cursor: pointer;
  font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.6rem); line-height: 1; color: rgba(241,195,169,.3); transition: color .4s;
}
.game__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); transform: scaleX(0); transition: transform .6s var(--ease); }
.game__tabs button:hover { color: rgba(241,195,169,.7); }
.game__tabs button[aria-selected="true"] { color: var(--cream-hi); }
.game__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.game__desc { min-height: 3.4em; max-width: 600px; margin: 0 auto 36px; }
.game__desc p { margin: 0 0 12px; color: rgba(241,195,169,.85); }
.game__desc[data-anim] { animation: fade-up .6s var(--ease); }

/* ---------- V · Residents ---------- */
.residents { position: relative; padding: clamp(96px, 10vw, 160px) 0; overflow: hidden; background: radial-gradient(70% 50% at 50% 0%, rgba(233,31,103,.14), transparent 70%), var(--ink); }
.residents__head { max-width: 1040px; margin: 0 auto 64px; padding: 0 var(--gutter); text-align: center; }
.residents__head .display { font-size: clamp(2.4rem, 1rem + 4.4vw, 5.6rem); }
.residents__head p:last-child { max-width: 680px; margin-inline: auto; }
.residents__head .eyebrow { justify-content: center; }
.residents__head .count { font-variant-numeric: tabular-nums; }
.residents__rows { display: grid; gap: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.row { overflow: hidden; }
.row__track { display: flex; gap: 22px; width: max-content; animation: drift 90s linear infinite; }
.row--reverse .row__track { animation-direction: reverse; animation-duration: 110s; }
.row:hover .row__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.resident { margin: 0; position: relative; flex: 0 0 clamp(160px, 14vw, 220px); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--wine-2); }
.resident img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85) brightness(.85); }
.resident:hover img { transform: scale(1.07); filter: none; }
.resident span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(0deg, rgba(11,4,5,.9), transparent);
  font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; color: var(--cream-hi);
  transform: translateY(30%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.resident:hover span { transform: none; opacity: 1; }
@media (hover: none) { .resident span { transform: none; opacity: 1; font-size: 1.05rem; } }

/* ---------- Finale: Peek + invitation ---------- */
.peek { position: relative; background: linear-gradient(180deg, #181212 70%, var(--ink)); } /* #181212 = the dark side of peek-secret.jpg */
.peek__stage { position: relative; height: 100svh; min-height: 680px; overflow: hidden; touch-action: pan-y; --r: clamp(120px, 13vw, 210px); }
.peek__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%; }
.peek__img--dark { filter: brightness(.16) saturate(.5) blur(1.5px); }
.peek__img--lit {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x, 50%) var(--y, 40%), #000 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x, 50%) var(--y, 40%), #000 45%, transparent 100%);
}
.peek__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 80% 50%, transparent 35%, rgba(12,8,8,.6) 90%), linear-gradient(0deg, rgba(11,4,5,.9), transparent 18%); }
.peek__copy { position: absolute; z-index: 2; left: var(--gutter); top: 50%; translate: 0 -50%; max-width: min(760px, 54vw); }
.peek__copy .display { font-size: clamp(2.6rem, 1rem + 4.2vw, 5.2rem); background: linear-gradient(180deg, #ffd9e5, var(--pink) 70%); -webkit-background-clip: text; background-clip: text; }
.peek__hint { font-style: italic; font-size: .95rem; color: rgba(241,195,169,.7); margin-bottom: 32px; }
.peek__hint .t { display: none; }
@media (hover: none) { .peek__hint .m { display: none; } .peek__hint .t { display: inline; } }
.peek__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.peek__note { margin-top: 16px; font-size: .85rem; color: rgba(241,195,169,.55); }
@media (max-width: 760px) {
  /* phones: the scene on top, the invitation below it */
  .peek__stage { height: auto; min-height: 0; padding: 64svh var(--gutter) 56px; }
  .peek__img { height: 84svh; object-position: 92% 15%; }
  .peek__copy { position: relative; z-index: 2; left: auto; top: auto; translate: none; max-width: none; }
  .peek__stage::after { background: linear-gradient(180deg, transparent 0, transparent 40svh, rgba(24,18,18,.92) 70svh, #181212 84svh); }
  .peek__cta .btn { flex: 1 1 auto; }
}

/* ---------- Verga purple ----------
   Purple is the Verga family colour in the Design System (Purple #551A49, Light Purple #C068C1).
   It shows up as glows, floating dots and the page progress line. */
:root { --violet: #551A49; --violet-deep: #3C0932; }
.prologue, .family, .game { isolation: isolate; }
.bokeh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bokeh i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(192,104,193,.55) 0%, rgba(192,104,193,.18) 40%, transparent 70%);
  filter: blur(var(--b, 0px)); opacity: .8; animation: float var(--t, 18s) ease-in-out var(--dl, 0s) infinite alternate;
}
.bokeh i:nth-child(3n) { background: radial-gradient(circle, rgba(233,31,103,.35) 0%, transparent 70%); }
@keyframes float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx, 30px), var(--dy, -60px), 0); } }
.prologue { background: radial-gradient(50% 40% at 30% 40%, rgba(85,26,73,.5), transparent 70%), radial-gradient(50% 40% at 75% 65%, rgba(106,18,22,.4), transparent 70%), var(--ink); }
.prologue__sticky { position: sticky; z-index: 1; }
.family { background: radial-gradient(40% 50% at 15% 50%, rgba(85,26,73,.55), transparent 70%), linear-gradient(180deg, var(--ink), var(--violet-deep) 45%, var(--ink)); }
.family.is-pinned .family__intro { background: linear-gradient(90deg, var(--violet-deep) 0%, var(--violet-deep) 80%, transparent 100%); }
.family__progress span { background: linear-gradient(90deg, var(--gold), var(--light-purple)); }
.numeral::after { background: linear-gradient(90deg, var(--gold), var(--light-purple)); opacity: .6; }
.curtain__content::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 520px; height: 520px; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(85,26,73,.55), transparent 65%);
}
.page-progress { position: fixed; z-index: 101; top: 0; left: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--page, 0)); background: linear-gradient(90deg, var(--violet), var(--light-purple), var(--pink)); }
.dot { background: var(--light-purple); box-shadow: 0 0 12px var(--light-purple); }

/* ---------- Language switcher ---------- */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(219,150,46,.25); border-radius: 999px; }
.lang button {
  min-width: 34px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 10px; font-weight: 500; letter-spacing: .16em; color: rgba(241,195,169,.65); transition: background-color .3s, color .3s;
}
.lang button:hover { color: var(--cream-hi); }
.lang button[aria-pressed="true"] { background: rgba(219,150,46,.18); color: var(--gold-lt); }
.lang--gate { justify-content: center; width: max-content; margin: 22px auto 0; }
@media (max-width: 960px) { .site-nav .lang { margin-top: 28px; } .lang button { height: 36px; min-width: 48px; font-size: 12px; } }

/* ADE has no accented letters: js wraps them as <span class="dia" data-d="´">A</span> and the mark is drawn here */
.dia { position: relative; }
.dia::after {
  content: attr(data-d); position: absolute; left: 50%; top: -.34em; translate: -50% 0;
  font-family: var(--font-text); font-weight: 400; font-size: .62em; line-height: 1;
}
/* offsets measured from ADE (cap .785em, ascent .80em) and Plex accent glyphs */
.dia[data-d="˜"]::after, .dia[data-d="¨"]::after { top: -.31em; }
.dia--below::after { top: .4em; }
/* titles painted with background-clip: text have a transparent colour, so the accent needs its own */
.display .dia::after { color: var(--cream-hi); }
.peek__copy .display .dia::after { color: #ffd9e5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(219,150,46,.15); padding: 72px var(--gutter) 28px; background: var(--ink); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: var(--maxw); margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(219,150,46,.12); }
.site-footer__logo { width: clamp(200px, 26vw, 360px); height: auto; }
.site-footer__links { display: flex; gap: 32px; }
.site-footer__links a { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.site-footer__links a:hover { color: var(--gold-lt); }
.site-footer__about { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; max-width: var(--maxw); margin: 0 auto; padding: 36px 0; }
.site-footer__about img { width: 150px; height: auto; }
.site-footer__about p { flex: 1 1 360px; margin: 0; font-size: .92rem; color: rgba(241,195,169,.7); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: var(--maxw); margin: 0 auto; font-size: 12px; color: rgba(241,195,169,.5); }
.site-footer__bottom p { margin: 0; }

/* ---------- Cookie bar ---------- */
.cookie-bar { position: fixed; z-index: 120; left: 50%; bottom: 20px; translate: -50% 0; width: min(640px, 100% - 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 22px; background: rgba(24,1,2,.95); border: 1px solid rgba(219,150,46,.3); border-radius: 8px; font-size: .9rem; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 260px; margin: 0; }
.cookie-bar div { display: flex; gap: 8px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .reveal-intro, .js .hero__figure { opacity: 1; transform: none; translate: none; }
  .js .hero__line > span { transform: none; }
  .prologue { height: auto; }
  .prologue__sticky { position: relative; height: auto; padding-block: 120px; }
  .prologue__text .w { opacity: 1; }
  .row__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .residents__rows { -webkit-mask-image: none; mask-image: none; }
  .row--reverse { display: none; }
  .grain { animation: none; }
  .bokeh i { animation: none; }
}
