/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Onest', 'Georgia', 'Times New Roman', serif;
  background: #0a0a0a;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== Light glow — задний план, виден только в тёмных зонах ===== */
.light-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, -200px) var(--my, -200px),
    rgba(255, 255, 255, 0.08) 0%,
    rgba(200, 220, 255, 0.03) 35%,
    transparent 65%
  );
  transition: background 0.05s;
}

/* ===== Custom cursor ===== */
.neko { cursor: none !important; }

.custom-cursor {
  position: fixed;
  left: var(--mx, -100px);
  top: var(--my, -100px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ===== Carousel Background ===== */
.carousel-background {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.row {
  height: 33.333vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease;
}

.row.loaded {
  opacity: 1;
}

/* Subtle separator glow between rows */
.row + .row {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.photo-strip {
  display: flex;
  gap: 20px;
  padding: 0 10px;
  flex-shrink: 0;
  will-change: transform;
}

.photo-strip img {
  height: clamp(180px, 30vh, 320px);
  width: auto;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: saturate(1.05) brightness(1.02);
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== Overlay (dark gradient for readability) ===== */
.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(0, 0, 0, 0.45) 80%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ===== Glass text ===== */
.glass-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;

  /* === Glass text — bright, readable === */
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.30) 35%,
    rgba(255, 255, 255, 0.50) 100%
  );

  /* Visible glass edge on each letter */
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.55);

  /* Brighten against any background */
  mix-blend-mode: screen;

  /* Dark shadow for depth + contrast against bright photos */
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.85),
    0 4px 48px rgba(0, 0, 0, 0.35);

  font-family: 'Onest', 'Georgia', serif;
  font-size: clamp(2.4rem, 4.2vw, 5.2rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;

  user-select: none;
  -webkit-user-select: none;

  cursor: none;

  transition:
    background-image 0.3s,
    -webkit-text-stroke 0.3s,
    text-shadow 0.3s;

  animation: glass-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hover — текст становится ярче, менее прозрачным */
.glass-text:hover {
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.60) 35%,
    rgba(255, 255, 255, 0.75) 100%
  );
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.75);
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.95),
    0 4px 56px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 255, 255, 0.08);
}

@keyframes glass-in {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===== Desktop-only protection ===== */
.mobile-block {
  display: none;
}

@media (max-width: 1023px) {
  .carousel-background,
  .overlay,
  .glass-text,
  .light-glow,
  .custom-cursor {
    display: none;
  }

  .mobile-block {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #0a0a0a;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    line-height: 1.6;
  }
}
