/* Penthouse Pick members' entrance (splash) */
html.pps-lock, html.pps-lock body { overflow: hidden; }
html.pps-pending { background: #0d0e11; }
html.pps-pending body { visibility: hidden; }
.pps { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; color: var(--on-dark, #f3eee4); font-family: var(--sans, 'Inter', sans-serif); perspective: 1600px; }
.pps-bg { position: absolute; inset: 0; background: #0d0e11 center/cover no-repeat; transition: transform 2.2s cubic-bezier(.7,0,.2,1), opacity 1.6s ease, filter 2.2s ease; }
.pps-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, rgba(13,14,17,.55), rgba(13,14,17,.92)); }
.pps-content { position: relative; z-index: 3; text-align: center; padding: 24px; max-width: 560px; transition: opacity .6s ease, transform .9s cubic-bezier(.7,0,.2,1); }
.pps-mark { width: 44px; height: 44px; color: var(--gold-light, #e2c98f); margin: 0 auto 22px; display: block; }
.pps-eyebrow { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light, #e2c98f); margin: 0 0 14px; }
.pps-title { font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: clamp(42px, 8vw, 72px); line-height: 1; margin: 0; letter-spacing: .01em; color: #fff; }
.pps-line { margin: 18px auto 0; max-width: 40ch; font-family: var(--serif, Georgia, serif); font-style: italic; font-size: clamp(19px, 2.6vw, 23px); line-height: 1.45; color: var(--on-dark-muted, #b4ad9f); }
.pps-rule { width: 64px; height: 1px; margin: 30px auto; background: linear-gradient(90deg, transparent, var(--gold, #b8964e), transparent); }
.pps-enter { appearance: none; cursor: pointer; padding: 15px 52px; border-radius: 999px; border: 1px solid rgba(226,201,143,.7); background: rgba(13,14,17,.35); color: #fff; font: 600 13px/1 var(--sans, sans-serif); letter-spacing: .34em; text-transform: uppercase; backdrop-filter: blur(4px); transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.pps-enter:hover, .pps-enter:focus-visible { background: var(--gold-grad, linear-gradient(135deg,#ead7a6,#cfae68,#b08c46)); color: #1b1a17; box-shadow: 0 10px 40px rgba(207,174,104,.35); outline: none; }
.pps-quiet { display: block; margin: 18px auto 0; background: none; border: 0; cursor: pointer; color: var(--on-dark-muted, #b4ad9f); font: 500 12.5px var(--sans, sans-serif); letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(180,173,159,.4); }
.pps-quiet:hover { color: #fff; }
.pps-in > * { opacity: 0; animation: pps-rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.pps-in > *:nth-child(2) { animation-delay: .15s; } .pps-in > *:nth-child(3) { animation-delay: .3s; }
.pps-in > *:nth-child(4) { animation-delay: .45s; } .pps-in > *:nth-child(n+5) { animation-delay: .65s; }
@keyframes pps-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pps.is-leaving .pps-content { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.pps.is-gone { opacity: 0; transition: opacity .5s ease; pointer-events: none; }

/* Doors shared by "elevator" and "doors" entrances */
.pps-door { position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 2; will-change: transform; }
.pps-door--l { left: 0; } .pps-door--r { right: 0; }
.pps[data-entrance="glide"] .pps-door, .pps:not([data-entrance="elevator"]) .pps-floor { display: none; }

/* Elevator: brushed bronze doors, floor indicator counts up to PH, chime, doors slide apart */
.pps[data-entrance="elevator"] .pps-bg { opacity: 0; }
.pps[data-entrance="elevator"] .pps-door {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a241b 0%, #17140f 55%, #0f0d0a 100%);
  transition: transform 1.6s cubic-bezier(.65,0,.25,1); }
.pps[data-entrance="elevator"] .pps-door--l { box-shadow: inset -1px 0 0 rgba(226,201,143,.55), inset -18px 0 30px rgba(0,0,0,.35); }
.pps[data-entrance="elevator"] .pps-door--r { box-shadow: inset 1px 0 0 rgba(226,201,143,.55), inset 18px 0 30px rgba(0,0,0,.35); }
.pps[data-entrance="elevator"].is-open .pps-door--l { transform: translateX(-100%); }
.pps[data-entrance="elevator"].is-open .pps-door--r { transform: translateX(100%); }
.pps-floor { position: absolute; z-index: 4; top: 28px; left: 50%; transform: translateX(-50%); min-width: 84px; padding: 8px 16px; border: 1px solid rgba(226,201,143,.45); border-radius: 4px; background: rgba(0,0,0,.55); text-align: center; font: 600 22px/1 var(--serif, Georgia, serif); letter-spacing: .12em; color: var(--gold-light, #e2c98f); text-shadow: 0 0 12px rgba(226,201,143,.55); transition: opacity .6s ease; }
.pps[data-entrance="elevator"] .pps-content { padding-top: 92px; }
.pps-floor small { display: block; font: 600 9px/1 var(--sans, sans-serif); letter-spacing: .3em; color: var(--on-dark-muted, #b4ad9f); text-shadow: none; margin-bottom: 6px; }
.pps.is-open .pps-floor { opacity: 0; }

/* Doors: tall double doors with gold inlay swing open, warm light spills through */
.pps[data-entrance="doors"] .pps-door {
  background: linear-gradient(180deg, #16130f, #0e0c09);
  transition: transform 2.1s cubic-bezier(.6,0,.2,1); }
.pps[data-entrance="doors"] .pps-door::before { content: ""; position: absolute; inset: 7% 12%; border: 1px solid rgba(226,201,143,.45); box-shadow: inset 0 0 0 10px rgba(0,0,0,.25), inset 0 0 0 11px rgba(226,201,143,.18); }
.pps[data-entrance="doors"] .pps-door--l { transform-origin: left center; box-shadow: inset -1px 0 0 rgba(226,201,143,.4); }
.pps[data-entrance="doors"] .pps-door--r { transform-origin: right center; box-shadow: inset 1px 0 0 rgba(226,201,143,.4); }
.pps[data-entrance="doors"] .pps-bg { opacity: 0; }
.pps[data-entrance="doors"].is-open .pps-door--l { transform: rotateY(-102deg); }
.pps[data-entrance="doors"].is-open .pps-door--r { transform: rotateY(102deg); }
.pps-light { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(40% 60% at 50% 50%, rgba(246,224,170,.55), rgba(246,224,170,0) 70%); transition: opacity 1s ease; }
.pps[data-entrance="doors"].is-open .pps-light { opacity: 1; }
.pps[data-entrance="doors"].is-gone .pps-light { opacity: 0; }

/* Glide: the camera pushes in through the night skyline */
.pps[data-entrance="glide"].is-open .pps-bg { transform: scale(1.9); opacity: 0; filter: blur(6px); }

/* Music toggle (stays on the site after entering) */
.pp-music { position: fixed; right: 18px; bottom: 18px; z-index: 9000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(226,201,143,.55); background: rgba(13,14,17,.72); color: var(--gold-light, #e2c98f); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .3s ease; }
.pp-music:hover { transform: scale(1.06); }
.pp-music svg { width: 20px; height: 20px; }
.pp-music .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.pp-music .bars i { width: 3px; background: currentColor; border-radius: 1px; animation: pp-eq 1s ease-in-out infinite alternate; }
.pp-music .bars i:nth-child(2) { animation-delay: .3s; } .pp-music .bars i:nth-child(3) { animation-delay: .6s; }
@keyframes pp-eq { from { height: 3px; } to { height: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .pps-door, .pps-bg { transition: none !important; }
  .pps.is-open .pps-door { opacity: 0; }
  .pp-music .bars i { animation: none; height: 9px; }
}

/* ---------- Hero: arrival sequence (runs as the doors part) ---------- */
.hero { overflow: hidden; }
.hero-media { inset: -10% 0; will-change: transform; transform: scale(1.08); }
html.pp-arrive .hero-media { animation: pp-lights-up calc(var(--pp-t, 1) * 3.2s) cubic-bezier(.25,.6,.2,1) both, pp-drift 28s calc(var(--pp-t, 1) * 3.2s) ease-in-out infinite alternate; }
@keyframes pp-lights-up {
  0%   { transform: scale(1.32); filter: brightness(.18) blur(8px) saturate(.6); }
  45%  { filter: brightness(.55) blur(2px) saturate(.85); }
  100% { transform: scale(1.08); filter: brightness(1) blur(0) saturate(1); }
}
@keyframes pp-drift { from { transform: scale(1.08) translateX(0); } to { transform: scale(1.15) translateX(-1.6%); } }
.hero-media.pp-drifting { animation: pp-drift 28s ease-in-out infinite alternate; }

/* Header and copy arrive one by one */
html.pp-arrive .site-header--overlay { animation: pp-drop calc(var(--pp-t, 1) * .9s) calc(var(--pp-t, 1) * 2.2s) cubic-bezier(.2,.7,.2,1) both; }
@keyframes pp-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
html.pp-arrive .hero-inner > * { animation: pp-rise-blur calc(var(--pp-t, 1) * 1.2s) cubic-bezier(.2,.7,.2,1) both; }
html.pp-arrive .hero-inner > :nth-child(1) { animation-delay: calc(var(--pp-t, 1) * 1.1s); }
html.pp-arrive .hero-inner > :nth-child(2) { animation-delay: calc(var(--pp-t, 1) * 1.35s); }
html.pp-arrive .hero-inner > :nth-child(3) { animation-delay: calc(var(--pp-t, 1) * 2.0s); }
html.pp-arrive .hero-inner > :nth-child(4) { animation-delay: calc(var(--pp-t, 1) * 2.2s); }
html.pp-arrive .hero-inner > :nth-child(n+5) { animation-delay: calc(var(--pp-t, 1) * 2.4s); }
@keyframes pp-rise-blur { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Eyebrow: the gold rule draws itself, the letters settle */
html.pp-arrive .hero .eyebrow::before { transform-origin: left; animation: pp-draw calc(var(--pp-t, 1) * 1.1s) calc(var(--pp-t, 1) * 1.1s) cubic-bezier(.6,0,.2,1) both; }
@keyframes pp-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.pp-arrive .hero .eyebrow { animation-name: pp-rise-blur, pp-track; animation-duration: calc(var(--pp-t, 1) * 1.2s), calc(var(--pp-t, 1) * 1.8s); }
@keyframes pp-track { from { letter-spacing: .55em; } to { letter-spacing: .26em; } }

/* "hand-picked." catches the light once */
html.pp-arrive .hero h1 em {
  background: linear-gradient(100deg, var(--gold-light, #e2c98f) 0 42%, #fff6dc 50%, var(--gold-light, #e2c98f) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pp-sheen calc(var(--pp-t, 1) * 1.8s) calc(var(--pp-t, 1) * 2.0s) ease-in-out both;
}
@keyframes pp-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* A single soft glint passes across the skyline */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,232,180,.16) 50%, transparent 62%); background-size: 250% 100%; mix-blend-mode: screen; }
html.pp-arrive .hero::after { animation: pp-glint calc(var(--pp-t, 1) * 2.4s) calc(var(--pp-t, 1) * 1.6s) ease-in-out both; }
@keyframes pp-glint { 0% { opacity: 0; background-position: 110% 0; } 30% { opacity: 1; } 100% { opacity: 0; background-position: -10% 0; } }

@media (prefers-reduced-motion: reduce) {
  html.pp-arrive .hero-media, .hero-media.pp-drifting, html.pp-arrive .hero-inner > *, html.pp-arrive .site-header--overlay,
  html.pp-arrive .hero .eyebrow::before, html.pp-arrive .hero h1 em, html.pp-arrive .hero::after { animation: none !important; }
  html.pp-arrive .hero h1 em { color: var(--gold-light, #e2c98f); background: none; }
}
