/* SproutCrew — Approval Portal 3D & Minimalist Reveal System
   Obsidian (#111011) · Alabaster (#F4F1F2) · Blush (#F8A6BE) · Crimson (#E84574 / #C82856)
   Zero external dependencies. Self-hosted DM Sans + editorial Georgia italic. */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --p-bg: #111011;
  --p-surface: #181517;
  --p-surface-2: #211C1F;
  --p-ink: #F4F1F2;
  --p-muted: #B8AEB2;
  --p-subtle: #8C8287;
  --p-line: rgba(244, 241, 242, 0.10);
  --p-line-strong: rgba(248, 166, 190, 0.28);
  --p-blush: #F8A6BE;
  --p-crimson: #E84574;
  --p-cta: #C82856;
  --p-cta-hover: #E03868;
  --p-ok: #59D185;
  --p-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --p-serif: Georgia, "Times New Roman", serif;
  --p-mono: "SFMono-Regular", ui-monospace, Menlo, monospace;
  --p-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --p-radius: 18px;
  --p-max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--p-bg);
  color: var(--p-ink);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body.portal-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--p-bg);
  color: var(--p-ink);
  font: 16px/1.6 var(--p-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.portal-body a { color: var(--p-blush); text-underline-offset: 4px; }
.portal-body a:hover { color: #fff; }
.portal-body :focus-visible { outline: 2px solid var(--p-blush); outline-offset: 3px; border-radius: 6px; }

.portal-body .skip {
  position: absolute; left: -9999px;
}
.portal-body .skip:focus {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--p-cta); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}

/* ---------- Navigation ---------- */
.p-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(17, 16, 17, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--p-line);
}
.p-nav-inner {
  width: min(var(--p-max), calc(100% - 32px));
  margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.p-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--p-ink); text-decoration: none;
  font-size: 18px; font-weight: 700; letter-spacing: -0.03em;
}
.p-brand:hover { color: #fff; }
.p-brand img {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 15%, #2B2327, #111011);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px;
}
.p-links {
  display: flex; align-items: center; gap: 26px;
}
.p-links a {
  color: var(--p-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
}
.p-links a:hover, .p-links a[aria-current="page"] { color: var(--p-ink); }
.p-cta-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--p-cta); color: #fff !important;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 9px;
  transition: background 0.2s ease, transform 0.2s var(--p-ease);
}
.p-cta-sm:hover { background: var(--p-cta-hover); transform: translateY(-1px); }

/* ---------- Layout & Typography ---------- */
.p-wrap {
  width: min(var(--p-max), calc(100% - 36px));
  margin: 0 auto;
}
.p-wrap-narrow {
  width: min(840px, calc(100% - 36px));
  margin: 0 auto;
}
.p-section {
  padding: clamp(68px, 10vw, 128px) 0;
  position: relative;
}
.p-section + .p-section {
  border-top: 1px solid var(--p-line);
}
.p-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--p-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-blush);
  margin: 0 0 18px;
}
.p-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--p-mono);
  letter-spacing: 0.04em;
  color: var(--p-blush);
  background: rgba(232, 69, 116, 0.11);
  border: 1px solid rgba(248, 166, 190, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
}
.p-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-crimson);
  box-shadow: 0 0 10px var(--p-crimson);
}
.p-h1 {
  margin: 0;
  font-size: clamp(34px, 7.2vw, 84px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.048em;
  color: var(--p-ink);
}
.p-h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.042em;
  color: var(--p-ink);
}
.p-h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.028em;
  color: var(--p-ink);
}
.p-h1 em, .p-h2 em, .p-h3 em {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--p-blush);
  letter-spacing: -0.02em;
}
.p-lede {
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.48;
  color: var(--p-muted);
  max-width: 48ch;
}
.p-sub {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--p-muted);
  max-width: 46ch;
}
.p-center { text-align: center; }
.p-center .p-lede, .p-center .p-sub { margin-inline: auto; }

/* ---------- Buttons ---------- */
.p-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 28px;
}
.p-center .p-actions { justify-content: center; }
.p-btn, .portal-body .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 0;
  background: var(--p-cta); color: #fff !important;
  font: 600 15px/1 var(--p-ui); text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 34px rgba(200, 40, 86, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.24s var(--p-ease), background 0.2s ease, box-shadow 0.24s var(--p-ease);
}
.p-btn:hover, .portal-body .button:hover {
  background: var(--p-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(232, 69, 116, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.p-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--p-ink) !important;
  font: 500 15px/1 var(--p-ui); text-decoration: none; cursor: pointer;
  transition: transform 0.24s var(--p-ease), background 0.2s ease, border-color 0.2s ease;
}
.p-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(248, 166, 190, 0.36);
  transform: translateY(-2px);
}

/* ---------- Hero Glow & 3D Approval Portal Emblem ---------- */
.p-hero {
  position: relative;
  padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(232, 69, 116, 0.20) 0%, rgba(200, 40, 86, 0.05) 45%, transparent 72%),
    linear-gradient(180deg, #151214 0%, #111011 100%);
  border-bottom: 1px solid var(--p-line);
}
.p-hero-compact {
  padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5vw, 68px);
}

/* 3D Layered Approval Portal Sculpture */
.portal-emblem-wrap {
  perspective: 900px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 24px;
}
.portal-emblem-3d {
  width: 84px; height: 84px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -12deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.portal-emblem-3d.lg { width: 128px; height: 128px; }
.portal-layer {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.portal-layer.glow {
  transform: translateZ(-22px) scale(1.35);
  background: radial-gradient(circle, rgba(232, 69, 116, 0.42), transparent 68%);
  border-radius: 50%;
  filter: blur(12px);
}
.portal-layer.plate {
  transform: translateZ(0px);
  border-radius: 24%;
  background: linear-gradient(145deg, #272024 0%, #131113 78%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(248, 166, 190, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.portal-layer.frame { transform: translateZ(16px); }
.portal-layer.leaf-sm { transform: translateZ(30px); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.portal-layer.leaf-lg { transform: translateZ(46px); filter: drop-shadow(0 10px 16px rgba(200, 40, 86, 0.42)); }
.portal-layer svg { width: 78%; height: 78%; display: block; }

/* ---------- Hero 3D Scroll-Unfolding Mac Stage ---------- */
.stage-scene {
  margin-top: clamp(40px, 6vw, 68px);
  perspective: 1600px;
  perspective-origin: 50% 25%;
}
.stage-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 18px;
}
.stage-tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  max-width: 100%;
  padding: 4px; gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--p-line);
  border-radius: 12px;
}
.stage-tab {
  border: 0; background: transparent; color: var(--p-muted);
  font: 500 13px/1 var(--p-ui);
  padding: 9px 14px; border-radius: 8px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.stage-tab:hover { color: var(--p-ink); }
.stage-tab[aria-pressed="true"] {
  background: rgba(232, 69, 116, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(248, 166, 190, 0.34);
}
.stage-theme-btn {
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--p-muted);
  font: 500 12px/1 var(--p-mono);
  padding: 9px 13px; border-radius: 10px; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.stage-theme-btn:hover { border-color: var(--p-line-strong); color: #fff; }

.stage-3d {
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--scroll-rx, 14deg))
    rotateY(var(--tilt-ry, 0deg))
    scale(var(--scroll-scale, 0.96));
  transition: transform 0.22s ease-out;
  will-change: transform;
  border-radius: 20px;
}
.stage-3d.is-flipping {
  animation: stageFlip 0.45s var(--p-ease);
}
@keyframes stageFlip {
  0% { transform: rotateX(var(--scroll-rx, 4deg)) rotateY(0deg) scale(1); }
  45% { transform: rotateX(var(--scroll-rx, 4deg)) rotateY(8deg) scale(0.985); }
  100% { transform: rotateX(var(--scroll-rx, 4deg)) rotateY(0deg) scale(1); }
}

.mac-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #161315;
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(248, 166, 190, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.mac-frame::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 20%), rgba(248, 166, 190, 0.10), transparent 55%);
}
.mac-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #211D20, #181517);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 12px/1 var(--p-mono);
  color: var(--p-muted);
}
.mac-bar [data-stage-title] {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mac-lights { display: flex; gap: 7px; }
.mac-lights span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mac-lights span:nth-child(1) { background: #FF5F56; }
.mac-lights span:nth-child(2) { background: #FFBD2E; }
.mac-lights span:nth-child(3) { background: #27C93F; }
.mac-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #141214;
  overflow: hidden;
}
.mac-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.015);
  transition: opacity 0.4s var(--p-ease), transform 0.55s var(--p-ease);
}
.mac-screen img.active {
  opacity: 1; transform: scale(1);
}

/* Floating 3D interactive approval bar layered in Z space */
.stage-float-bar {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%) translateZ(46px);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px;
  border-radius: 14px;
  background: rgba(17, 16, 17, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(248, 166, 190, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  max-width: calc(100% - 28px);
  z-index: 4;
}
.stage-float-copy {
  font-size: 13px; color: var(--p-ink); white-space: nowrap;
}
.stage-float-copy strong { color: var(--p-blush); font-weight: 600; }
.stage-approve-btn {
  border: 0; border-radius: 9px;
  background: var(--p-cta); color: #fff;
  font: 600 13px/1 var(--p-ui);
  padding: 9px 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s var(--p-ease);
}
.stage-approve-btn:hover { background: var(--p-cta-hover); transform: translateY(-1px); }
.stage-approve-btn.approved {
  background: rgba(89, 209, 133, 0.18);
  color: var(--p-ok);
  box-shadow: inset 0 0 0 1px rgba(89, 209, 133, 0.42);
}

/* ---------- 3D Scroll Reveal Engine ---------- */
html.has-3d [data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.78s var(--p-ease),
    transform 0.92s var(--p-ease),
    filter 0.78s var(--p-ease);
  transition-delay: var(--delay, 0ms);
}
html.has-3d [data-reveal="up"] {
  transform: perspective(1100px) translate3d(0, 34px, -30px) rotateX(8deg);
  filter: blur(4px);
}
html.has-3d [data-reveal="tilt"] {
  transform: perspective(1200px) translate3d(0, 44px, -60px) rotateX(14deg) rotateY(-4deg) scale(0.96);
}
html.has-3d [data-reveal="scale"] {
  transform: perspective(1100px) translate3d(0, 26px, -70px) scale(0.93);
}
html.has-3d [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- 3D Pointer-Tilt Surface Cards ---------- */
.tilt-card {
  position: relative;
  border-radius: var(--p-radius);
  border: 1px solid var(--p-line);
  background: linear-gradient(155deg, rgba(33, 28, 31, 0.92), rgba(20, 18, 20, 0.96));
  padding: clamp(22px, 3vw, 32px);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.tilt-card::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(248, 166, 190, 0.14), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.tilt-card:hover {
  border-color: var(--p-line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50);
}
.tilt-card:hover::before { opacity: 1; }

/* ---------- 3-Step Walkthrough (Split 3D Beats) ---------- */
.beats {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
  margin-top: clamp(36px, 5vw, 56px);
}
.beat {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}
.beat.reverse .beat-copy { order: 2; }
.beat-num {
  display: inline-block;
  font: 500 12px/1 var(--p-mono);
  color: var(--p-blush);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.beat-shot-wrap {
  perspective: 1100px;
}
.beat-shot {
  display: block; position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #161315;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.56);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.24s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.beat-shot:hover {
  border-color: var(--p-line-strong);
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(248, 166, 190, 0.22);
}
.beat-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
}
.beat-zoom {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(17, 16, 17, 0.84);
  backdrop-filter: blur(8px);
  color: var(--p-ink);
  font: 500 12px/1 var(--p-mono);
  padding: 7px 11px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- 3D Deliverable Fan ---------- */
.fan-stage {
  margin-top: clamp(36px, 5vw, 56px);
  perspective: 1400px;
}
.fan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  transform-style: preserve-3d;
}
.fan-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--p-line);
  background: linear-gradient(160deg, #1E191C 0%, #141214 82%);
  padding: 24px 20px 22px;
  display: flex; flex-direction: column; gap: 18px;
  transform-style: preserve-3d;
  transform: rotateY(var(--fan-ry, 0deg)) translateZ(var(--fan-z, 0px));
  transition:
    transform 0.45s var(--p-ease),
    border-color 0.25s ease,
    box-shadow 0.35s var(--p-ease),
    opacity 0.3s ease;
  cursor: default;
}
.fan-card:nth-child(1) { --fan-ry: 10deg; --fan-z: -10px; }
.fan-card:nth-child(2) { --fan-ry: 4deg; --fan-z: 10px; }
.fan-card:nth-child(3) { --fan-ry: -4deg; --fan-z: 10px; }
.fan-card:nth-child(4) { --fan-ry: -10deg; --fan-z: -10px; }
.fan-grid:hover .fan-card { opacity: 0.72; }
.fan-grid .fan-card:hover {
  opacity: 1;
  transform: rotateY(0deg) translateZ(42px) translateY(-10px);
  border-color: var(--p-line-strong);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(248, 166, 190, 0.22);
  z-index: 5;
}
.fan-sheet {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #FDFCFB;
  color: #161315;
  padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
  transform: translateZ(18px);
}
.fan-sheet.dark {
  background: linear-gradient(145deg, #211C1F, #131113);
  color: #F4F1F2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sheet-tag {
  font: 600 10px/1 var(--p-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--p-cta);
}
.fan-sheet.dark .sheet-tag { color: var(--p-blush); }
.sheet-bars { display: grid; gap: 6px; margin-top: 8px; }
.sheet-bar { height: 6px; border-radius: 3px; background: rgba(22, 19, 21, 0.12); }
.sheet-bar.accent { background: rgba(200, 40, 86, 0.78); width: 58%; }
.sheet-bar.w80 { width: 82%; }
.sheet-bar.w65 { width: 64%; }
.fan-sheet.dark .sheet-bar { background: rgba(244, 241, 242, 0.14); }
.fan-sheet.dark .sheet-bar.accent { background: var(--p-crimson); }
.sheet-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 42px; margin-top: 8px;
}
.sheet-chart span {
  flex: 1; border-radius: 3px 3px 0 0; background: rgba(248, 166, 190, 0.34);
}
.sheet-chart span.hi { background: var(--p-crimson); }
.sheet-cells {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px;
}
.sheet-cells span {
  height: 12px; border-radius: 3px; background: rgba(22, 19, 21, 0.09);
}
.sheet-cells span.sum { background: rgba(40, 167, 94, 0.25); border: 1px solid rgba(40, 167, 94, 0.5); }

.fan-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.fan-card p { margin: 4px 0 0; font-size: 14px; color: var(--p-muted); line-height: 1.45; }

/* ---------- Minimalist Stat Pillars ---------- */
.p-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.p-pillars-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.p-pillar-val {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--p-ink);
}
.p-pillar-val em {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--p-blush);
}
.p-pillar-label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--p-muted);
  line-height: 1.4;
}

/* ---------- Expandable Details Drawers (Minimalist Progressive Disclosure) ---------- */
details.p-drawer {
  margin-top: 18px;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}
details.p-drawer[open] {
  border-color: var(--p-line-strong);
  background: rgba(255, 255, 255, 0.04);
}
details.p-drawer > summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 500 14px/1.3 var(--p-ui);
  color: var(--p-ink);
  user-select: none;
}
details.p-drawer > summary::-webkit-details-marker { display: none; }
details.p-drawer > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--p-blush);
  font: 500 16px/1 var(--p-mono);
  transition: transform 0.28s var(--p-ease), background 0.2s ease;
}
details.p-drawer[open] > summary::after {
  transform: rotate(45deg);
  background: rgba(232, 69, 116, 0.22);
}
.p-drawer-body {
  padding: 0 18px 18px;
  color: var(--p-muted);
  font-size: 15px;
  line-height: 1.62;
  border-top: 1px solid var(--p-line);
  padding-top: 14px;
}
.p-drawer-body p { margin: 0 0 10px; }
.p-drawer-body p:last-child { margin-bottom: 0; }
.p-drawer-body ul, .p-drawer-body ol { margin: 6px 0 0; padding-left: 20px; }
.p-drawer-body li { margin: 6px 0; }
.p-drawer-body strong { color: var(--p-ink); font-weight: 600; }
.p-drawer-body code {
  font-family: var(--p-mono); font-size: 13px;
  color: var(--p-blush);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px; border-radius: 5px;
  overflow-wrap: anywhere;
}

.p-drawer-stack {
  display: grid; gap: 10px;
  margin-top: 24px;
}
.p-drawer-stack details.p-drawer { margin-top: 0; }

/* Inline subtle disclosure toggle inside compact cards */
details.p-inline {
  margin-top: 16px;
}
details.p-inline > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--p-mono);
  color: var(--p-blush);
  padding: 6px 0;
  user-select: none;
}
details.p-inline > summary::-webkit-details-marker { display: none; }
details.p-inline > summary::before {
  content: "+";
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(248, 166, 190, 0.36);
  font-size: 13px;
  transition: transform 0.25s var(--p-ease);
}
details.p-inline[open] > summary::before { transform: rotate(45deg); }
details.p-inline .p-inline-body {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--p-line);
  font-size: 14px;
  color: var(--p-muted);
  line-height: 1.58;
}
details.p-inline .p-inline-body p { margin: 0 0 8px; }
details.p-inline .p-inline-body p:last-child { margin-bottom: 0; }

/* ---------- Cinema / Screening Room ---------- */
.p-cinema {
  margin: 34px 0 0;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(155deg, #1B1619, #121012 78%);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
}
.p-cinema-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px 12px;
  font: 500 12px/1 var(--p-mono);
  color: var(--p-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.p-cinema-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #090809;
  aspect-ratio: 16 / 9;
}
.p-cinema-screen video {
  width: 100%; height: 100%; display: block; object-fit: contain;
}
.p-cinema-screen .start-film {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid rgba(248, 166, 190, 0.45);
  background: rgba(200, 40, 86, 0.90);
  color: #fff; font-size: 24px; cursor: pointer;
  display: grid; place-items: center; padding-left: 4px;
  box-shadow: 0 18px 46px rgba(200, 40, 86, 0.48);
  transition: transform 0.25s var(--p-ease), background 0.2s ease;
}
.p-cinema-screen .start-film[hidden] { display: none; }
.p-cinema-screen .start-film:hover { transform: scale(1.08); background: var(--p-cta-hover); }
.p-cinema .film-menu {
  display: flex; gap: 8px; padding: 12px 4px 2px;
}
.p-cinema .film-menu button {
  border: 1px solid var(--p-line);
  background: transparent; color: var(--p-muted);
  font: 500 13px/1 var(--p-ui);
  padding: 9px 14px; border-radius: 9px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.p-cinema .film-menu button[aria-pressed="true"] {
  background: rgba(232, 69, 116, 0.18);
  border-color: rgba(248, 166, 190, 0.36);
  color: #fff;
}

/* ---------- Updates Strip & Grid ---------- */
.p-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.p-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.p-update-card {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  color: var(--p-ink);
}
.p-update-card strong {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.038em;
  line-height: 1.12;
  color: var(--p-ink);
}
.p-update-card strong em {
  font-family: var(--p-serif); font-style: italic; font-weight: 400; color: var(--p-blush);
}
.p-update-card span.desc { font-size: 14px; color: var(--p-muted); }

/* ---------- Download Release Box ---------- */
.p-release-card {
  margin-top: 32px;
  text-align: center;
  padding: clamp(28px, 4vw, 44px);
}
.p-release-card h2 {
  margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em;
}
.p-release-card .p-sub { margin-inline: auto; }
.p-release-card .button { margin-top: 22px; }
.p-release-meta {
  margin: 16px auto 0;
  font-size: 13px; color: var(--p-subtle);
  max-width: 48ch;
}
.p-release-card details#release-checksum {
  margin: 22px auto 0;
  max-width: 560px;
  text-align: left;
}

/* ---------- Lightbox Dialog ---------- */
dialog.p-lightbox {
  padding: 0; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; background: #141214; color: var(--p-ink);
  max-width: min(1160px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.85);
}
dialog.p-lightbox::backdrop {
  background: rgba(8, 7, 8, 0.82);
  backdrop-filter: blur(8px);
}
.p-lightbox-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--p-line);
  font-size: 14px;
}
.p-lightbox-bar button {
  border: 1px solid var(--p-line); background: transparent; color: var(--p-ink);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font: 500 13px var(--p-ui);
}
.p-lightbox-img {
  padding: 12px; background: #0D0C0D;
}
.p-lightbox-img img {
  display: block; max-width: 100%; max-height: calc(100vh - 110px);
  width: auto; height: auto; margin: 0 auto; border-radius: 8px;
}

/* ---------- Footer ---------- */
.p-footer {
  margin-top: auto;
  border-top: 1px solid var(--p-line);
  padding: 36px 0 44px;
  color: var(--p-subtle);
  font-size: 14px;
}
.p-footer-inner {
  width: min(var(--p-max), calc(100% - 36px));
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
}
.p-footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
}
.p-footer-nav a {
  color: var(--p-muted); text-decoration: none; font-size: 13px;
}
.p-footer-nav a:hover { color: #fff; text-decoration: underline; }
.p-footer-meta {
  width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 18px; border-top: 1px solid var(--p-line);
  font-size: 13px; color: var(--p-subtle);
}
.p-footer-meta a { color: var(--p-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .fan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fan-card { --fan-ry: 0deg !important; --fan-z: 0px !important; }
  .p-pillars, .p-pillars-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beat { grid-template-columns: 1fr; }
  .beat.reverse .beat-copy { order: 0; }
}
@media (max-width: 680px) {
  .p-nav-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .p-brand { font-size: 16px; }
  .p-cta-sm { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .p-links { order: 3; width: 100%; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--p-line); }
  .stage-tab { padding: 8px 10px; font-size: 12px; }
  .mac-bar > span:last-child { display: none; }
  .p-grid-2, .p-grid-3, .p-pillars, .p-pillars-4 { grid-template-columns: 1fr; }
  .fan-grid { grid-template-columns: 1fr; }
  .stage-float-bar {
    position: static; transform: none; margin: 12px auto 0;
    width: 100%; justify-content: space-between;
  }
  .stage-float-copy { white-space: normal; font-size: 12px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-3d [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .stage-3d, .portal-emblem-3d, .tilt-card, .fan-card, .beat-shot { transform: none !important; transition: none !important; animation: none !important; }
}
