/* Fonts */
@font-face {
  font-family: "FreeSerif";
  src: url("../fonts/FreeSerif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base */
:root {
  --yellow: #ffff33;
  --blue: #0033ff;
  --black: #000000;
  --white: #ffffff;
  --header-height: 75px;
  --hero-image-ratio: 0.72;
  --hero-caption-height: 34px;
  --page-edge: clamp(22px, 4.2vw, 72px);
  --section-gap: clamp(60px, 8vw, 112px);
  --ease-quint: cubic-bezier(0.83, 0, 0.17, 1);
  --floating-bezzy-scale: 2.2;
  --floating-bezzy-peek: 24%;
  --floating-bezzy-follow: 0.045;
  --floating-bezzy-bob-amplitude: 2px;
  --floating-bezzy-bob-speed: 0.0022;
  --floating-bezzy-intro-delay-ms: 500;
  --floating-bezzy-fade-ms: 420ms;
  --floating-bezzy-top-hide: 160;
  --floating-bezzy-white-glow: 0 0 28px rgba(255, 255, 255, 0.72);
  --floating-bezzy-soft-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);

  /* Typography Hierarchy design tokens */
  --font-size-h1: clamp(40px, 4.2vw, 52px);
  --font-size-h2: clamp(40px, 4.2vw, 52px);
  --font-size-h3: clamp(22px, 2.1vw, 32px);
  --font-size-narrative: clamp(28px, 3.15vw, 46px);
  --font-size-intro: clamp(22px, 1.8vw, 29px);
  --font-size-caption: 15px;
  --font-size-detail: clamp(19px, 1.45vw, 23px);
  --line-height-detail: 1.35;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
  overflow-x: clip;
}

html.is-custom-scrolling {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "FreeSerif", "Times New Roman", serif;
  font-size: 18px;
  font-synthesis-weight: none;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

.floating-bezzy {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 45;
  width: calc(clamp(116px, 11vw, 190px) * var(--floating-bezzy-scale));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  will-change: transform, opacity;
  transition:
    opacity var(--floating-bezzy-fade-ms) ease,
    visibility 0s linear var(--floating-bezzy-fade-ms);
}

.floating-bezzy.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity var(--floating-bezzy-fade-ms) ease,
    visibility 0s;
}

.floating-bezzy.is-dragging {
  cursor: grabbing !important;
}

.floating-bezzy img {
  width: 100%;
  max-width: none;
  filter: drop-shadow(var(--floating-bezzy-white-glow)) drop-shadow(var(--floating-bezzy-soft-shadow));
}

.floating-bezzy:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
  font-weight: 400;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 2.4vw, 34px);
  background: var(--yellow);
}

.site-header::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  height: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    var(--yellow) 0%,
    rgba(255, 255, 51, 0.5) 25%,
    rgba(255, 255, 51, 0.1) 60%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: 168px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(50px, 7.65vw, 126px);
  padding-right: clamp(0px, 1vw, 12px);
  font-size: 18px;
}

.desktop-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle,
.menu-close {
  display: none;
}

main {
  padding-top: var(--header-height);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 100svh;
  overflow-y: auto;
  background: var(--yellow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    visibility 0s linear 140ms;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 140ms ease,
    visibility 0s linear 0s;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--header-height);
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 16px;
}

.menu-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
}

.mobile-nav a {
  padding: 24px 0;
  font-size: clamp(26px, 7.5vw, 39px);
  line-height: 0.98;
  text-decoration: none;
}

.mobile-nav a + a {
  border-top: 1px solid var(--black);
}

/* Figures */
.edge-figure img,
.community-figure img {
  width: 100%;
  object-fit: cover;
}

.container-hero {
  --container-hero-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  height: var(--container-hero-height);
  min-height: 0;
  position: relative;
}

.hero-composition {
  flex: 0 0 calc(var(--container-hero-height) * var(--hero-image-ratio));
  min-height: 0;
  overflow: visible;
}

.hero-composition .edge-figure {
  height: 100%;
  min-height: 0;
}

.hero-composition .edge-figure picture {
  display: block;
  height: 100%;
  min-height: 0;
}

.hero-composition .edge-figure img {
  height: 100%;
}

figcaption {
  display: flex;
  align-items: center;
  height: var(--hero-caption-height);
  padding-top: 0;
  color: var(--black);
  font-size: var(--font-size-caption);
  line-height: 1.1;
}

.edge-figure figcaption {
  position: absolute;
  top: calc(var(--container-hero-height) * var(--hero-image-ratio));
  right: 0;
  left: 0;
  padding-left: clamp(22px, 2.2vw, 35px);
  background: var(--white);
  z-index: 10;
  overflow: visible;
}

/* Main Headline */
.main-headline {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 var(--page-edge);
  text-align: center;
}

.hero-headline {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: var(--hero-caption-height);
}

.main-headline h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  transform: translate(-50%, -50%);
  max-width: 760px;
  font-size: var(--font-size-h1);
  line-height: 1.04;
  text-wrap: pretty;
  z-index: 12;
}

/* Buffer Section */
.section-buffer {
  height: calc(var(--section-gap) * 0.5);
  background: var(--white);
}

/* Mission */
.mission-section {
  scroll-margin-top: 0;
}

.sticker-board {
  position: relative;
  width: 100%;
  max-width: 100vw;
  aspect-ratio: 21 / 9;
  margin: 0 auto;
  background: transparent;
  border: none;
  overflow: hidden;
  touch-action: none; /* Disables browser scrolling/gestures on touch to allow direct dragging */
  box-shadow: none;
}

.sticker-board-grid {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, #000 1px, transparent 1px),
    linear-gradient(to bottom, #000 1px, transparent 1px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.sticker-item {
  position: absolute;
  width: clamp(200px, 26vw, 320px);
  aspect-ratio: 1;
  top: var(--top, 20%);
  left: var(--left, 20%);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10;
  /* Animate in "throw" state */
  opacity: 0;
  transform: translate3d(var(--throw-x, 0), var(--throw-y, 0), 0) rotate(var(--throw-rot, 0deg));
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease, opacity 0.5s ease-out;
}

.sticker-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
  -webkit-user-drag: none;
}

.sticker-item.is-dragging {
  cursor: grabbing;
  z-index: 999 !important;
  transform: scale(1.06) rotate(var(--drag-rot, var(--rotation, 0deg))) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
  transition: none !important;
}

.sticker-item.is-focused {
  touch-action: none;
}

/* Hover pop-out on desktop */
@media (hover: hover) {
  .sticker-item:not(.is-dragging):hover {
    transform: scale(1.05) rotate(calc(var(--rotation, 0deg) + 3deg)) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 15;
  }
}

/* Tactile focus pop-out on mobile */
.sticker-item.is-focused:not(.is-dragging) {
  transform: scale(1.05) rotate(calc(var(--rotation, 0deg) - 4deg)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 15;
}

.sticker-item.was-dragged {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease !important;
}

.sticker-board.is-revealed .sticker-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--rotation, 0deg));
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out;
}

.sticker-board.is-revealed-fade-only .sticker-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--rotation, 0deg));
  transition: opacity 0.8s ease-out;
}

.cta-copy {
  max-width: 860px;
  margin: clamp(28px, 3vw, 42px) auto clamp(86px, 8.5vw, 126px);
  padding: 0 var(--page-edge);
  text-align: center;
}

.cta-copy h2 {
  margin-bottom: clamp(38px, 3.8vw, 56px);
  font-size: var(--font-size-h2);
  line-height: 1.02;
  text-wrap: pretty;
}

.cta-copy h2 > span {
  display: block;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.cta-copy p {
  font-size: var(--font-size-narrative);
  line-height: 1.3;
}

.reveal-word {
  display: inline;
  color: var(--black);
  opacity: clamp(0.06, calc((var(--scroll-progress, 0) - var(--word-index) * 0.02) * 16), 1);
  transition: opacity 0.25s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-word {
    opacity: 1 !important;
  }
}

/* Ticker */
.ticker {
  overflow-x: clip;
  overflow-y: visible;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--yellow);
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.ticker.is-dragging {
  cursor: grabbing;
}

.ticker-group > span:not(:first-child) .cite-mark,
.ticker-group:not(:first-child) .cite-mark {
  counter-increment: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-group > span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.ticker-group .cite-wrapper {
  margin-left: 0.25em;
}

.ticker-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--black);
  border-radius: 50%;
  margin-left: 16px;
  margin-right: 16px;
  flex-shrink: 0;
  align-self: center;
}

@keyframes ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Bezzy Intro */
.bezzy-intro {
  scroll-margin-top: 0;
  padding: clamp(86px, 8vw, 124px) var(--page-edge) clamp(66px, 6vw, 92px);
  text-align: center;
}

.bezzy-intro h2 {
  margin-bottom: 28px;
  font-size: var(--font-size-h2);
  line-height: 0.95;
}

.bezzy-intro > p {
  font-size: var(--font-size-intro);
}

.sound-note {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: clamp(42px, 4.2vw, 60px) auto 0;
  max-width: 100%;
  text-align: left;
}

.sound-note img {
  width: clamp(72px, 7vw, 112px);
  flex-shrink: 0;
}

.sound-note p {
  max-width: 35ch;
  text-align: left;
  font-size: var(--font-size-detail);
  line-height: var(--line-height-detail);
  text-wrap: balance;
}

/* Bezzy Shop */
.bezzy-shop {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.media-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.media-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f8f6f6;
}

.media-card img,
.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 242%; /* slightly scaled up from 237.037% to prevent subpixel gaps */
  height: 102%; /* slightly scaled up from 100% to prevent subpixel gaps */
  transform: translate(-50%, -50%);
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
}

.sound-control {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 35px;
  min-width: 35px;
  padding: 0 35px 0 0;
  border: 0;
  box-sizing: border-box;
  background: var(--yellow);
  color: var(--black);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.media-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 35px;
  max-width: min(42vw, 300px);
  padding: 4px 11px 3px 12px;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: max-width 0.55s var(--ease-quint), opacity 0.45s ease, padding 0.55s var(--ease-quint);
}

.sound-control svg {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  display: block;
  pointer-events: none;
}

/* Collapse behavior for worst results text */
.sound-control.is-collapsed .media-pill {
  max-width: 0 !important;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Hover expansion on desktop */
@media (hover: hover) {
  .sound-control.is-collapsed:hover .media-pill {
    max-width: min(42vw, 300px) !important;
    opacity: 1;
    padding-left: 12px;
    padding-right: 11px;
  }
}

.sound-toggle:not(.sound-control) {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background-color: transparent;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}

.sound-toggle.sound-off .icon-sound-on {
  display: none;
}

.sound-toggle.sound-on .icon-sound-off {
  display: none;
}

.sound-toggle svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: block;
  pointer-events: none;
}

.video-card-actions {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 90ms ease, transform 90ms ease;
}

.video-card:hover .video-card-actions,
.video-card-actions:focus-within,
.video-card-actions.is-revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-card-action {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  cursor: pointer;
}

.video-card-action svg {
  width: 19px;
  height: 19px;
  display: block;
}

.video-card-action.is-copied {
  background: var(--black);
  color: var(--yellow);
}

.share-modal {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.share-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.share-modal-container {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: rgba(222, 224, 228, 0.95);
  border: none;
  border-radius: 12px;
  box-shadow: none;
  padding: 32px 24px 24px;
  color: #1a1a1a;
  text-align: center;
  z-index: 1;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.share-modal.is-active .share-modal-container {
  transform: scale(1);
}

.share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s, transform 0.15s;
  z-index: 2;
}

.share-modal-close:hover {
  color: #000000;
  transform: scale(1.1);
}

.share-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #000000;
}

.share-modal-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 14px;
  width: 100%;
}

.share-modal-url-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 6px;
  padding: 3px 3px 3px 10px;
  width: 100%;
  box-sizing: border-box;
}

.share-modal-url {
  color: rgba(0, 0, 0, 0.8);
  font-weight: 400;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

.share-copy-btn {
  background: rgba(0, 0, 0, 0.12);
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.share-copy-btn:hover {
  background: rgba(0, 0, 0, 0.22);
}

.share-copy-btn:active {
  transform: scale(0.96);
}

.share-modal-socials-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-social-btn {
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.share-social-btn:hover {
  background: rgba(0, 0, 0, 0.16);
}

.share-social-btn:active {
  transform: scale(0.93);
}

.share-toast {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  color: #000000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.image-carousel {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.image-carousel.is-dragging {
  cursor: grabbing;
}

.carousel-viewport {
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 750ms var(--ease-quint);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #f8f6f6;
}

.carousel-slide img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-save {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 90ms ease, transform 90ms ease;
}

.carousel-save svg {
  width: 19px;
  height: 19px;
  display: block;
}

.image-carousel .carousel-slide:hover .carousel-save,
.image-carousel .carousel-slide:focus-within .carousel-save,
.carousel-save.is-revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.carousel-dots {
  position: absolute;
  right: 58px;
  bottom: 24px;
  left: 58px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 11px;
  pointer-events: none;
}

.carousel-dots button {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.25s ease;
}

.carousel-dots button[aria-current="true"] {
  background: var(--black);
}

.carousel-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.carousel-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--black);
}

.product-panel {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 2.5vw, 42px) clamp(24px, 2.5vw, 48px);
  align-items: start;
  padding: clamp(38px, 4.5vw, 62px) clamp(34px, 3.6vw, 48px) clamp(44px, 5vw, 66px);
}

.product-copy {
  display: contents;
}

.product-panel h2 {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  font-size: var(--font-size-intro);
  line-height: 1.1;
}

.product-price {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--font-size-intro);
  line-height: 1.1;
  white-space: nowrap;
}

.product-panel ul {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

.product-copy li {
  font-size: var(--font-size-detail);
  line-height: var(--line-height-detail);
  margin-bottom: clamp(6px, 0.8vw, 12px);
}

.product-copy li:last-child {
  margin-bottom: 0;
}

.buy-button {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  min-height: clamp(54px, 5.5vw, 76px);
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.buy-button:hover {
  background: var(--black);
}

.buy-button:active {
  transform: scale(0.98);
}

/* Statement */
.statement-band {
  scroll-margin-top: 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--yellow);
  text-align: center;
}

.statement-inner {
  width: min(940px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(136px, 12vw, 198px) 0 clamp(142px, 12vw, 204px);
}

.statement-logo {
  width: clamp(230px, 24vw, 340px);
  margin: 0 auto clamp(96px, 8.8vw, 136px);
}

.statement-band h2 {
  display: inline-block;
  margin-bottom: clamp(54px, 4.8vw, 76px);
  font-size: var(--font-size-h2);
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px; /* Matched to .cta-copy h2 > span */
  text-underline-offset: 8px; /* Matched to .cta-copy h2 > span */
}

.statement-copy {
  max-width: 805px;
  margin: 0 auto;
}

.statement-copy p {
  margin-bottom: clamp(42px, 4.2vw, 62px);
  font-size: var(--font-size-narrative);
  line-height: 1.3;
}



.name-emphasis {
  /* text-decoration: underline; removed per request */
}

.spotify-link {
  display: inline-block;
  margin: clamp(50px, 4.6vw, 70px) 0 clamp(108px, 9.2vw, 140px);
  color: var(--blue);
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.08;
  text-decoration: none;
}

.created-by p {
  display: inline-block;
  margin-bottom: clamp(22px, 2.2vw, 32px);
  font-size: clamp(21px, 1.9vw, 28px);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.creator-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
}

.creator-logos a:first-of-type img {
  width: clamp(118px, 14vw, 184px);
}

.creator-logos span {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1;
}

.basura-logo {
  width: clamp(75px, 7.7vw, 110px);
  border-radius: 50%;
}

/* Footer */
.site-footer {
  padding: 38px 18px 44px;
  background: var(--white);
  text-align: center;
}

.site-footer p,
.site-footer a {
  font-size: var(--font-size-caption);
  line-height: 1.6;
}

.site-footer p {
  margin: 0 0 clamp(1px, 0.1vw, 2px); /* Reduced gap by half again */
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--black);
}

.site-footer a[href^="mailto:"] {
  color: var(--blue) !important; /* Make sure press email address is blue */
}

/* Debug Layer */
.debug-toggle {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 300;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--black);
  padding: 0;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.debug-toggle[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
}

.debug-layout .site-header,
.debug-layout main,
.debug-layout .container-hero,
.debug-layout .container-mission,
.debug-layout .container-bezzy,
.debug-layout .container-statement,
.debug-layout .hero,
.debug-layout .edge-figure,
.debug-layout .edge-figure picture,
.debug-layout .edge-figure figcaption,
.debug-layout .main-headline,
.debug-layout .mission-section,
.debug-layout .community-figure,
.debug-layout .cta-copy,
.debug-layout .ticker,
.debug-layout .bezzy-intro,
.debug-layout .bezzy-shop,
.debug-layout .media-grid,
.debug-layout .media-card,
.debug-layout .product-panel,
.debug-layout .statement-band,
.debug-layout .statement-inner,
.debug-layout .site-footer,
.debug-layout .section-buffer {
  box-shadow: inset 0 0 0 1px var(--debug-color, #ff00ff);
}

.debug-layout h1,
.debug-layout h2,
.debug-layout h3 {
  --debug-color: #008080;
  box-shadow: inset 0 0 0 1px var(--debug-color);
}

.debug-layout p,
.debug-layout li {
  --debug-color: #666666;
  box-shadow: inset 0 0 0 1px var(--debug-color);
}

.debug-layout img,
.debug-layout iframe {
  --debug-color: #ff5500;
  box-shadow: inset 0 0 0 1px var(--debug-color);
}

.debug-layout .site-header {
  --debug-color: #ff0033;
}

.debug-layout main {
  --debug-color: #0033ff;
}

.debug-layout .container-hero {
  --debug-color: #ff00ff;
}

.debug-layout .container-mission {
  --debug-color: #e85d04;
}

.debug-layout .container-bezzy {
  --debug-color: #2d6a4f;
}

.debug-layout .container-statement {
  --debug-color: #9b2226;
}

.debug-layout .hero,
.debug-layout .edge-figure {
  --debug-color: #00a3ff;
}

.debug-layout .edge-figure picture {
  --debug-color: #005cff;
}

.debug-layout .edge-figure figcaption {
  --debug-color: #00b8a9;
}

.debug-layout .main-headline {
  --debug-color: #00b050;
}

.debug-layout .mission-section,
.debug-layout .community-figure,
.debug-layout .cta-copy {
  --debug-color: #ff8a00;
}

.debug-layout .ticker {
  --debug-color: #7a00ff;
}

.debug-layout .bezzy-intro,
.debug-layout .bezzy-shop,
.debug-layout .media-grid,
.debug-layout .media-card,
.debug-layout .product-panel {
  --debug-color: #00a68a;
}

.debug-layout .statement-band,
.debug-layout .statement-inner {
  --debug-color: #cc00cc;
}

.debug-layout .site-footer {
  --debug-color: #666666;
}

.debug-layout .section-buffer {
  --debug-color: #778899;
}

/* Debug Labels */
.debug-layout .site-header::before,
.debug-layout main::before,
.debug-layout .container-hero::before,
.debug-layout .container-mission::before,
.debug-layout .container-bezzy::before,
.debug-layout .container-statement::before,
.debug-layout .hero::before,
.debug-layout .edge-figure::before,
.debug-layout .main-headline::before,
.debug-layout .mission-section::before,
.debug-layout .community-figure::before,
.debug-layout .cta-copy::before,
.debug-layout .ticker::before,
.debug-layout .bezzy-intro::before,
.debug-layout .bezzy-shop::before,
.debug-layout .media-grid::before,
.debug-layout .product-panel::before,
.debug-layout .statement-band::before,
.debug-layout .statement-inner::before,
.debug-layout .site-footer::before,
.debug-layout .section-buffer::before,
.debug-layout h1::before,
.debug-layout h2::before,
.debug-layout h3::before,
.debug-layout p::before,
.debug-layout li::before {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 50;
  padding: 2px 5px 1px;
  background: var(--debug-color, #ff00ff);
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

/* Offset nested labels so they don't overlap */
.debug-layout .container-hero::before      { top: 4px; }
.debug-layout .hero::before                { top: 20px; }
.debug-layout .edge-figure::before         { top: 36px; }

.debug-layout .main-headline::before       { top: 20px; }

.debug-layout .container-mission::before   { top: 4px; }
.debug-layout .mission-section::before     { top: 20px; }
.debug-layout .community-figure::before    { top: 36px; }
.debug-layout .cta-copy::before            { top: 52px; }

.debug-layout .container-bezzy::before     { top: 4px; }
.debug-layout .bezzy-intro::before         { top: 20px; }
.debug-layout .bezzy-shop::before          { top: 36px; }
.debug-layout .media-grid::before          { top: 52px; }
.debug-layout .media-card::before          { top: 68px; }
.debug-layout .product-panel::before       { top: 52px; }

.debug-layout .container-statement::before { top: 4px; }
.debug-layout .statement-band::before      { top: 20px; }
.debug-layout .statement-inner::before     { top: 36px; }

.debug-layout .site-header::before        { content: var(--debug-label, ".site-header"); }
.debug-layout main::before                { content: var(--debug-label, "main"); }
.debug-layout .container-hero::before     { content: var(--debug-label, ".container-hero"); }
.debug-layout .container-mission::before  { content: var(--debug-label, ".container-mission"); }
.debug-layout .container-bezzy::before    { content: var(--debug-label, ".container-bezzy"); }
.debug-layout .container-statement::before { content: var(--debug-label, ".container-statement"); }
.debug-layout .hero::before               { content: var(--debug-label, ".hero"); }
.debug-layout .edge-figure::before        { content: var(--debug-label, ".edge-figure"); }
.debug-layout .main-headline::before      { content: var(--debug-label, ".main-headline"); }
.debug-layout .mission-section::before    { content: var(--debug-label, ".mission-section"); }
.debug-layout .community-figure::before   { content: var(--debug-label, ".community-figure"); }
.debug-layout .cta-copy::before           { content: var(--debug-label, ".cta-copy"); }
.debug-layout .ticker::before             { content: var(--debug-label, ".ticker"); }
.debug-layout .bezzy-intro::before        { content: var(--debug-label, ".bezzy-intro"); }
.debug-layout .bezzy-shop::before         { content: var(--debug-label, ".bezzy-shop"); }
.debug-layout .media-grid::before         { content: var(--debug-label, ".media-grid"); }
.debug-layout .product-panel::before      { content: var(--debug-label, ".product-panel"); }
.debug-layout .statement-band::before     { content: var(--debug-label, ".statement-band"); }
.debug-layout .statement-inner::before    { content: var(--debug-label, ".statement-inner"); }
.debug-layout .site-footer::before        { content: var(--debug-label, ".site-footer"); }
.debug-layout .section-buffer::before     { content: var(--debug-label, ".section-buffer"); }
.debug-layout h1::before                  { content: var(--debug-label, "h1"); }
.debug-layout h2::before                  { content: var(--debug-label, "h2"); }
.debug-layout h3::before                  { content: var(--debug-label, "h3"); }
.debug-layout p::before                   { content: var(--debug-label, "p"); }
.debug-layout li::before                  { content: var(--debug-label, "li"); }

/* Ensure labelled elements can anchor their ::before label —
   skip .site-header (already fixed) and .container-hero (already relative) */
.debug-layout main,
.debug-layout .container-mission,
.debug-layout .container-bezzy,
.debug-layout .container-statement,
.debug-layout .hero,
.debug-layout .edge-figure,
.debug-layout .main-headline,
.debug-layout .mission-section,
.debug-layout .community-figure,
.debug-layout .cta-copy,
.debug-layout .ticker,
.debug-layout .bezzy-intro,
.debug-layout .bezzy-shop,
.debug-layout .media-grid,
.debug-layout .product-panel,
.debug-layout .statement-band,
.debug-layout .statement-inner,
.debug-layout .site-footer,
.debug-layout .section-buffer,
.debug-layout h1:not(#main-headline),
.debug-layout h2,
.debug-layout h3,
.debug-layout p,
.debug-layout li {
  position: relative;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 58px;
    --hero-image-ratio: 0.71;
    --hero-caption-height: 38px;
    --page-edge: 20px;
    --font-size-h1: clamp(27px, 7.9vw, 33px);
    --font-size-h2: clamp(28px, 7.8vw, 34px);
    --font-size-h3: 15px;
    --font-size-narrative: 20px;
    --font-size-intro: 20px;
    --font-size-caption: 12px;
    --font-size-detail: 12px;
    --line-height-detail: 1.05;
  }

  body {
    font-size: 16px;
  }

  .floating-bezzy {
    width: calc(clamp(90px, 24vw, 122px) * var(--floating-bezzy-scale));
  }

  .site-header {
    padding: 0 16px;
  }

  .site-logo {
    width: 128px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle,
  .menu-close {
    display: inline-grid;
    place-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    gap: 3px;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--black);
  }

  .menu-close {
    width: 38px;
    height: 38px;
    font-size: 37px;
  }

  .mobile-nav {
    padding: 16px 24px 20px;
  }

  .mobile-nav a {
    padding: 20px 0;
    font-size: var(--font-size-h2);
    line-height: 1.08;
  }

  .edge-figure figcaption {
    position: static;
    height: auto;
    min-height: var(--hero-caption-height);
    padding-left: 12px;
    font-size: 14px;
  }

  .container-hero {
    --container-hero-height: calc(100svh - var(--header-height));
    height: var(--container-hero-height);
    min-height: 0;
  }

  .hero-composition {
    flex: 0 0 calc(var(--container-hero-height) * 0.76);
    min-height: 0;
  }

  .hero-composition .edge-figure {
    height: 100%;
    min-height: 0;
  }

  .hero-composition .edge-figure picture {
    display: block;
    height: calc(100% - var(--hero-caption-height));
    min-height: 0;
  }

  .hero-composition .edge-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  .main-headline {
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 18px 8px;
  }

  .main-headline h1 {
    position: static;
    transform: translateY(-10%);
    width: 100%;
    max-width: 560px;
    font-size: var(--font-size-h1);
    line-height: 1.02;
  }

  .sticker-board {
    width: 100%;
    aspect-ratio: 2 / 3;
    touch-action: pan-y;
  }

  .sticker-board-grid {
    background-size: 32px 32px;
  }

  .sticker-item {
    width: clamp(180px, 56vw, 270px);
    touch-action: manipulation;
  }

  .sticker-board.has-mobile-start-layer .sticker-item[data-mobile-start-top] {
    z-index: 30;
  }

  .cta-copy {
    margin: 47px auto 61px;
    padding: 0 29px;
  }

  .cta-copy h2 {
    margin-bottom: 34px;
    font-size: var(--font-size-h2);
    line-height: 1.08;
  }

  .cta-copy h2 > span {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
  }

  .cta-copy p {
    font-size: 22px;
    line-height: 1.68;
  }

  .ticker-group > span {
    min-height: 38px;
    padding: 0;
    font-size: 17px;
  }

  .ticker {
    touch-action: pan-y;
  }

  .ticker-dot {
    width: 9px;
    height: 9px;
    margin-left: 12px;
    margin-right: 12px;
    align-self: center;
  }

  .bezzy-intro {
    padding: 48px 24px 36px;
  }

  .bezzy-intro h2 {
    margin-bottom: 18px;
    font-size: var(--font-size-h2);
    line-height: 1.08;
  }

  .bezzy-intro > p {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.12;
    text-wrap: balance;
  }

  .sound-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: calc(100% - 48px);
    gap: 8px;
    margin-top: 24px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .sound-note img {
    width: 48px;
  }

  .sound-note p {
    flex: 0 1 auto;
    width: 100%;
    max-width: 28ch;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
  }



  .bezzy-shop {
    display: block;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .sound-control {
    bottom: 18px;
    right: 18px;
    min-height: 32px;
    min-width: 32px;
    padding: 0 32px 0 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .sound-control svg {
    right: 6.5px;
  }

  .media-pill {
    min-height: 32px;
    max-width: calc(100vw - 104px);
    padding: 4px 9px 3px 10px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-width 0.55s var(--ease-quint), opacity 0.45s ease, padding 0.55s var(--ease-quint);
  }

  .sound-toggle:not(.sound-control),
  .video-card-action {
    width: 32px;
    height: 32px;
  }

  .sound-toggle svg,
  .video-card-action svg {
    width: 18px;
    height: 18px;
  }

  .carousel-save {
    left: 9px;
    bottom: 9px;
    width: 32px;
    height: 32px;
  }

  .carousel-dots {
    right: 48px;
    bottom: 18px;
    left: 48px;
    gap: 8px;
  }

  .carousel-dots button {
    width: 8px;
    height: 8px;
  }

  .product-panel {
    grid-column: auto;
    grid-template-columns: 1fr auto;
    gap: 16px 18px;
    padding: 20px 14px 22px;
  }

  .product-panel h2,
  .product-price {
    font-size: 22px;
    line-height: 1.12;
  }

  .product-copy li {
    font-size: 18px;
    line-height: 1.24;
  }

  .product-copy li {
    margin-bottom: 8px;
  }

  .buy-button {
    min-height: 52px;
    font-size: 16px;
  }

  .statement-inner {
    width: min(940px, calc(100% - 42px));
    padding: 72px 0 72px;
  }

  .statement-logo {
    width: 172px;
    margin-bottom: 56px;
  }

  .statement-band h2 {
    margin-bottom: 29px;
    font-size: var(--font-size-h2); /* Matched to main section titles */
    line-height: 1.08;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px; /* Matched to mobile cta-copy */
  }

  .statement-copy p {
    margin-bottom: 24px;
    font-size: 22px;
    line-height: 1.68;
  }

  .spotify-link {
    margin: 30px 0 57px;
    font-size: var(--font-size-narrative);
    line-height: 1.3;
  }

  .created-by p {
    margin-bottom: 17px;
    font-size: var(--font-size-narrative);
    line-height: 1.3;
  }

  .creator-logos {
    gap: 18px;
  }

  .creator-logos a:first-of-type img {
    width: 98px;
  }

  .creator-logos span {
    font-size: 26px;
  }

  .basura-logo {
    width: 66px;
  }

  .site-footer {
    padding: 21px 14px 24px;
  }

  .site-footer p,
  .site-footer a {
    font-size: 14px;
    line-height: 1.15;
  }

  .site-footer p {
    margin: 0 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none;
  }

  .carousel-track {
    transition: none;
  }

  .floating-bezzy {
    transition: opacity 0.001ms linear, visibility 0s;
  }
}

/* Sticker Lightbox */
body.lightbox-active {
  /* Scroll is allowed - scrolling instantly dismisses the lightbox modal */
}

.sticker-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  perspective: 1000px;
  visibility: hidden;
}

.sticker-lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  /* Fast fade out when closing (instant feel) */
  transition: opacity 0.08s ease-out;
}

.sticker-lightbox.is-open.is-active .lightbox-overlay {
  opacity: 1;
  /* Smooth fade in when opening */
  transition: opacity 0.25s cubic-bezier(0.83, 0, 0.17, 1);
}

.lightbox-content {
  position: absolute;
  width: var(--start-width);
  height: var(--start-height);
  left: var(--start-left);
  top: var(--start-top);
  transform: translate(0, 0) rotateY(0deg) rotate(var(--start-rot, 0deg));
  cursor: pointer;
  transform-style: preserve-3d;
  background: #e4e1db; /* Solid off-white card core edge */
  box-shadow: none;
  transition: 
    transform 0.85s cubic-bezier(0.83, 0, 0.17, 1),
    left 0.85s cubic-bezier(0.83, 0, 0.17, 1),
    top 0.85s cubic-bezier(0.83, 0, 0.17, 1),
    width 0.85s cubic-bezier(0.83, 0, 0.17, 1),
    height 0.85s cubic-bezier(0.83, 0, 0.17, 1),
    box-shadow 0.85s cubic-bezier(0.83, 0, 0.17, 1);
}

.sticker-lightbox.is-open.is-active .lightbox-content {
  left: 50%;
  top: 50%;
  width: min(500px, 85vw);
  height: min(500px, 85vw);
  transform: translate(-50%, -50%) rotateY(360deg) rotate(0deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

.lightbox-download {
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticker-lightbox.is-open.is-active .lightbox-download {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lightbox-download svg {
  width: 22px;
  height: 22px;
  display: block;
}

.lightbox-front,
.lightbox-back {
  position: absolute;
  inset: -0.5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.lightbox-front {
  transform: translateZ(1px); /* 3D layer thickness offset (front face) */
}

.lightbox-back {
  transform: rotateY(180deg) translateZ(1px); /* 3D back offset (back face) */
  background: #fbfbfa; /* Off-white back face color */
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
}

/* 3D Edge panels simulating realistic 0.75mm–1mm thickness */
.lightbox-edge-top,
.lightbox-edge-bottom,
.lightbox-edge-left,
.lightbox-edge-right {
  position: absolute;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lightbox-edge-top {
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  transform: rotateX(90deg);
  background: #ebe9e4; /* Top edge light highlight */
}

.lightbox-edge-bottom {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: rotateX(-90deg);
  background: #b5b1a7; /* Bottom edge shadow */
}

.lightbox-edge-left {
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  transform: rotateY(-90deg);
  background: #d6d3cc; /* Shaded left edge */
}

.lightbox-edge-right {
  top: 0;
  bottom: 0;
  right: -1px;
  width: 2px;
  transform: rotateY(90deg);
  background: #d6d3cc; /* Shaded right edge */
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Privacy Policy Page */
.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--page-edge);
}

.privacy-policy h1 {
  font-size: var(--font-size-h1);
  line-height: 1.1;
  margin-bottom: clamp(20px, 2vw, 30px);
}

.privacy-policy .effective-date {
  font-size: var(--font-size-detail);
  line-height: var(--line-height-detail);
  margin-bottom: clamp(30px, 3vw, 40px);
  font-style: italic;
}

.privacy-policy h2 {
  font-size: var(--font-size-intro);
  margin-top: clamp(35px, 4vw, 55px);
  margin-bottom: clamp(15px, 2vw, 20px);
  border-bottom: 1px solid var(--black);
  padding-bottom: clamp(6px, 0.8vw, 10px);
}

.privacy-policy h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: clamp(20px, 2.5vw, 30px);
  margin-bottom: 10px;
}

.privacy-policy p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.privacy-policy ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.privacy-policy li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.privacy-policy a {
  color: var(--blue);
  text-decoration: underline;
}

.privacy-policy a:hover {
  text-decoration: none;
}

/* Citation popups */
body {
  counter-reset: citation;
}

.cite-wrapper {
  position: relative;
  display: inline;
  cursor: pointer;
}

.cite-lock {
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
}

.cite-mark {
  counter-increment: citation;
  display: inline;
  font-family: "FreeSerif", "Times New Roman", serif;
  font-size: 0.42em;
  vertical-align: super;
  margin-left: 2px;
  cursor: pointer;
  font-weight: 600;
  color: var(--black);
  line-height: 0;
}

.cite-mark::before {
  content: counter(citation);
}

.cite-popup {
  position: fixed;
  top: var(--popup-top, 0px);
  left: var(--popup-left, 0px);
  transform: translateY(10px);
  box-sizing: border-box;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 1000;
  font-family: "FreeSerif", "Times New Roman", serif;
  text-align: left;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  white-space: normal;
}

/* Flipped State for Top Collisions */
.cite-popup.flipped {
  transform: translateY(-10px);
}

/* Speech Bubble Tail */
.cite-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tail-left, 50%);
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}
.cite-popup.flipped::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #ffffff transparent;
}

/* Invisible Hover Bridge */
.cite-popup::before {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tail-left, 50%);
  width: 34px;
  height: 16px;
  transform: translateX(-50%);
  background: transparent;
}
.cite-popup.flipped::before {
  top: auto;
  bottom: 100%;
}

/* JS floats active popups under <body> so parents cannot clip them. */
.cite-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

.cite-fact {
  display: block;
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.cite-source {
  display: inline-block;
  font-size: 13px;
  text-decoration: none !important;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  background: var(--yellow);
  color: var(--black);
  font-family: "FreeSerif", "Times New Roman", serif;
  letter-spacing: 0;
  margin: 6px 0 0 0;
}

.cite-source:hover {
  background-color: #e0e0e0;
}

/* Keep mobile popups narrow; JS still handles final viewport nudging. */
@media (max-width: 768px) {
  .cite-popup {
    width: min(260px, calc(100vw - 24px));
  }
  .cite-popup.is-visible {
    transform: translateY(0);
  }
  .cite-popup::after,
  .cite-popup::before {
    left: var(--tail-left, 50%);
    transform: translateX(-50%);
  }
}
