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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Geologica', sans-serif;
  background: #08080c;
  color: #e8e8e8;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ff4d00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 0 0, auto;
}

a {
	text-decoration: none;
	position: relative;
	z-index: 999999999;
	color: #ff4d00;
}

a:hover, .nav-dots:hover, .nav-dot:hover {  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 0 0, auto;
	transition: 1s;
}


/* --- Выделение текста --- */
::selection {
  background-color: #ff4d00;
  color: #ffffff;
}

::-moz-selection {
  background-color: #ff4d00;
  color: #ffffff;
}

/* --- Кастомный скроллбар (Chrome, Safari, Edge, Opera) --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #ff4d00;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e04400;
}

/* --- Скроллбар для Firefox --- */
* {
  scrollbar-width: thin;
  scrollbar-color: #ff4d00 #080808;
}

/* ===== Slider Viewport ===== */
.slider-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #08080c;
	background: #08080c;
background: radial-gradient(circle, rgba(44, 16, 0, 1) 0%, rgba(0, 0, 0, 1) 37%);
}

/* ===== Fixed Center O ===== */
.fixed-o {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Geologica', sans-serif;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 400;
  color: #ff4d00;
  z-index: 50;
  pointer-events: none;
  text-shadow: 0 0 40px rgba(255, 160, 0, 0.4), 0 0 80px rgba(255, 160, 0, 0.2);
  line-height: 1;
}

/* ===== Slides ===== */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
  opacity: 0;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 10;
  transform: translateY(0);
}

.slide.prev {
  opacity: 0;
  z-index: 1;
  transform: translateY(-100vh);
}

.slide.next {
  opacity: 0;
  z-index: 1;
  transform: translateY(100vh);
}

/* ===== Slide Content ===== */
.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===== Letters ===== */
.letter {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: 'Geologica', sans-serif;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 400;
  color: #e8e8e8;
  text-transform: lowercase;
  line-height: 1;
  transform: translate(calc(-50% + var(--offset) * 1ch), -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .letter {
  opacity: 1;
}

.slide-subtitle {
  position: absolute;
  top: 65%;        
  left: 50%; 
  transform: translateX(-50%);
  width: max-content;
  max-width: 75vw;
  text-align: center;
  font-family: 'Geologica', sans-serif;
  font-size: clamp(1rem, 8vw, 1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  pointer-events: auto;
  opacity: 0;
  transition:
      opacity .6s cubic-bezier(.22,1,.36,1),
      transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: 1.45s;
}

.slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0) 1s;
}

.slide-subtitle span {
	margin: 4px 8px;
}

.slide-subtitle br {
	margin: 8px
}

/* Staggered entrance delay */
.slide.active .letter:nth-child(1) { transition-delay: 0.04s; }
.slide.active .letter:nth-child(2) { transition-delay: 0.08s; }
.slide.active .letter:nth-child(3) { transition-delay: 0.12s; }
.slide.active .letter:nth-child(4) { transition-delay: 0.16s; }
.slide.active .letter:nth-child(5) { transition-delay: 0.20s; }
.slide.active .letter:nth-child(6) { transition-delay: 0.24s; }
.slide.active .letter:nth-child(7) { transition-delay: 0.28s; }
.slide.active .letter:nth-child(8) { transition-delay: 0.32s; }
.slide.active .letter:nth-child(9) { transition-delay: 0.36s; }

/* ===== Logo ===== */
.top-left-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  font-family: 'Geologica', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  pointer-events: none;
}

.top-left-logo span {
  color: #00f0ff;
}

/* ===== Navigation Dots ===== */
.nav-dots {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.nav-dot.active {
  background: #ff4d00;
  box-shadow: 0 0 10px rgba(255, 160, 0, 0.5);
  transform: scale(1.3);
}

/* ===== Bottom Hint ===== */
.bottom-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-family: 'Geologica', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .fixed-o,
  .letter {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .top-left-logo {
    font-size: 0.67rem;
    top: 1.2rem;
    left: 1.2rem;
  }

  .nav-dots {
    bottom: 1.2rem;
    right: 1.2rem;
    gap: 10px;
  }

  .bottom-hint {
    bottom: 1.5rem;
    font-size: 0.65rem;
  }
	
	
	.letter {
	  transform: translate(calc(-50% + var(--offset) * 1ch), -125%);
	}
	
	.slide-subtitle {
	  top: 55%; 
	}
}

/*safari браузер*/
.safari 	.letter {
	  transform: translate(calc(-50% + var(--offset) * 1ch), -50%);
	}