/* ============================================================
   PRMPT — archivní kolekce „Prompt“ · ukázkový koncept
   Statická rekonstrukce (bez build stepu) · Cina Digital
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 500;
  background: #fff;
  color: #fff;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Kořenový spacer ---------- */

#scroll-spacer {
  position: relative;
  height: 500vh; /* přepíše JS: vh + maxScroll + 2*vh */
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 1024px) and (pointer: fine) {
  body {
    cursor: none;
  }
}

/* ---------- Vstupní animace (Motion náhrada) ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  animation: rise-in 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

#site-logo { animation-delay: 0s; }
#site-nav  { animation-delay: 0.15s; }
#caption   { animation-delay: 0.3s; }

#outro-info {
  animation: fade-in 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.45s both;
}

/* ---------- Vlastní kurzor ---------- */

#custom-cursor {
  position: fixed;
  left: -100px;
  top: -100px;
  z-index: 50;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: exclusion;
  display: none;
}

#custom-cursor svg {
  width: 48px;
  height: 48px;
}

@media (min-width: 1024px) and (pointer: fine) {
  #custom-cursor {
    display: block;
  }
}

/* ---------- Logo ---------- */

#site-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 124px;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: exclusion;
}

#site-logo svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo-text {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 118px;
  letter-spacing: -0.05em;
  fill: #fff;
}

.logo-r {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 15px;
  fill: #fff;
}

@media (min-width: 640px) {
  #site-logo {
    top: 32px;
    left: 32px;
    width: 266px;
  }
}

@media (min-width: 1024px) {
  #site-logo {
    width: 355px;
  }
}

/* ---------- Manifest (caption) ---------- */

#caption {
  position: fixed;
  left: 16px;
  top: 118px;
  width: calc(100vw - 32px);
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: exclusion;
  font-size: 12px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.04em;
  color: #fff;
}

@media (min-width: 640px) {
  #caption {
    left: 32px;
    top: 180px;
    width: calc(50vw - 48px);
  }
}

@media (min-width: 1024px) {
  #caption {
    top: 244px;
    width: 692px;
  }
}

/* ---------- Navigace ---------- */

#site-nav {
  position: fixed;
  top: 16px;
  right: 16px;
  height: 30px;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: exclusion;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-about {
  display: none;
  font-size: 15px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-burger svg {
  width: 24px;
  height: 24px;
}

.nav-cart {
  font-size: 13px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 640px) {
  #site-nav {
    top: 32px;
    right: 32px;
    width: 330px;
  }
  .nav-about {
    display: block;
  }
  .nav-items {
    gap: 50px;
  }
  .nav-burger svg {
    width: 30px;
    height: 30px;
  }
  .nav-cart {
    font-size: 15px;
  }
}

/* ---------- Video plátno ---------- */

#main-canvas {
  position: fixed;
  left: 0;
  top: 220px;
  width: 100vw;
  height: calc(100vh - 220px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#main-canvas.ready {
  opacity: 1;
}

#main-canvas video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#video-left {
  display: none;
}

@media (min-width: 640px) {
  #main-canvas {
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

/* ---------- Černý panel s galerií ---------- */

#black-panel {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10;
  transform: translateY(100vh);
  will-change: transform;
  overflow: hidden;
}

#panel-wrap {
  width: 100%;
  padding-top: min(400px, 40vh);
  will-change: transform;
}

#panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  #panel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  #panel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bp-cell {
  position: relative;
  aspect-ratio: 2 / 3;
}

.bp-card {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: scale(0);
}

.bp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Bílý overlay (outro) ---------- */

#outro-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
}

/* ---------- Info o produktu ---------- */

#outro-info {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: exclusion;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.info-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 252px;
  margin-bottom: 12px;
}

.info-circle {
  position: relative;
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
}

.info-circle svg {
  width: 100%;
  height: 100%;
}

.info-circle circle {
  stroke-width: 2;
}

#circle-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 100%;
}

.info-label {
  font-size: 20px;
  line-height: 100%;
  text-align: center;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.info-price {
  font-size: 60px;
  line-height: 100%;
  text-align: center;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 640px) {
  #outro-info {
    left: auto;
    right: 32px;
    bottom: 80px;
    width: 330px;
  }
  .info-top {
    width: 100%;
    margin-bottom: 32px;
  }
  .info-circle {
    width: 30px;
    height: 30px;
  }
  .info-circle circle {
    stroke-width: 2.5;
  }
  #circle-symbol {
    font-size: 15px;
  }
  .info-label {
    font-size: 30px;
  }
  .info-price {
    font-size: 80px;
  }
}

/* ---------- Tlačítko „vstup“ ---------- */

#outro-buy {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 60px;
  height: 100px;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: exclusion;
  background: #fff;
  border-radius: 1335px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: right bottom;
  transform: scale(0);
  will-change: transform;
}

#outro-buy span {
  font-size: 72px;
  line-height: 100%;
  letter-spacing: -0.04em;
  color: #fff;
  mix-blend-mode: exclusion;
}

@media (min-width: 640px) {
  #outro-buy {
    left: auto;
    right: 32px;
    bottom: 32px;
    width: 330px;
    height: 174px;
  }
  #outro-buy span {
    font-size: 110px;
  }
}

/* ---------- Patička (outro) ---------- */

#outro-footer {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: exclusion;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  opacity: 0;
  visibility: hidden;
  font-size: 11px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

#outro-footer a {
  pointer-events: auto;
}

@media (min-width: 640px) {
  #outro-footer {
    right: auto;
    bottom: 32px;
    justify-content: flex-start;
    gap: 0 80px;
    font-size: 13px;
  }
}

/* ---------- Demo poznámka ---------- */

#demo-note {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 60;
  background: #000;
  color: #fff;
  font-size: 13px;
  letter-spacing: -0.02em;
  line-height: 130%;
  text-align: center;
  padding: 10px 18px;
  border-radius: 999px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#demo-note.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  .bp-card {
    will-change: auto;
  }
  .reveal,
  #outro-info {
    animation: none;
    opacity: 1;
  }
}
