:root {
  --bg: #0e0b08;
  --bg-soft: #17120c;
  --wood: #a67c52;
  --wood-light: #d4b896;
  --ink: #f3ebe1;
  --ink-muted: rgba(243, 235, 225, 0.72);
  --ink-faint: rgba(243, 235, 225, 0.42);
  --line: rgba(212, 184, 150, 0.28);
  --shadow: rgba(0, 0, 0, 0.55);

  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;

  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
}

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

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

.catalog {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.slide {
  position: relative;
  height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  isolation: isolate;
}

.slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
  opacity: 0.88;
}

.slide.is-active .slide__media img {
  transform: scale(1);
  opacity: 1;
}

.slide__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(166, 124, 82, 0.28), transparent 55%),
    linear-gradient(135deg, #1a140f 0%, #2a2118 45%, #12100d 100%);
}

.slide__fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 3px
    );
  opacity: 0.6;
  pointer-events: none;
}

.slide__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 11, 8, 0.55) 0%, transparent 28%, transparent 58%, rgba(14, 11, 8, 0.78) 100%),
    linear-gradient(90deg, rgba(14, 11, 8, 0.45) 0%, transparent 35%);
}

.slide--intro .slide__veil {
  background:
    linear-gradient(180deg, rgba(14, 11, 8, 0.35) 0%, rgba(14, 11, 8, 0.2) 40%, rgba(14, 11, 8, 0.75) 100%),
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 20%, rgba(14, 11, 8, 0.55) 100%);
}

.slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.slide--intro .slide__content {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(4rem, 10vh, 6rem);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 40rem;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin: 0;
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.brand__rule {
  width: 4.5rem;
  height: 1px;
  background: var(--wood-light);
  opacity: 0;
  animation: fade-in 0.9s ease 0.55s forwards;
}

.brand__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.brand__lead {
  margin: 0.35rem 0 0;
  max-width: 28rem;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: fade-in 1s ease 1.1s forwards;
}

.scroll-hint__mouse {
  width: 1.35rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}

.scroll-hint__mouse::after {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--wood-light);
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

.desk-meta {
  max-width: min(34rem, 100%);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.is-active .desk-meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.desk-meta__index {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--wood-light);
}

.desk-meta__name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
}

.desk-meta__en {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.desk-meta__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.desk-meta__cta:hover {
  background: rgba(212, 184, 150, 0.12);
  border-color: var(--wood-light);
}

.desk-meta__cta svg {
  width: 1rem;
  height: 1rem;
}

body.is-rtl .desk-meta__cta svg {
  transform: scaleX(-1);
}

body.is-rtl .progress {
  left: auto;
  right: clamp(0.85rem, 2vw, 1.5rem);
}

body.is-rtl .counter {
  left: auto;
  right: clamp(1.25rem, 3vw, 2.25rem);
}

body.is-ltr .progress {
  left: auto;
  right: clamp(0.85rem, 2vw, 1.5rem);
}

body.is-ltr .counter {
  left: auto;
  right: clamp(1.25rem, 3vw, 2.25rem);
}

body.is-ltr .slide__veil {
  background:
    linear-gradient(180deg, rgba(14, 11, 8, 0.55) 0%, transparent 28%, transparent 58%, rgba(14, 11, 8, 0.78) 100%),
    linear-gradient(270deg, rgba(14, 11, 8, 0.45) 0%, transparent 35%);
}

.chrome {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.chrome__top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 3vw, 2.25rem);
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.55), transparent);
}

.chrome__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.chrome__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.progress {
  position: absolute;
  top: 50%;
  left: clamp(0.85rem, 2vw, 1.5rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: auto;
}

.progress__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(243, 235, 225, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.progress__dot.is-active {
  background: var(--wood-light);
  transform: scale(1.35);
}

.progress__dot:hover {
  background: rgba(243, 235, 225, 0.55);
}

.counter {
  position: absolute;
  bottom: clamp(1.25rem, 3vh, 2rem);
  left: clamp(1.25rem, 3vw, 2.25rem);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  pointer-events: none;
}

.counter strong {
  color: var(--ink);
  font-weight: 500;
}

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

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

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@media (max-width: 768px) {
  .progress {
    display: none;
  }

  .desk-meta__name {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .brand__mark {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog {
    scroll-behavior: auto;
  }

  .brand__mark,
  .brand__rule,
  .brand__title,
  .brand__lead,
  .scroll-hint,
  .slide__media img,
  .desk-meta {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
