*, *::before, *::after {
  font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

html {
  scroll-snap-type: y proximity;
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity;
}

[data-reveal][data-reveal-ready="1"] {
  opacity: 0;
}

[data-reveal][data-reveal-ready="1"].is-revealed {
  opacity: 1;
}

.craftsmanship-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.shadow-sep {
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.shadow-sep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}

.parallax-section {
  --parallax-frame-height: min(100vh, 66.667vw);
  position: relative;
  height: calc(var(--parallax-frame-height) + 140vh);
  background: #050b14;
}

.sticky-container {
  position: sticky;
  top: max(0px, calc((100vh - var(--parallax-frame-height)) / 2));
  height: var(--parallax-frame-height);
  overflow: hidden;
  background: #050b14;
}

.brand-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.12);
  filter: brightness(0.78);
  will-change: transform;
}

.reveal-mask {
  position: absolute;
  inset: 0;
  background: #000;
  transform-origin: center;
  will-change: transform, opacity, clip-path;
  z-index: 2;
}

.content-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(42rem, calc(100% - 3rem));
  transform: translate3d(-50%, calc(-50% + 50px), 0);
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
}

.content-layer h2 {
  color: #fff;
  letter-spacing: 0.18em;
  text-shadow: 0 18px 42px rgb(0 0 0 / 0.28);
}

.content-layer p {
  text-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
}

.hero-banner {
  position: relative;
  width: 100%;
}

.hero-banner__stage {
  width: 100%;
}

.hero-banner__window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 960px;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.hero-banner__image {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: translate3d(var(--banner-x, 0px), calc(var(--banner-y, 0px) + var(--banner-scroll-y, 0px)), 0) scale(1.06);
  opacity: 0;
  will-change: opacity, transform;
}

.hero-banner__veil {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-banner__content {
  position: relative;
  height: 100%;
}

.hero-slide-static {
  transition: opacity 1.2s ease-in-out;
}

.hero-slide-static.is-active {
  opacity: 1;
}

.banner-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  margin: 100px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translate3d(var(--copy-x, 0px), calc(var(--copy-y, 0px) + 34px), 0);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-copy.is-visible {
  opacity: 1;
  transform: translate3d(var(--copy-x, 0px), var(--copy-y, 0px), 0);
}

.hero-title {
  color: transparent;
  background: linear-gradient(to bottom,
      rgb(255 255 255 / 0.04) 0%,
      rgb(255 255 255 / 1) 18%,
      rgb(255 255 255 / 0.95) 56%,
      rgb(255 255 255 / 0.2) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  line-height: 0.92;
  text-wrap: balance;
  font-size: 3rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.banner-desc {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 1.02rem;
  line-height: 1.95;
  letter-spacing: 0.025em;
  color: transparent;
  background: linear-gradient(to bottom,
      rgb(255 255 255 / 0.02) 0%,
      rgb(255 255 255 / 0.94) 16%,
      rgb(255 255 255 / 0.82) 54%,
      rgb(255 255 255 / 0.12) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.banner-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
}

.banner-controls__dots {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-dot {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgb(255 240 204 / 0.26);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.06)),
    linear-gradient(135deg, rgb(215 179 90 / 0.34), rgb(255 255 255 / 0.04));
  box-shadow:
    0 10px 28px rgb(0 0 0 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    width 0.5s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.banner-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 241 199 / 0.24), rgb(255 255 255 / 0));
}

.banner-dot:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgb(0 0 0 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
  border-color: rgb(255 240 204 / 0.34);
}

.floating-stone {
  animation: floatStone 8s ease-in-out infinite;
}

.about-hero-image {
  width: min(100%, 32rem);
  border-radius: 0;
  opacity: 1;
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 18px rgb(255 244 214 / 0.22)) drop-shadow(0 0 42px rgb(145 198 255 / 0.12)) drop-shadow(0 30px 48px rgb(0 0 0 / 0.34));
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 18px 36px rgb(6 10 18 / 0.38),
    0 0 70px rgb(255 226 163 / 0.12);
}

.compare-stage {
  height: clamp(420px, 42vw, 620px);
}

.compare-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0 clamp(2rem, 6vw, 5rem);
  height: 100%;
}

.compare-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(48%, 500px);
  height: 86%;
  min-width: 0;
  flex: 0 1 auto;
}

.compare-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  will-change: transform, filter;
}

.compare-image::before,
.compare-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-repeat: inherit;
  background-position: inherit;
  background-size: inherit;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.compare-layer:hover .compare-image {
  filter: brightness(1.01) contrast(1.015);
}

.compare-layer:hover .compare-image::before {
  opacity: 0.12;
  animation: signalGlitchA 1200ms steps(2, end) infinite;
}

.compare-layer:hover .compare-image::after {
  opacity: 0.08;
  animation: signalGlitchB 1450ms steps(2, end) infinite;
}

.compare-image--left {
  background-position: center;
  transform: translateY(90px);
}

.compare-image--right {
  background-position: center;
  transform: translate(-10px, -50px);
}

.compare-layer--left {
  justify-content: flex-end;
  margin-right: -36px;
}

.compare-layer--right {
  justify-content: flex-start;
  margin-left: -36px;
}

.collection-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  min-width: 10rem;
}

.collection-preview__lens {
  position: fixed;
  left: var(--preview-x, 0px);
  top: var(--preview-y, 0px);
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 0.58);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.07)),
    rgb(255 255 255 / 0.08);
  box-shadow:
    0 24px 44px rgb(0 0 0 / 0.34),
    inset 0 1px 0 rgb(255 255 255 / 0.42),
    inset 0 -14px 28px rgb(255 255 255 / 0.06),
    0 0 0 2px rgb(255 255 255 / 0.14),
    0 0 30px rgb(255 255 255 / 0.08);
  opacity: 0;
  transform: translate3d(-50%, -100%, 0) scale(0.86);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 40;
}

.collection-preview.is-active .collection-preview__lens {
  opacity: 1;
  transform: translate3d(-50%, -100%, 0) scale(1);
  border-color: rgb(255 255 255 / 0.72);
}

.collection-preview__lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.24),
    inset 0 0 32px rgb(255 255 255 / 0.1);
  pointer-events: none;
}

.collection-preview__lens::before {
  content: "";
  position: absolute;
  inset: 7% 14% auto 14%;
  height: 22%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.34), rgb(255 255 255 / 0));
  pointer-events: none;
  z-index: 2;
}

.collection-preview__zoom {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 220%;
  transform: scale(1.02);
  transition: background-image 0.2s ease;
}

.collection-preview__button {
  position: relative;
  z-index: 1;
}

.is-revealed .compare-image--left {
  animation: compareSlideLeft 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-revealed .compare-image--right {
  animation: compareSlideRight 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes signalGlitchA {
  0% {
    clip-path: inset(4% 0 78% 0);
    transform: translate3d(0, 0, 0);
    filter: hue-rotate(0deg);
  }

  20% {
    clip-path: inset(22% 0 48% 0);
    transform: translate3d(2px, -1px, 0);
    filter: hue-rotate(2deg);
  }

  40% {
    clip-path: inset(55% 0 18% 0);
    transform: translate3d(-2px, 0, 0);
  }

  60% {
    clip-path: inset(12% 0 62% 0);
    transform: translate3d(2px, 0, 0);
  }

  80% {
    clip-path: inset(68% 0 8% 0);
    transform: translate3d(-2px, 1px, 0);
    filter: hue-rotate(-1deg);
  }

  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 0, 0);
    filter: hue-rotate(0deg);
  }
}

@keyframes signalGlitchB {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 0, 0);
  }

  18% {
    clip-path: inset(30% 0 44% 0);
    transform: translate3d(-2px, 0, 0);
  }

  36% {
    clip-path: inset(8% 0 72% 0);
    transform: translate3d(2px, -1px, 0);
  }

  58% {
    clip-path: inset(62% 0 12% 0);
    transform: translate3d(-1px, 1px, 0);
  }

  78% {
    clip-path: inset(46% 0 26% 0);
    transform: translate3d(2px, 0, 0);
  }

  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes compareSlideLeft {
  0% {
    opacity: 0;
    transform: translate(-260px, 360px);
  }

  100% {
    opacity: 1;
    transform: translateY(90px);
  }
}

@keyframes compareSlideRight {
  0% {
    opacity: 0;
    transform: translate(280px, -320px);
  }

  100% {
    opacity: 1;
    transform: translate(-10px, -50px);
  }
}

.carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-x: hidden;
  cursor: default;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  transform-style: preserve-3d;
  transform-origin: 50% 180%;
}

.carousel-card--tall {
  aspect-ratio: 1 / 2;
}

@keyframes floatStone {
  0% {
    transform: translateY(-15px);
  }

  50% {
    transform: translateY(15px);
  }

  100% {
    transform: translateY(-15px);
  }
}

.card-glow-wrapper {
  z-index: 10;
  transform: translateZ(0);
  transition:
    flex 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.5s ease-out,
    z-index 0s;
}

.card-glow-wrapper:hover {
  z-index: 20;
  filter:
    drop-shadow(0 0 10px rgba(255, 215, 0, 0.6))
    drop-shadow(0 0 25px rgba(212, 175, 55, 0.4))
    drop-shadow(0 0 50px rgba(255, 215, 0, 0.2));
}

@media (max-width: 768px) {
  .parallax-section {
    --parallax-frame-height: min(88vh, 80vw);
    height: calc(var(--parallax-frame-height) + 110vh);
  }

  .content-layer {
    top: 50%;
    width: min(32rem, calc(100% - 2rem));
  }

  .hero-banner__window {
    clip-path: inset(0 0 0 0 round 0);
  }

  .compare-stage {
    height: clamp(320px, 72vw, 460px);
  }

  .compare-grid {
    gap: 0;
    padding: 0 0.75rem;
  }

  .compare-image {
    width: min(200%, 184vw);
  }

  .banner-copy {
    top: 30%;
    padding: 0 1rem;
  }

  .banner-desc {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .banner-controls {
    bottom: 1rem;
    right: 0;
  }

  .banner-controls__dots {
    gap: 0.75rem;
  }
}

/* Carousel Container */
.carousel-container {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Series Cards entry animation */
.series-card {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.series-card--odd {
  transform: translate(-220px, 220px);
}

.series-card--even {
  transform: translate(220px, -220px);
}

.is-revealed .series-card {
  opacity: 1;
  transform: translate(0, 0);
}

.series-card:nth-child(1) { transition-delay: 0s; }
.series-card:nth-child(2) { transition-delay: 0.08s; }
.series-card:nth-child(3) { transition-delay: 0.16s; }
.series-card:nth-child(4) { transition-delay: 0.24s; }
.series-card:nth-child(5) { transition-delay: 0.32s; }
.series-card:nth-child(6) { transition-delay: 0.4s; }

/* Compare copy fly-in animation */
.compare-copy__title,
.compare-copy__desc {
  opacity: 0;
  will-change: transform, opacity;
}

.is-revealed .compare-copy__title {
  animation: compareCopyTitleFly 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-revealed .compare-copy__desc {
  animation: compareCopyDescFly 4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes compareCopyTitleFly {
  0% {
    opacity: 0;
    transform: translate(-220px, -180px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes compareCopyDescFly {
  0% {
    opacity: 0;
    transform: translate(220px, 180px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}
