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

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- Page ---- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px 80px;
  position: relative;
}

/* ---- Header ---- */

.header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.header-left { justify-self: start; }
.header .nav { grid-column: 3; justify-self: end; align-self: center; }
.cd-wrap { grid-column: 4; justify-self: end; }

.name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #919191;
}

.nav {
  display: flex;
  gap: 28px;
  padding-top: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #7E7E7E;
  opacity: 1;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #1a1a1a;
}

.nav-link {
  position: relative;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #999999;
  opacity: 0.9;
}
body.soundroom-on .nav-link.active::before {
  background: #ffffff;
}

/* ---- CD Player ---- */

/* Wrapper for player + tooltip */
.cd-wrap {
  position: relative;
  display: inline-block;
}

/* Minimal square player */
.cd-player {
  width: 84px;
  height: 84px;
  padding: 0;
  background: #fafaf8;
  border: 1px solid #e2e2e0;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.cd-player:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.cd-frame {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Spinning CD (silver, no rainbow) */
.cd-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%,
      #ffffff 0 40%,
      #f7f7f7 70%,
      #efefef 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.03),
    inset 0 0 18px rgba(0, 0, 0, 0.04);
  animation: spin 14s linear infinite;
  position: relative;
  will-change: transform;
}

/* Very faint track lines — barely visible but give motion cue */
.cd-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.012) 3px,
      rgba(0, 0, 0, 0.012) 4px
    );
}

/* Light sweep + subtle off-center highlight so spin is readable */
.cd-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    /* Off-center bright spot that rotates with the disc */
    radial-gradient(circle at 28% 30%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.2) 18%,
      transparent 38%),
    /* Subtle shadow on opposite side */
    radial-gradient(circle at 75% 72%,
      rgba(0, 0, 0, 0.06) 0%,
      transparent 40%),
    /* Gentle sweep */
    conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.25) 0deg,
      rgba(255, 255, 255, 0) 90deg,
      rgba(0, 0, 0, 0.04) 180deg,
      rgba(255, 255, 255, 0) 270deg,
      rgba(255, 255, 255, 0.25) 360deg
    );
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Small center hub */
.cd-player::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 2px #fff;
  z-index: 3;
  pointer-events: none;
}

.cd-player:hover .cd-disc {
  animation-duration: 4s;
}

.cd-player.playing .cd-disc {
  animation-duration: 1.8s;
}

/* Playing: disc rotates only, no pulse on the player frame */

/* Tooltip */
.cd-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #333;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cd-wrap:hover .cd-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Now Playing info */
.now-playing {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.now-playing.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.np-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a88a;
  box-shadow: 0 0 6px rgba(244, 168, 138, 0.6);
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.np-text {
  display: inline-block;
  font-size: 11px;
}

.np-marquee {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.np-title {
  font-weight: 600;
  color: #222;
  letter-spacing: 0.02em;
}

.np-artist {
  color: #666;
  font-weight: 400;
}

.np-artist::before {
  content: "— ";
  opacity: 0.6;
}

/* Hide tooltip when playing (now-playing takes over) */
.cd-wrap.playing:hover .cd-tooltip {
  opacity: 0;
}

/* Hidden YouTube iframe */
.yt-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- Intro ---- */

.intro {
  margin-top: -24px;
  margin-bottom: 64px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  color: #7E7E7E;
  font-weight: 400;
}

.intro-role {
  margin-top: 16px;
  font-style: italic;
  font-size: 16px;
  color: #A8A8A8;
  letter-spacing: 0.02em;
}

/* ---- Section Title ---- */

:root {
  --accent: #e8492a;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-count {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #A8A8A8;
  letter-spacing: 0.08em;
  align-self: flex-start;
  margin-left: 2px;
  margin-top: 4px;
  vertical-align: top;
}

/* Mode toggle */
.mode-toggle-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  margin-right: 0;
}
.mode-hi {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  width: 88px;
  height: auto;
  display: block;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.hi-ready:not(.soundroom-on) .mode-hi { opacity: 1; }
body.soundroom-on .mode-hi { opacity: 0; }
.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #e6e2db;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.mode-btn {
  position: relative;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #919191;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.4s ease, color 0.3s ease;
}

.mode-tip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: #8a8a8a;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mode-btn:hover .mode-tip,
.mode-sound-holder .mode-btn:hover ~ .mode-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
body.soundroom-on .mode-btn:hover .mode-tip,
body.soundroom-on .mode-sound-holder .mode-btn:hover ~ .mode-tip { opacity: 0; }
.mode-tip svg { display: none; }

body.soundroom-on .mode-tip { color: #d9c3a8; }

.mode-btn.active {
  background: #1a1a1a;
  color: #f4f1ea;
}

body.soundroom-on .mode-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 236, 224, 0.2);
}

body.soundroom-on .mode-btn { color: #d9c3a8; }
body.soundroom-on .mode-btn.active {
  background: #3a2a1e;
  color: #e8d9c2;
}

/* Nudge: shimmer sweep on Soundroom button when in focus mode */
.mode-sound-holder {
  position: relative;
  display: inline-flex;
}
.mode-sound-holder .mode-btn[data-mode="sound"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body:not(.soundroom-on) .mode-sound-holder .mode-btn[data-mode="sound"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(232, 167, 105, 0.35) 48%,
    rgba(255, 210, 150, 0.55) 50%,
    rgba(232, 167, 105, 0.35) 52%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 0;
  animation: shimmerSweep 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes shimmerSweep {
  0%, 55% { transform: translateX(-120%); }
  90%, 100% { transform: translateX(120%); }
}

/* Sound Room ambient glow */
.soundroom-glow {
  position: fixed;
  top: -15%;
  right: -10%;
  width: 780px;
  max-width: 70vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(40px);
}

.soundroom-glow::after {
  /* Extra soft halo */
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse at 70% 40%,
    rgba(255, 170, 90, 0.55) 0%,
    rgba(230, 130, 60, 0.28) 25%,
    rgba(180, 90, 40, 0.12) 45%,
    rgba(60, 30, 15, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.soundroom-glow img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  filter: hue-rotate(-10deg) saturate(1.1) brightness(1.05) blur(10px);
}

body.soundroom-on .soundroom-glow {
  opacity: 0.75;
}

/* Dim background */
body.soundroom-on {
  background: #432720;
}

/* Smooth color transitions in both directions */
.name, .nav-link, .intro, .intro p, .intro-role,
.section-title h2, .section-count, .project-title,
.pill, .np-title, .np-artist, .mode-btn {
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.soundroom-on .name,
body.soundroom-on .nav-link,
body.soundroom-on .intro,
body.soundroom-on .intro p,
body.soundroom-on .intro-role,
body.soundroom-on .section-title h2,
body.soundroom-on .section-count,
body.soundroom-on .project-title,
body.soundroom-on .pill,
body.soundroom-on .np-title,
body.soundroom-on .np-artist,
body.soundroom-on .mode-btn {
  color: #f5ece0;
}

body.soundroom-on .nav-link.active,
body.soundroom-on .name {
  color: #ffffff;
}

body.soundroom-on .intro-role {
  color: #d9c3a8;
}

/* Nudge title + keywords down without affecting shelf layout */
body.soundroom-on .project-meta {
  transform: translateY(18px);
  transition: transform 0.4s ease;
}

/* Soundroom: brighten Playground + About copy */
body.soundroom-on .pg-studio-title,
body.soundroom-on .pg-num,
body.soundroom-on .pg-head,
body.soundroom-on .pg-body,
body.soundroom-on .pg-year,
body.soundroom-on .pg-dims,
body.soundroom-on .pg-dims-label,
body.soundroom-on .pg-caption,
body.soundroom-on .ab-headline,
body.soundroom-on .ab-sub,
body.soundroom-on .ab-tag {
  color: #f5ece0;
  transition: color 0.8s ease;
}

body.soundroom-on .pg-year,
body.soundroom-on .pg-body,
body.soundroom-on .pg-dims,
body.soundroom-on .ab-sub {
  color: #d9c3a8;
}

body.soundroom-on .ab-tag {
  border-color: rgba(245, 236, 224, 0.5);
}

body.soundroom-on .ab-circle::before {
  border-color: #b75d2a;
}

body.soundroom-on .pill {
  border-color: rgba(217, 195, 168, 0.35);
}

body.soundroom-on .cd-player {
  background: #2a1c13;
  border-color: rgba(217, 195, 168, 0.2);
}

body.soundroom-on .page {
  position: relative;
  z-index: 1;
}

/* Wooden floating shelves under every row of 3 thumbnails */
.grid { position: relative; }

body.soundroom-on .project-card {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(232, 167, 105, 0.12);
}

body.soundroom-on .project-card img {
  filter: brightness(0.92) saturate(0.95);
}

/* Mood-lamp ellipse behind thumbnail on hover (soundroom only) */
body.soundroom-on .project { position: relative; }
body.soundroom-on .project::before {
  content: "";
  position: absolute;
  left: -80px;
  right: -80px;
  top: -90px;
  bottom: 20px;
  background: url("Ellipse-2.png") center / contain no-repeat;
  opacity: 0;
  transform: scale(0.88);
  filter: blur(2px);
  transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: opacity, transform;
}
body.soundroom-on .project:hover::before {
  opacity: 0.95;
  transform: scale(1.04);
  filter: blur(0);
}
body.soundroom-on .project-card { position: relative; z-index: 1; }

body.soundroom-on .project::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  bottom: 56px;
  height: 18px;
  border-radius: 1px;
  background-image: url("wood.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #5c3820;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 190, 130, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset;
  pointer-events: none;
  z-index: 0;
}

/* Shelf doesn't move with the hover lift */
body.soundroom-on .project:hover .project-card {
  transform: none;
}
body.soundroom-on .project:hover .project-card img {
  transform: rotateY(-14deg);
}

/* Pills — muted flat tone in soundroom */
body.soundroom-on .pill {
  color: #c9beae;
  background: rgba(80, 66, 54, 0.45);
  border-color: transparent;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

body.soundroom-on .project:hover .pill {
  color: #efe6d5;
  background: rgba(60, 46, 36, 0.7);
  border-color: transparent;
}

body.soundroom-on .project:hover .project-title {
  color: #ffffff;
}

body.soundroom-on .project {
  position: relative;
}

.section-title h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 32px;
  color: #7E7E7E;
  letter-spacing: -0.01em;
  display: inline-block;
  margin: 0;
  line-height: 1;
}

/* ---- Grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 56px;
  row-gap: 64px;
}

.project {
  display: block;
  position: relative;
}

.project-card {
  position: relative;
  aspect-ratio: 1600 / 1404;
  perspective: 1400px;
  transition: transform 0.4s ease;
}

/* Disc behind thumbnail removed */

/* Front cover (thumbnail) — hinged on the LEFT edge */
.project-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
  backface-visibility: hidden;
}

/* ---- Quick View button on hover ---- */

.quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  color: #333;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project:hover .quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.quick-view:hover {
  background: #fff;
}

/* Hover: cover opens slightly, like a jewel case cracking open */
.project:hover .project-card {
  transform: translateY(-2px);
}

.project:hover .project-card img {
  transform: rotateY(-22deg);
  box-shadow:
    -4px 6px 18px rgba(0, 0, 0, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.06);
}

.caption {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #555;
}

/* ---- Project Meta (title + pills) ---- */

.project-meta {
  margin-top: 16px;
}

.project-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: #8A8A8A;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #8A8A8A;
  border: 1px solid #BDBDBD;
  border-radius: 20px;
  padding: 4px 12px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project:hover .pill {
  background: #BDBDBD;
  color: #fff;
}

/* ---- Site footer ---- */
.site-footer {
  margin-top: 96px;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ECECEC;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #8A8A8A;
  letter-spacing: 0.02em;
  transition: color 1.2s ease, border-color 1.2s ease;
}
.site-footer-links { display: flex; align-items: center; gap: 12px; }
.site-footer-links a {
  color: #8A8A8A;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer-links a:hover { color: #222; }
.site-footer-sep { color: #C8C8C8; }
body.soundroom-on .site-footer {
  border-top-color: rgba(217, 195, 168, 0.18);
  color: #c9beae;
}
body.soundroom-on .site-footer-links a { color: #c9beae; }
body.soundroom-on .site-footer-links a:hover { color: #f5ece0; }
body.soundroom-on .site-footer-sep { color: rgba(217, 195, 168, 0.4); }

/* ---- Mobile block screen ---- */
.mobile-block { display: none; }
@media (max-width: 820px) {
  .mobile-block {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f5f5f4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 24px;
  }
  .mobile-block-hi {
    width: min(60vw, 280px);
    height: auto;
    display: block;
  }
  .mobile-block-hi-text {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 40px;
    color: #111;
    margin: 0;
    text-align: center;
  }
  .mobile-block-sub {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #888;
    margin: -16px 0 0 0;
    text-align: center;
  }
  .mobile-block-text {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #111;
    text-align: center;
    margin: 16px 0 0 0;
    line-height: 1.4;
  }
  .mobile-block-url {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.05em;
    margin: 0;
    text-align: center;
  }
  body > main.page { display: none !important; }
  body > .pd-overlay, body > .pr-overlay { display: none !important; }
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .header {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page {
    padding: 30px 20px 60px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Porto Rocha-style Project Detail ---- */
.pr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.pr-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}
.pr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.pr-shell {
  position: relative;
  width: min(1360px, 92vw);
  height: min(86vh, 860px);
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
}
.pr-nav-arrows { display: inline-flex; gap: 4px; }
.pr-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.pr-side-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.pr-side-prev { left: calc((100vw - min(1360px, 92vw)) / 2 - 60px); }
.pr-side-next { right: calc((100vw - min(1360px, 92vw)) / 2 - 60px); }

.pr-now-playing {
  padding: 16px;
  background: #f7f7f7;
  border-radius: 10px;
}
.pr-np-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 12px;
}
.pr-np-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a88a;
  box-shadow: 0 0 6px rgba(244, 168, 138, 0.6);
  animation: prPulse 1.6s ease-in-out infinite;
}
@keyframes prPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.pr-np-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.pr-np-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.pr-np-meta > div { display: flex; flex-direction: column; gap: 3px; }
.pr-np-meta .k { color: #7a7a7a; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pr-np-meta .v { color: #1a1a1a; font-weight: 500; font-size: 14px; }
.pr-credits-card {
  padding: 14px;
  background: #f7f7f7;
  border-radius: 8px;
}
.pr-credits-label {
  font-size: 13px;
  margin-bottom: 12px;
  color: #1a1a1a;
  font-weight: 500;
}
.pr-credits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-credits-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.35;
}
.pr-credits-row .k { color: #6a6a6a; }
.pr-credits-row .v { color: #1a1a1a; white-space: pre-line; text-align: left; }
.pr-sidebar {
  background: #ffffff;
  padding: 20px 16px;
  overflow-y: auto;
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pr-sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pr-toggle,
.pr-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 12px;
  padding: 0;
  transition: color 0.2s ease;
}
.pr-close:hover { color: #888; }
.pr-toggle-switch {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #d0cbc0;
  position: relative;
  transition: background 0.2s ease;
}
.pr-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s ease;
}
.pr-toggle:hover .pr-toggle-switch { background: #b5ad9f; }

/* Project navigation transitions */
.pr-main { transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.pr-sidebar { transition: opacity 0.28s ease; }
.pr-slide-out-left  { opacity: 0; transform: translateX(-24px); }
.pr-slide-out-right { opacity: 0; transform: translateX(24px); }
.pr-slide-in-right  { opacity: 0; transform: translateX(24px); }
.pr-slide-in-left   { opacity: 0; transform: translateX(-24px); }
.pr-fade-out { opacity: 0; }
.pr-fade-in  { opacity: 0; }
.pr-play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
}
.pr-sidebar-brand {
  text-align: center;
  padding: 12px 0;
}
.pr-brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 10px;
}
.pr-date {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
  font-weight: 400;
}
.pr-about {
  padding: 14px;
  background: #f7f7f7;
  border-radius: 8px;
}
.pr-about-label {
  font-size: 13px;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 500;
}
.pr-about-text {
  font-size: 13px;
  line-height: 1.5;
  color: #4a4a4a;
}
.pr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
  border: none;
  font-family: inherit;
}
.pr-list-item:hover,
.pr-list-item.active { background: #dcd4c3; }
.pr-list-thumb {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
}
.pr-list-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pr-list-title {
  font-size: 11px;
  font-weight: 500;
  color: #1a1a1a;
}
.pr-list-sub {
  font-size: 10.5px;
  line-height: 1.35;
  color: #5a5a5a;
}

.pr-main {
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pr-hero {
  background: #f7f7f7;
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 2612 / 1311;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.pr-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pr-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 10px 20px 28px;
}
.pr-sections.single { grid-template-columns: 1fr; }
.pr-section h4 {
  font-size: 12px;
  font-weight: 400;
  color: #7a7a7a;
  margin: 0 0 14px;
}
.pr-section p {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 14px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  white-space: pre-line;
}
.pr-section p:last-child { margin-bottom: 0; }
/* Wide editorial feature section: label + large heading on left, body on right */
.pr-section--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin: 24px -20px;
  padding: 40px 20px;
}
.pr-section--feature .pr-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-section--feature .pr-section-label {
  font-size: 13px;
  color: #3b5bff;
  letter-spacing: 0.01em;
}
.pr-section--feature h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.pr-section--feature p {
  font-size: 17px;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0;
  align-self: end;
  max-width: 62ch;
}
/* Feature with bullets on right */
.pr-section--feature-bullets,
.pr-section--feature-media {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  margin: 24px -20px;
  padding: 40px 20px;
}
.pr-section--feature-media { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); align-items: center; }
.pr-feature-left { display: flex; flex-direction: column; gap: 14px; }
.pr-feature-left .pr-section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9a9a9a;
  text-transform: uppercase;
}
.pr-feature-left h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  color: #2a3a8a;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.pr-feature-left p {
  font-size: 14px;
  line-height: 1.6;
  color: #3a3a3a;
  margin: 4px 0 0;
  max-width: 44ch;
}
.pr-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #2a3a8a;
  line-height: 1.45;
}
.pr-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 8px;
  border-left: 2px solid #2a3a8a;
  border-bottom: 2px solid #2a3a8a;
  transform: rotate(-45deg);
}
.pr-section--feature-bullets .pr-feature-right { align-self: center; }
.pr-section--feature-media .pr-feature-left { gap: 18px; }
.pr-section--feature-media .pr-bullets { margin-top: 24px; }
.pr-feature-media-block {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
}
.pr-feature-media-block video,
.pr-feature-media-block img {
  width: 100%;
  height: auto;
  display: block;
}
.pr-section-images {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-left: -20px;
  margin-right: -20px;
}
.pr-images-note { margin-left: -20px; margin-right: -20px; }
.pr-section-images--cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.pr-section-images--cols-3 .pr-image-block {
  aspect-ratio: 3 / 4;
}
.pr-section--testimonials {
  grid-column: 1 / -1;
  margin-left: -20px;
  margin-right: -20px;
}
.pr-section h4.pr-testi-heading {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 72px;
  font-weight: 400;
  color: #2a3a8a;
  margin: 0 0 32px 0;
  line-height: 1.05;
}
.pr-testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pr-testi {
  margin: 0;
  padding: 28px 30px 26px;
  background: #f2f2f0;
  border: 1px solid #e3e3e1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pr-testi-quote {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  line-height: 1.5;
  color: #1c1c1c;
  font-style: italic;
}
.pr-testi-quote::before { content: "\201C"; margin-right: 2px; }
.pr-testi-quote::after { content: "\201D"; margin-left: 2px; }
.pr-testi-cap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.pr-testi-cap-text { display: flex; flex-direction: column; gap: 2px; }
.pr-testi-more {
  font-size: 13px;
  color: #2a3a8a;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .2s ease;
}
.pr-testi-more:hover { opacity: 0.65; }
.pr-testi-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.pr-testi-role {
  font-size: 13px;
  color: #777;
}
.pr-image-block {
  background: #f7f7f7;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* Porto Rocha-style mosaic: 12-col grid, varied spans */
.pr-section-images--mosaic {
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.pr-section-images--mosaic .pr-image-block { aspect-ratio: auto; height: 420px; }
.pr-images-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #7a7a7a;
  font-style: italic;
  margin: 0 0 4px;
}
.pr-section-images--mosaic .span-8 { grid-column: span 8; }
.pr-section-images--mosaic .span-6 { grid-column: span 6; }
.pr-section-images--mosaic .span-4 { grid-column: span 4; }
.pr-image-block.pos-bottom img { object-position: center 70%; }
.pr-image-block.shift-left { transform: translateX(-32px); }
.pr-image-block.fit-contain { background: #f2ede4; }
.pr-image-block.fit-contain img { object-fit: contain; }
/* 3 images in a single row — columns sized so all heights match */
.pr-section-images--row-3 {
  grid-template-columns: 0.52fr 1.69fr 1.69fr;
  gap: 14px;
  align-items: stretch;
  padding-left: 36px;
  padding-right: 36px;
}
.pr-section-images--row-3 .pr-image-block {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  align-self: start;
}
.pr-section-images--row-3 .pr-image-block img,
.pr-section-images--row-3 .pr-image-block video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.pr-section-images--row-3 { align-items: start; }
/* Video at full content width, natural aspect — no letterbox */
.pr-section-images--video-fit {
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  margin-top: -28px;
}
.pr-section-images--video-fit .pr-image-block {
  background: transparent;
  aspect-ratio: auto;
  height: auto;
  border-radius: 12px;
  width: 100%;
}
.pr-section-images--video-fit .pr-image-block video,
.pr-section-images--video-fit .pr-image-block img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.pr-section-images--video-fit.wider {
  margin-left: -52px;
  margin-right: -52px;
}
/* Wide single image (cover) */
.pr-section-images--wide {
  grid-template-columns: 1fr;
  gap: 0;
}
.pr-section-images--wide .pr-image-block {
  aspect-ratio: 21 / 9;
}
/* Split: 2 stacked on left, 1 tall on right */
.pr-section-images--split-2-1 {
  grid-template-columns: 1fr 1.6fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  max-width: 78%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.pr-section-images--split-2-1 .pr-image-block { height: auto; aspect-ratio: auto; }
.pr-section-images--split-2-1 .col-left.top    { grid-column: 1; grid-row: 1; }
.pr-section-images--split-2-1 .col-left.bottom { grid-column: 1; grid-row: 2; }
.pr-section-images--split-2-1 .col-right       { grid-column: 2; grid-row: 1 / span 2; }
/* Wide but narrower than full — centered */
.pr-section-images--wide-narrow {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 78%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.pr-section-images--wide-narrow .pr-image-block {
  aspect-ratio: 2886 / 1108;
}
.pr-section-images--wide-narrow .pr-image-block img,
.pr-section-images--wide-narrow .pr-image-block video {
  object-fit: contain;
}
/* Full-width cinematic banner */
.pr-section-images--banner {
  grid-template-columns: 1fr;
  gap: 0;
}
.pr-section-images--banner .pr-image-block {
  aspect-ratio: 600 / 331;
}
.pr-section-images--banner .pr-image-block img {
  object-fit: contain;
  background: #000;
}
/* Stacked wide triptych: 3 long horizontals */
.pr-section-images--tall {
  grid-template-columns: 1fr;
  gap: 14px;
}
.pr-section-images--tall .pr-image-block {
  aspect-ratio: 16 / 6;
}
.pr-image-block img,
.pr-image-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pr-info {
  padding: 24px 20px 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.pr-info-main {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3a3a;
}
.pr-info-main h5 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
  color: #1a1a1a;
}
.pr-info-main p { margin: 0 0 10px; }
.pr-credits {
  font-size: 11px;
  line-height: 1.6;
  color: #3a3a3a;
}
.pr-credits h5 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.pr-credit-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.12);
}
.pr-credit-row:last-child { border-bottom: none; }
.pr-credit-label { color: #6a6a6a; }

/* ---- Quick View Modal (legacy, kept for backward compat) ---- */

.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  overflow-y: auto;
  padding: 48px 24px;
  transition: opacity 0.4s ease;
}
.qv-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.qv-sections {
  width: min(1060px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.qv-section {
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  color: #1a1a1a;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.qv-section h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 14px;
  color: #2a2a2a;
}
.qv-section p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: #3a3a3a;
}
.qv-section p:last-child { margin-bottom: 0; }

.qv-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qv-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 3px;
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
}

.qv-close:hover {
  transform: scale(1.05);
  background: #fff;
}

/* Arrows */
.qv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.qv-arrow:hover {
  background: #fff;
  color: #111;
  transform: translateY(-50%) scale(1.06);
}

.qv-arrow-prev { left: -96px; }
.qv-arrow-next { right: -96px; }

/* Stage wraps the case + meta so they animate together */
.qv-stage {
  position: relative;
  z-index: 1;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
}

.qv-overlay.open .qv-stage {
  transform: scale(1);
  opacity: 1;
}

/* Opened CD case — frosted acrylic jewel case */
.qv-case {
  display: flex;
  gap: 3px;
  padding: 10px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.45) 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Central hinge — thicker structural detail */
.qv-case::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 4px;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.03) 0%,
      rgba(0,0,0,0.08) 50%,
      rgba(0,0,0,0.03) 100%);
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

/* Diagonal highlight sheen */
.qv-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0) 28%,
    rgba(255,255,255,0) 62%,
    rgba(255,255,255,0.3) 100%);
  pointer-events: none;
  border-radius: 3px;
  z-index: 5;
  mix-blend-mode: soft-light;
}

/* Corner locking notches */
.qv-notch {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 6;
}

.qv-notch-tl { top: -2px; left: -2px; border-radius: 0 0 4px 0; }
.qv-notch-tr { top: -2px; right: -2px; border-radius: 0 0 0 4px; }
.qv-notch-bl { bottom: -2px; left: -2px; border-radius: 0 4px 0 0; }
.qv-notch-br { bottom: -2px; right: -2px; border-radius: 4px 0 0 0; }

.qv-panel {
  width: 520px;
  height: 520px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

/* Left panel: printed insert layout */
.qv-panel-left {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(252, 252, 250, 0.9) 100%);
  display: flex;
  align-items: flex-start;
  padding: 40px 36px;
}

.qv-insert {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.qv-tracklabel {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #999;
  letter-spacing: 0.02em;
}

.qv-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qv-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #919191;
}

.qv-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c94b4b;
  box-shadow: 0 0 0 0 rgba(201, 75, 75, 0.6);
  animation: qvPulse 1.6s ease-out infinite;
}

@keyframes qvPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 75, 75, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(201, 75, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 75, 75, 0); }
}

.qv-progress {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qv-progress-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.qv-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 16.66%;
  background: #919191;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.qv-progress-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #919191;
  letter-spacing: 0.05em;
}

.qv-progress-divider {
  opacity: 0.5;
}

.qv-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: #222;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.qv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qv-pills .pill {
  pointer-events: none;
}

.qv-note-text {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Printed metadata grid (like liner notes) */
.qv-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qv-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qv-meta-grid dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a8a8;
}

.qv-meta-grid dd {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 15px;
  color: #333;
  margin: 0;
}

/* Right panel: CD tray with disc */
.qv-panel-right {
  background:
    radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(230, 230, 230, 0.3) 70%,
      rgba(210, 210, 210, 0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Plastic tray — slight depth with molded details */
.qv-tray {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(200, 200, 200, 0.15) 40%,
      rgba(180, 180, 180, 0.25) 70%,
      rgba(170, 170, 170, 0.3) 100%);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 -1px 3px rgba(255, 255, 255, 0.4);
}

.qv-tray::before {
  /* Tray recess ring where disc sits */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.qv-tray::after {
  /* Center spindle */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(220, 220, 220, 0.9) 0%,
    rgba(180, 180, 180, 0.6) 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.qv-disc-wrap {
  position: relative;
  width: 80%;
  aspect-ratio: 1;
  z-index: 2;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
              opacity 0.5s ease 0.2s;
  filter: drop-shadow(2px 4px 12px rgba(0, 0, 0, 0.08));
}

.qv-overlay.open .qv-disc-wrap {
  transform: scale(1);
  opacity: 1;
}

/* Album cover printed on disc label — much larger now */
.qv-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 0 10px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.qv-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

/* Center hub hole on the label */
.qv-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(250, 250, 250, 0.98) 0%,
    rgba(230, 230, 230, 0.98) 60%,
    rgba(200, 200, 200, 0.95) 100%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 4;
}

.qv-hub::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

.qv-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    /* Silver reflective gradient */
    radial-gradient(circle at 35% 30%,
      #ffffff 0%,
      #f6f6f6 25%,
      #e4e4e4 60%,
      #d8d8d8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 0 28px rgba(0, 0, 0, 0.04);
  position: relative;
  /* Very slow, calm rotation */
  animation: spin 60s linear infinite;
}

.qv-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 4px,
    rgba(0, 0, 0, 0.015) 4px,
    rgba(0, 0, 0, 0.015) 5px
  );
}

.qv-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    /* Off-center soft highlight */
    radial-gradient(ellipse at 25% 28%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 50%),
    /* Subtle opposite shadow */
    radial-gradient(circle at 78% 75%,
      rgba(0, 0, 0, 0.05) 0%,
      transparent 40%);
}


@media (max-width: 900px) {
  .qv-panel {
    width: 260px;
    height: 260px;
  }
  .qv-note-text {
    font-size: 12px;
  }
  .qv-arrow-prev { left: -4px; }
  .qv-arrow-next { right: -4px; }
}

/* ---- Project Detail (editorial) ---- */
.pd-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 200;
  overflow-y: auto;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pd-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pd-sheet {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 56px 64px 48px;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  transform: translateY(16px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

.pd-overlay.open .pd-sheet {
  transform: translateY(0);
}

.pd-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: start;
  gap: 48px;
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 80px;
}

.pd-brand {
  font-weight: 500;
}

.pd-issue {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #999;
}

.pd-issue span:first-child { color: #1a1a1a; }

.pd-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1a1a1a;
  justify-self: start;
}

.pd-nav a {
  transition: color 0.2s;
}

.pd-nav a:hover {
  color: #999;
}

.pd-close {
  font-size: 13px;
  color: #1a1a1a;
  justify-self: end;
  transition: color 0.2s;
}

.pd-close:hover {
  color: #999;
}

.pd-title-block {
  margin-bottom: 32px;
}

.pd-index {
  font-size: 28px;
  color: #c4c4c4;
  font-weight: 300;
  margin-bottom: 12px;
}

.pd-title-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: end;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.pd-title {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #1a1a1a;
}

.pd-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.pd-meta-label {
  color: #999;
}

.pd-meta-value {
  color: #1a1a1a;
}

.pd-cta {
  font-size: 13px;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
  align-self: end;
}

.pd-hero {
  margin-bottom: 32px;
  overflow: hidden;
}

.pd-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pd-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.65;
}

.pd-footer-left {
  color: #999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-footer-right p + p {
  margin-top: 16px;
}

@media (max-width: 820px) {
  .pd-overlay { padding: 16px; }
  .pd-sheet { padding: 32px 24px; }
  .pd-header {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .pd-title-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pd-title { font-size: 32px; }
  .pd-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- Views (Work / Playground) ---- */
.view[hidden] { display: none; }

/* ---- Playground catalog (editorial) ---- */
.pg-studio-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 56px;
}

.pg-studio-title::first-letter { font-weight: 700; }

.pg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: start;
}

.pg-col-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

.pg-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pg-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pg-year {
  font-weight: 400;
  color: #666;
}

.pg-body {
  font-size: 10.5px;
  line-height: 1.55;
  color: #444;
  max-width: 240px;
}

.pg-dims {
  margin-top: auto;
  padding-top: 120px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #444;
}

.pg-dims-label {
  color: #1a1a1a;
  margin-bottom: 2px;
}

.pg-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-caption {
  font-size: 11px;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.pg-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ddd;
}

.pg-img-a { background: linear-gradient(135deg, #c9c4bd, #8b8680); }
.pg-img-b { background: linear-gradient(135deg, #7a2a1d, #4a1810); }
.pg-img-c { background: linear-gradient(135deg, #2a2a2a, #111); }
.pg-img-d { background: linear-gradient(135deg, #e89a3a, #a85d1a); }
.pg-img-e { background: linear-gradient(135deg, #6b2418, #3a120a); }
.pg-img-f { background: linear-gradient(135deg, #1a1a1a, #000); }
.pg-img-g { background: linear-gradient(135deg, #c29a6a, #8a6440); }
.pg-img-h { background: linear-gradient(135deg, #7a2a1d, #4a1810); }
.pg-img-i { background: linear-gradient(135deg, #c8c070, #8a8048); }
.pg-img-j { background: linear-gradient(135deg, #3a3a3a, #1a1a1a); }
.pg-img-k { background: linear-gradient(135deg, #d8d4ce, #a8a49e); }
.pg-img-l { background: linear-gradient(135deg, #e8e4de, #c0bcb6); }

.pg-meta {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.pg-cat {
  font-size: 11px;
  color: #999;
  margin-bottom: 14px;
}

.pg-desc {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
}

@media (max-width: 720px) {
  .pg-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .pg-dims { padding-top: 8px; }
}

/* ---- About (photobooth + headline) ---- */
.ab-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 20px 20px;
  min-height: 520px;
}

/* Minimal photobooth illustration */
.ab-booth {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  position: relative;
}

/* Brushed-chrome plate above the booth */
.ab-booth-plate {
  position: relative;
  margin: 0 auto 20px;
  width: 88%;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #f4f5f6 0%, #d6d8da 45%, #a8abae 100%);
  border: 1px solid #7a7d80;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 1px 2px rgba(255,255,255,0.4) inset,
    0 10px 24px rgba(0,0,0,0.16);
  font-family: "Instrument Serif", Georgia, serif;
  color: #2a2a2a;
}
.ab-booth-plate::before,
.ab-booth-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f3f4f5, #6c6e71 70%, #3a3c3f);
  box-shadow: 0 1px 1px rgba(0,0,0,0.4) inset, 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(-50%);
}
.ab-booth-plate::before { left: 8px; }
.ab-booth-plate::after  { right: 8px; }

.ab-booth-plate-text {
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #222;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.ab-booth-plate-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3a3c3f;
  opacity: 0.75;
}
.ab-booth-btn {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #5a5d61;
  padding: 2px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 35%, #f3f4f5 0%, #c2c4c7 45%, #6e7074 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 -1px 0 rgba(0,0,0,0.35) inset,
    0 3px 6px rgba(0,0,0,0.28);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.ab-booth-btn-cap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #fff3b0 0%, #f7c948 55%, #a8740a 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 0 8px rgba(247,201,72,0.55);
}
.ab-booth-btn:hover .ab-booth-btn-cap {
  filter: brightness(1.08);
}
.ab-booth-btn:active,
.ab-booth-btn.pressed {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    0 1px 2px rgba(0,0,0,0.35);
}

/* Patterned booth body */
.ab-booth-body {
  position: relative;
  border-radius: 10px;
  padding: 38px 28px 44px;
  background: url("pattern.jpg") center / cover no-repeat;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.35) inset,
    0 30px 60px rgba(0,0,0,0.35);
}
.ab-booth-body::before,
.ab-booth-body::after {
  /* corner rivets */
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f3f4f5, #6c6e71 70%, #2f3133);
  box-shadow: 0 1px 1px rgba(0,0,0,0.5) inset;
  pointer-events: none;
}
.ab-booth-body::before { top: 8px; left: 8px; }
.ab-booth-body::after  { top: 8px; right: 8px; }

/* Metallic rectangular slot — chrome lip framing the hole */
.ab-booth-window {
  position: relative;
  width: 50%;
  margin: 0 auto;
  aspect-ratio: 1 / 2.6;
  border-radius: 4px;
  padding: 5px;
  background:
    linear-gradient(180deg, #f0f1f3 0%, #b9bbbe 18%, #6e7073 50%, #b9bbbe 82%, #f0f1f3 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 8px 16px rgba(0,0,0,0.45);
}
.ab-booth-window::before,
.ab-booth-window::after {
  /* tiny screws on the metal plate */
  content: "";
  position: absolute;
  left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f3f4f5, #6c6e71 70%, #2f3133);
  box-shadow: 0 1px 1px rgba(0,0,0,0.5) inset;
  transform: translateX(-50%);
}
.ab-booth-window::before { top: 3px; }
.ab-booth-window::after  { bottom: 3px; }

.ab-booth-hole {
  position: absolute;
  inset: 5px;
  background:
    linear-gradient(180deg, #000 0%, #0a0a0a 40%, #050505 100%);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.85) inset,
    0 -1px 4px rgba(0,0,0,0.75) inset,
    0 0 0 1px rgba(0,0,0,0.9) inset;
}

.ab-booth-strip {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: transparent;
  box-shadow: none;
  transform: translate(-2px, -104%) rotate(-3deg);
  animation: boothEmerge 3.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
  overflow: hidden;
  transform-origin: top center;
}
.ab-booth-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

@keyframes boothEmerge {
  0%   { transform: translate(-2px, -104%) rotate(-3deg); }
  100% { transform: translate(2px, 0) rotate(2.5deg); }
}

/* Text side */
.ab-text {
  padding-right: 20px;
}

/* Smooth entrance when About view opens */
.view-about:not([hidden]) .ab-booth {
  animation: abRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.view-about:not([hidden]) .ab-headline {
  animation: abRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.view-about:not([hidden]) .ab-sub {
  animation: abRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.view-about:not([hidden]) .ab-tag {
  animation: abRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

@keyframes abRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ab-headline {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.ab-circle {
  position: relative;
  display: inline-block;
  padding: 0 4px;
}

.ab-circle::before {
  content: "";
  position: absolute;
  inset: -4px -10px -2px -10px;
  border: 2px solid #2b3a8f;
  border-radius: 50%;
  transform: rotate(-3deg);
  pointer-events: none;
}

.ab-sub {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  max-width: 460px;
  margin-bottom: 28px;
}
.ab-link {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #bcbcbc;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ab-link:hover {
  color: #8a4a1a;
  border-bottom-color: #8a4a1a;
}
body.soundroom-on .ab-link {
  color: #f5ece0;
  border-bottom-color: rgba(245, 236, 224, 0.45);
}
body.soundroom-on .ab-link:hover {
  color: #ffd9a8;
  border-bottom-color: #ffd9a8;
}

.ab-tag {
  display: inline-block;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: #1a1a1a;
}

.ab-tag strong {
  font-weight: 600;
}

@media (max-width: 860px) {
  .ab-stage {
    grid-template-columns: 1fr;
    padding: 20px 40px;
  }
  .ab-headline { font-size: 30px; }
}

/* Playground — soft panel + translucent envelope */
.pg-wall-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 0 160px;
}
.pg-panel {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  padding: 60px 60px 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #ece7de 0%, #d8d0c2 55%, #bdb4a3 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 -1px 0 rgba(0,0,0,0.18) inset,
    0 30px 60px rgba(0,0,0,0.18);
}
.pg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(25deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.pg-panel-title {
  position: relative;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: #2a2620;
  text-align: center;
}
.pg-panel-ex { color: #7a6a52; }

/* Translucent envelope */
.pg-envelope {
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  width: min(640px, 72%);
  aspect-ratio: 16 / 11;
}
.pg-envelope-back,
.pg-envelope-front {
  position: absolute;
  left: 0; right: 0;
  border-radius: 4px;
}
.pg-envelope-back {
  top: 0; bottom: 14%;
  background: linear-gradient(180deg, rgba(250,247,240,0.55), rgba(230,225,215,0.45));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 6px 14px rgba(0,0,0,0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 68% 100%, 50% 74%, 32% 100%, 0 100%);
}
.pg-envelope-front {
  top: 38%; bottom: 0;
  background: linear-gradient(180deg, rgba(245,242,236,0.72), rgba(220,215,205,0.78));
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 24px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.pg-envelope-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Cards inside envelope */
.pg-card {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 56%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.08) inset,
    0 10px 22px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  z-index: 2;
  user-select: none;
}
.pg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.pg-card-tab {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 3px 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pg-card:hover .pg-card-tab { opacity: 1; }

/* Fanned resting positions */
.pg-card-1 { transform: translateX(-78%) rotate(-7deg); top: 10%; }
.pg-card-2 { transform: translateX(-50%) rotate(1deg);  top: 4%; z-index: 2; }
.pg-card-3 { transform: translateX(-22%) rotate(7deg);  top: 10%; }

/* Pulled-out state */
.pg-card.pulled { z-index: 5; }
.pg-card-1.pulled { transform: translateX(-110%) rotate(-12deg); top: -70%; }
.pg-card-2.pulled { transform: translateX(-50%)  rotate(-2deg);  top: -75%; }
.pg-card-3.pulled { transform: translateX(10%)   rotate(10deg);  top: -70%; }

/* ==== About — Listening Room chat ==== */
.ab-room {
  position: relative;
  width: min(1100px, 92vw);
  margin: 40px auto 80px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: url("paper.jpg") center / cover no-repeat, #efe8da;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 30px 60px rgba(0,0,0,0.18);
}
.ab-room::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.ab-chat {
  position: absolute;
  right: 6%;
  top: 8%;
  bottom: 8%;
  width: min(380px, 42%);
  display: flex;
  flex-direction: column;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 40px rgba(0,0,0,0.22);
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1e1a16;
}

.ab-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.45);
}
.ab-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,0.15);
}
.ab-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-chat-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1;
}
.ab-chat-tag {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a6f62;
  margin-left: 6px;
}
.ab-chat-status {
  font-size: 11px;
  color: #6e6458;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.ab-chat-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5ac26b;
  box-shadow: 0 0 6px rgba(90, 194, 107, 0.6);
}

.ab-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-msg { display: flex; }
.ab-msg-in { justify-content: flex-start; }
.ab-msg-out { justify-content: flex-end; }
.ab-bubble {
  max-width: 80%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 14px;
  animation: abBubbleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ab-msg-in .ab-bubble {
  background: #ece6db;
  color: #1e1a16;
  border-top-left-radius: 4px;
}
.ab-msg-out .ab-bubble {
  background: #2a1c13;
  color: #f5ece0;
  border-top-right-radius: 4px;
}
@keyframes abBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ab-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
}
.ab-quick {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: #2a1c13;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.ab-quick:hover {
  background: #2a1c13;
  color: #f5ece0;
  transform: translateY(-1px);
}

.ab-chat-input {
  display: flex;
  gap: 6px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ab-chat-input input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #1e1a16;
  outline: none;
}
.ab-chat-input input:focus { border-color: #2a1c13; }
.ab-chat-input button {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #2a1c13;
  color: #f5ece0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.ab-chat-input button:hover { opacity: 0.85; }

/* Smooth entrance */
.view-playground:not([hidden]) .ab-room {
  animation: abRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.view-playground:not([hidden]) .ab-chat {
  animation: abRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Photos that land on the tray when asked about music */
.pg-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.pg-photo {
  position: absolute;
  width: 18%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.28));
  opacity: 0;
  --dx: 0px;
  --dy: 0px;
  transform: translate(var(--dx), calc(var(--dy) - 18px)) rotate(var(--rot, 0deg)) scale(0.9);
  animation: photoDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.pg-photo.dragging { cursor: grabbing; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.32)); z-index: 10; }
}
.pg-photo.p1 { left: 1%;  top: 8%;   --rot: -9deg;  animation-delay: 0.05s; }
.pg-photo.p2 { left: 2%;  bottom: 8%; --rot: 5deg;  animation-delay: 0.25s; }
.pg-photo.p3 { right: 1%; bottom: 6%; --rot: -4deg; animation-delay: 0.45s; }
@keyframes photoDrop {
  0%   { opacity: 0; transform: translate(var(--dx), calc(var(--dy) - 24px)) rotate(var(--rot)) scale(0.9); }
  100% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
}

/* ==== Lounge — Paper order ==== */
.pg-paper-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  aspect-ratio: 1.35 / 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.18));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pg-paper-wrap.is-response {
  width: 76%;
}
.view-playground:not([hidden]) .pg-paper-wrap {
  animation: paperSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes paperSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) rotate(-6deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
}
.pg-paper-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.pg-paper-stage {
  position: absolute;
  inset: 12% 14%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #2a1c0f;
  overflow: hidden;
}
.pg-step-inner {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.45s ease;
}
.pg-step-inner.fading {
  opacity: 0;
}
.pg-prompt {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.2;
  color: #2a1c0f;
  white-space: pre-line;
}
.pg-menu-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  color: #1a1208;
  text-align: center;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a1c0f;
  align-self: stretch;
  margin-bottom: 4px;
}
.pg-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.pg-option {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(14px, 1.6vw, 20px);
  background: transparent;
  border: none;
  color: #3a2a1c;
  cursor: pointer;
  padding: 1px 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.pg-option::before {
  content: "— ";
  color: #7a6a58;
}
.pg-option:hover {
  color: #8a4a1a;
  transform: translateX(3px);
}
.pg-written {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(16px, 1.9vw, 23px);
  color: #5a3b1a;
  line-height: 1.4;
  white-space: pre-line;
}
.pg-testimonial {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pg-t-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  text-align: center;
  padding-right: 20px;
  margin-right: -24px;
}
.pg-t-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(13px, 1.2vw, 15px);
  color: #7a6a58;
  line-height: 1.2;
}
.pg-t-role {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 19px);
  color: #2a1c0f;
  line-height: 1.15;
  margin-bottom: 10px;
}
.pg-t-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  color: #5a3b1a;
  line-height: 1.35;
  text-align: left;
}
.pg-t-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: "Instrument Serif", Georgia, serif;
  color: #5a3b1a;
}
.pg-t-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #3a2a1c;
  padding: 2px 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.pg-t-arrow:hover { color: #8a4a1a; transform: scale(1.15); }
.pg-t-idx {
  font-size: 14px;
  color: #7a6a58;
  min-width: 32px;
  text-align: center;
}
.pg-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(80,60,40,0.3);
  flex-shrink: 0;
}
.pg-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a6a58;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.pg-nav-btn:hover { color: #2a1c0f; }
.pg-nav-btn:disabled { opacity: 0.35; cursor: default; }
.pg-nav-btn svg { flex-shrink: 0; }

/* ==== Playground — Tray order slip ==== */
.pg-tray-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, 92%);
  aspect-ratio: 1594 / 1158;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,0.32));
}
.pg-tray,
.pg-paper-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.pg-paper {
  position: absolute;
  /* Paper location on the tray canvas — matches traypaper.png */
  left: 18%;
  right: 18%;
  top: 10%;
  bottom: 10%;
  transform: rotate(-1.2deg);
  transform-origin: center;
}
.pg-paper-content {
  position: absolute;
  inset: 10% 12% 10%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #2a2a2a;
  overflow: hidden;
}
.pg-paper-header {
  text-align: center;
  border-bottom: 1px dashed rgba(50,40,30,0.35);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.pg-paper-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1;
}
.pg-paper-sub {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6a5d48;
  margin-top: 2px;
}
.pg-paper-header {
  padding-bottom: 4px !important;
  margin-bottom: 2px !important;
}
.pg-paper-prompt {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(10px, 1.1vw, 13px);
  color: #3a2a1c;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}
.pg-paper-form {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pg-paper-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px solid rgba(50,40,30,0.3);
  padding: 1px 0;
}
.pg-paper-label {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a5d48;
  width: 32px;
  flex-shrink: 0;
}
.pg-paper-row input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(10px, 1.1vw, 13px);
  color: #2a1c0f;
  padding: 1px 0;
  line-height: 1.1;
}
.pg-paper-row input::placeholder {
  color: rgba(80, 60, 40, 0.35);
  font-style: italic;
}
.pg-paper-submit {
  align-self: center;
  margin-top: 3px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 10px;
  padding: 3px 12px;
  border: 1px solid #2a1c0f;
  border-radius: 999px;
  background: transparent;
  color: #2a1c0f;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.pg-paper-submit:hover {
  background: #2a1c0f;
  color: #f5ece0;
}
.pg-paper-reply {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(11px, 1.2vw, 14px);
  color: #5a3b1a;
  text-align: center;
  line-height: 1.2;
  margin-top: 3px;
}
.pg-paper.submitted .pg-paper-form { display: none; }
.pg-paper.submitted .pg-paper-prompt { display: none; }

/* Header logo (swaps with mode) */
.name .logo {
  height: 110px;
  width: auto;
  display: block;
  transition: opacity 0.5s ease;
}
.name .logo-w { display: none; }
body.soundroom-on .name .logo-b { display: none; }
body.soundroom-on .name .logo-w { display: block; }

/* Intro video plays in the logo slot, then hands off to the still logo */
.name {
  position: relative;
  height: 130px;
  width: 220px;
}
.name .logo-intro {
  position: absolute;
  top: 0;
  left: 0;
  height: 128px;
  width: auto;
  object-fit: contain;
  background: transparent;
  transform: translateY(-10px);
  transition: opacity 0.4s ease;
}
body:not(.intro-done) .name .logo-b,
body:not(.intro-done) .name .logo-w {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
body.intro-done .name .logo-intro {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
body.intro-done .name .logo-b,
body.intro-done .name .logo-w {
  opacity: 1;
  transform: translateY(10px);
  transition: opacity 0.5s ease;
}

/* Intro overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}
.intro-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.intro-video {
  height: 260px;
  width: auto;
  max-width: 80vw;
  object-fit: contain;
  background: transparent;
}
.intro-skip {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #2a2a2a;
  padding: 8px 18px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.intro-skip:hover { background: #000; color: #fff; }
body.intro-playing { overflow: hidden; }
