/* ZSEVEN STUDIO — liquid glass + neumorphism ------------------------------ */

:root {
  --pg-bg: #efede7;
  --pg-ink: #141412;
  --pg-accent: #1c4fd8;
  --pg-soft: #f7f5f0;
  --tile-radius: 26px;
  --font-display: 'Fraunces', serif;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-sans);
  background: var(--pg-bg);
  color: var(--pg-ink);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: var(--pg-accent); color: var(--pg-bg); }

/* ---------- custom cursor ---------- */
html.has-cursor,
html.has-cursor * { cursor: none !important; }
#cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 30px;
  height: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
}
#cursor.is-on { opacity: 1; }
#cursor svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #101318;
  color: #eef1f6;
  display: grid;
  place-items: center;
}
.loader-word {
  display: flex;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(42px, 9vw, 110px);
  letter-spacing: 0.02em;
}
.loader-letter {
  display: inline-block;
  transform: translateY(115%);
}
.loader-letter.accent { color: #64c3ff; }

/* ---------- liquid hero canvas ---------- */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
body:not([data-view='home']) #hero-canvas { display: none; }

/* ---------- topbar ---------- */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pg-soft) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--pg-ink) 10%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px -14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-ink);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill:hover { transform: scale(1.05); }
#brand .z { color: var(--pg-accent); }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.pill-dark {
  background: var(--pg-ink);
  color: var(--pg-bg);
  border-color: transparent;
}
#btn-sound { position: relative; width: 42px; height: 40px; justify-content: center; padding: 10px 0; }
#btn-sound .bars { display: flex; gap: 2.5px; align-items: flex-end; height: 12px; }
#btn-sound .bars i {
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  animation: soundbar 0.9s ease-in-out infinite alternate;
}
#btn-sound .bars i:nth-child(1) { height: 6px; }
#btn-sound .bars i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
#btn-sound .bars i:nth-child(3) { height: 8px; animation-delay: 0.3s; }
#btn-sound.is-off .bars i { animation: none; height: 3px; }
@keyframes soundbar { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* ---------- shared glass chip ---------- */
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, #ffffff 30%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 55%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px -10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- neumorphic card ---------- */
.neo-card {
  background: linear-gradient(
    148deg,
    color-mix(in srgb, var(--pg-soft) 88%, #ffffff) 0%,
    var(--pg-soft) 52%,
    color-mix(in srgb, var(--pg-soft) 90%, var(--pg-ink)) 100%
  );
  border-radius: 24px;
  box-shadow:
    18px 18px 44px color-mix(in srgb, var(--pg-ink) 20%, transparent),
    -16px -16px 40px rgba(255, 255, 255, 0.95),
    inset 2px 2px 3px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px color-mix(in srgb, var(--pg-ink) 9%, transparent);
}

/* ---------- home ---------- */
#view-home {
  position: fixed;
  inset: 0;
  z-index: 10;
}

#deck {
  position: absolute;
  inset: 0;
  z-index: 20;
}
.deck-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vw, 760px);
  aspect-ratio: 10 / 6.4;
  cursor: pointer;
  will-change: transform;
  border-radius: var(--tile-radius);
}
.tile-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  container-type: size;
  background:
    radial-gradient(120% 100% at 14% 0%, color-mix(in srgb, var(--accent) 68%, transparent) 0%, transparent 58%),
    radial-gradient(130% 110% at 88% 100%, color-mix(in srgb, var(--accent) 82%, transparent) 0%, transparent 66%),
    linear-gradient(
      132deg,
      color-mix(in srgb, #ffffff 30%, transparent) 0%,
      color-mix(in srgb, var(--accent) 34%, transparent) 46%,
      color-mix(in srgb, var(--accent) 58%, transparent) 100%
    );
  border: 1px solid color-mix(in srgb, #ffffff 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -22px 48px -26px color-mix(in srgb, var(--accent) 65%, transparent),
    0 28px 70px -24px color-mix(in srgb, var(--accent) 55%, rgba(0, 0, 0, 0.35));
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
}
.tile-glass::after {
  /* moving sheen */
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  transform: translateX(-30%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.deck-tile.is-front:hover .tile-glass::after { transform: translateX(30%); }
.deck-tile.is-front .tile-glass {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.deck-tile.is-front:hover .tile-glass {
  transform: scale(1.012) rotate(-0.3deg);
}

/* only the front tile shows its text — the rest stay as clean glass */
.deck-tile .tile-glass > * {
  opacity: 0;
  transition: opacity 0.45s ease 0.12s;
}
.deck-tile.is-front .tile-glass > * { opacity: 1; }
.deck-tile.is-front .tile-open { opacity: 0; }

.tile-chip { position: absolute; left: 18px; top: 18px; color: var(--accent-ink); }
.tile-year {
  position: absolute;
  right: 20px;
  top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}
.tile-name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 12.5cqw, 92px);
  letter-spacing: 0.01em;
  color: #ffffff;
  user-select: none;
  text-shadow:
    0 2px 6px color-mix(in srgb, var(--accent-ink) 55%, transparent),
    0 6px 34px color-mix(in srgb, var(--accent-ink) 45%, transparent);
}
.tile-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.tile-open {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.deck-tile.is-front:hover .tile-open { opacity: 1; transform: translateY(0); }

/* home ui chrome */
.home-ui { position: absolute; z-index: 70; }
#deck-counter {
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.32em;
  font-weight: 600;
}
#home-hint {
  left: 22px;
  bottom: 24px;
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  max-width: 200px;
  line-height: 1.7;
}

/* ---------- transition veil ---------- */
#transition-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.switch-veil {
  position: fixed;
  inset: -2% 0;
  will-change: transform, border-radius;
}

/* ---------- project view ---------- */
#view-project {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  background: transparent;
  scrollbar-width: none;
}
#view-project::-webkit-scrollbar { display: none; }
#view-project.is-open { display: block; }

/* accent bleeding in from the edges */
.pv-bleed {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 64% at -10% 30%, color-mix(in srgb, var(--accent) 52%, transparent) 0%, transparent 72%),
    radial-gradient(60% 64% at 110% 70%, color-mix(in srgb, var(--accent) 48%, transparent) 0%, transparent 72%),
    radial-gradient(85% 44% at 50% -14%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 72%),
    radial-gradient(90% 40% at 50% 114%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 72%);
}
body:not([data-view='project']) .pv-bleed { display: none; }

.pv-scroll {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.pv-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}

/* hero */
.pv-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 40px;
  overflow: hidden;
}
.pv-hero-num { color: var(--accent-ink); margin-bottom: 3.4vh; }
.pv-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(54px, min(15vw, 22vh), 250px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--accent);
  max-width: 100%;
}
.pv-name .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.pv-name .word-inner { display: inline-block; will-change: transform; }
.pv-meta {
  margin-top: 3vh;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.8;
}
.pv-statement {
  margin-top: 2.2vh;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 2.2vw, 28px);
  color: color-mix(in srgb, var(--pg-ink) 82%, transparent);
  max-width: 34ch;
}
.pv-scrollcue { margin-top: 4vh; opacity: 0; color: var(--accent); }
.pv-scrollcue svg { width: 15px; height: 26px; }

/* sections — long-form pacing, perspective feeds the gravity effect */
.pv-sec {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30vh 24px;
  perspective: 900px;
}
.pv-bigtext {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.36;
  max-width: 26ch;
  will-change: transform;
}
.pv-how-text {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.85;
  max-width: 62ch;
  opacity: 0.88;
  will-change: transform;
}
.pv-points {
  margin-top: 8vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 34px);
  transform-style: preserve-3d;
}
.pv-point {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}
.pv-point-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}
.pv-point p { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; font-weight: 500; }

.pv-chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 720px; }
.pv-chip { color: var(--accent-ink); font-size: 12px; padding: 10px 18px; }
.pv-live {
  margin-top: 7vh;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 34px;
  text-decoration: none;
  color: var(--pg-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 27px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.pv-live span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pv-live:hover { transform: translateY(-4px); }

.pv-facts-sec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.6vw, 30px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 4vh 24px 18vh;
  perspective: 950px;
}
.pv-fact {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
}
.pv-fact span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.55;
}
.pv-fact strong { font-family: var(--font-display); font-size: clamp(17px, 1.9vw, 24px); font-weight: 700; }

/* outro flow */
.pv-outro {
  padding: 10vh 0 6vh;
  overflow: hidden;
}
.pv-outro-label { text-align: center; }

/* --- beam flow (card-beam outro) --- */
.beam { position: relative; }
.beam-stream {
  overflow: hidden;
  padding: 5vh 0;
  touch-action: pan-y;
}
.beam-line {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 60px);
  width: max-content;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.beam-line:active { cursor: grabbing; }
.beam-card {
  position: relative;
  width: clamp(250px, 30vw, 410px);
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: 16px;
}
.bc-normal,
.bc-ascii {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
}
.bc-normal {
  z-index: 2;
  clip-path: inset(0 0 0 var(--clip-right, 0%));
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.45);
}
.bc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.bc-name {
  position: absolute;
  left: 14px;
  bottom: 30px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 38px);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.bc-tag {
  position: absolute;
  left: 15px;
  bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.bc-ascii {
  z-index: 1;
  margin: 0;
  padding: 10px 12px;
  background: #0b0d12;
  color: color-mix(in srgb, var(--card-accent) 75%, #ffffff);
  font-family: 'Cascadia Mono', 'Courier New', monospace;
  font-size: 10px;
  line-height: 13px;
  white-space: pre;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
  animation: bc-glitch 0.12s infinite linear alternate-reverse;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.35) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.35) 100%);
}
@keyframes bc-glitch {
  0% { opacity: 1; }
  49% { opacity: 0.82; }
  50% { opacity: 1; }
  100% { opacity: 0.92; }
}
.beam-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  width: 4px;
  height: min(46vh, 380px);
  border-radius: 30px;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--accent) 80%, #ffffff),
    #ffffff,
    color-mix(in srgb, var(--accent) 80%, #ffffff),
    transparent
  );
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent) 80%, transparent),
    0 0 46px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: beam-pulse 2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 5;
}
@keyframes beam-pulse {
  from { opacity: 0.75; transform: translate(-50%, -58%) scaleY(1); }
  to { opacity: 1; transform: translate(-50%, -58%) scaleY(1.07); }
}
.flow-materials { overflow: hidden; padding: 2.5vh 0 3vh; }
.flow-mat-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  will-change: transform;
  opacity: 0.6;
}
.flow-mat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flow-dot { color: var(--accent); font-size: 10px; }

/* footer */
.pv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5vh 24px 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}
.pv-home-btn {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--pg-ink);
  color: var(--pg-bg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pv-home-btn:hover { transform: scale(1.05); }

/* ---------- contact view ---------- */
#view-contact {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
#view-contact::-webkit-scrollbar { display: none; }
#view-contact.is-open { display: block; }

/* ---------- STUDIO top wordmark ---------- */
#studio-top {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  font-size: clamp(26px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.34em;
  margin-left: 0.34em;
  color: #ffffff;
  text-shadow:
    0 2px 22px rgba(20, 20, 18, 0.5),
    0 1px 3px rgba(20, 20, 18, 0.55);
  pointer-events: none;
  user-select: none;
}

/* ---------- generated photos + warp ---------- */
.warp-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 45; /* above #view-project, below topbar/veil */
  pointer-events: none;
}
body:not([data-view='project']) .warp-canvas { display: none; }
.pv-photo {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: visible;
  will-change: transform;
}
.pv-photo .gen-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, rgba(0, 0, 0, 0.5));
}
.gen-photo.is-warped { opacity: 0; } /* WebGL draws it instead */
.pv-photo-wide {
  padding: 6vh 0 24vh;
  perspective: 900px;
}
.pv-photo-hero {
  width: min(92vw, 1560px);
  height: 66vh;
  margin: 0 auto 3vh;
}
.pv-photo-hero .gen-photo { height: 66vh; }
.pv-photo-squares {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 4vh 24px 26vh;
  perspective: 900px;
}
.pv-photo-sq {
  width: clamp(240px, 34vw, 520px);
  aspect-ratio: 1;
}
.pv-photo-sq .gen-photo { height: 100%; }
.pv-sq-b { margin-top: 9vh; }
.pv-photo-code {
  display: flex;
  flex-direction: column;
  gap: 26vh;
  max-width: 1300px;
  margin: 0 auto;
  padding: 6vh 24px 28vh;
  perspective: 900px;
}
.pv-photo-c {
  width: min(78vw, 900px);
  aspect-ratio: 14 / 9;
}
.pv-photo-c .gen-photo { height: 100%; }
.pv-code-a { align-self: flex-start; }
.pv-code-b { align-self: flex-end; }
.pv-photo-c .pv-caption { margin-top: 16px; text-align: left; }

/* ---------- floating stickers ---------- */
.sticker-field {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: visible;
}
/* project/contact overlay: floats over scrolling content, stays put */
.sticker-field.is-fixed {
  position: fixed;
  inset: 0;
  z-index: 46;
}
.float-sticker {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  will-change: transform;
  cursor: pointer;
}
.float-sticker canvas {
  display: block;
  filter: drop-shadow(0 6px 16px rgba(20, 20, 18, 0.25));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease;
  transform-origin: center;
}
.float-sticker.is-hot canvas {
  transform: scale(2);
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 40px color-mix(in srgb, var(--pg-accent) 75%, transparent))
    drop-shadow(0 10px 24px rgba(20, 20, 18, 0.3));
}

/* ---------- built-by sticker + modal ---------- */
#credit-sticker {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 260;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  padding: 18px 10px;
  background: #101010;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* rotate(180deg) flips corners: this pre-rotation value lands as square on
     the left (glued to the screen edge) + curved on the right (protruding),
     like a stitched clothing tag. */
  border-radius: 12px 0 0 12px;
  transform-origin: center;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.3);
  transition: padding 0.3s ease, background 0.3s ease;
}
#credit-sticker:hover { padding: 18px 16px; background: #000; }
#credit-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  background: rgba(8, 8, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#credit-modal.is-open { display: block; }
.credit-box {
  position: absolute;
  left: clamp(20px, 6vw, 92px);
  top: 50%;
  transform-origin: left center;
  width: min(84vw, 360px);
  aspect-ratio: 1;
  background: #0c0c0e;
  color: #ffffff;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.credit-kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
}
.credit-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.15;
}
.credit-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #0c0c0e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.credit-link:hover { transform: scale(1.05); }
.credit-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
}
.credit-close:hover { color: #fff; transform: rotate(90deg); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .deck-tile { width: 92vw; }
  #home-hint { display: none; }
  #topbar { padding: 12px 14px; }
  .pill { padding: 9px 14px; font-size: 11px; }
  #studio-top { top: 72px; letter-spacing: 0.24em; margin-left: 0.24em; }

  .pv-name { font-size: 17vw; }
  .pv-sec { padding: 18vh 20px; }
  .pv-points { grid-template-columns: 1fr; margin-top: 6vh; }
  .pv-facts-sec { grid-template-columns: 1fr; padding-bottom: 12vh; }
  .pv-bigtext { font-size: clamp(21px, 6vw, 30px); }
  .pv-footer { flex-direction: column; gap: 16px; }

  .pv-photo-hero { height: 44vh; }
  .pv-photo-hero .gen-photo { height: 44vh; }
  .pv-photo-wide { padding-bottom: 14vh; }
  .pv-photo-squares { flex-direction: column; align-items: center; padding-bottom: 14vh; gap: 7vh; }
  .pv-photo-sq { width: 82vw; }
  .pv-sq-b { margin-top: 0; }
  .pv-photo-code { gap: 12vh; padding-bottom: 16vh; }
  .pv-photo-c { width: 90vw; }

  .beam-card { width: 74vw; }
  #credit-sticker { font-size: 10px; padding: 14px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #btn-sound .bars i { animation: none; }
  .tile-glass::after { display: none; }
  #cursor { display: none; }
}
