/* ==========================================================================
   RABBIT CMS — DEVELOPED BY AGNI STUDIO
   Exact Clone of Slider Revolution "Scroll Driven Hero Template – Layered Parallax"
   ========================================================================== */

:root {
  --bg-dark: #2B1D13;
  --bg-clay: #3D2E24;
  --bg-warm: #E9DFD3;
  --bg-cream: #F2EBE1;
  --text-espresso: #3D2E24;
  --text-deep: #1E0813;
  --text-taupe: #9B8E82;
  --text-muted: #4A3C32;
  --accent-terracotta: #A17D66;
  --cursor-peach: #F7D2B9;
  --cursor-circle-bg: rgba(242, 210, 189, 0.85);

  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid scale factor relative to SR7 1240x900 desktop canvas */
  --sr-scale: clamp(0.58, min(calc(100vw / 1240), calc(100vh / 900)), 1.25);
}

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

html, body {
  background-color: var(--bg-clay);
  color: var(--text-espresso);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
  user-select: none;
}

.overflow-mask {
  overflow: hidden;
}

/* ==========================================================================
   CUSTOM MOUSETRAP CURSORS (Layers 35 & 36)
   ========================================================================== */
.cursor-dot,
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0);
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--cursor-peach);
  z-index: 9999;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.cursor-circle {
  width: 120px;
  height: 120px;
  background-color: var(--cursor-circle-bg);
  mix-blend-mode: difference;
  z-index: 9998;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
}

body.cursors-ready .cursor-dot,
body.cursors-ready .cursor-circle {
  opacity: 1;
}

body.cursor-hover .cursor-circle {
  width: 150px;
  height: 150px;
}

@media (max-width: 1024px), (hover: none) {
  .cursor-dot,
  .cursor-circle {
    display: none !important;
  }
}

/* ==========================================================================
   INTRO LOADER OVERLAY (Layers 11, 20, 22-27)
   ========================================================================== */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: all;
  clip-path: inset(0% 0% 0% 0%);
  will-change: clip-path, opacity;
}

.intro-loader.is-hidden {
  pointer-events: none;
  visibility: hidden;
}

/* Layer 20: Loader Top Line */
.loader-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  overflow: hidden;
  z-index: 5;
}

.loader-progress-line {
  width: 100%;
  height: 100%;
  background-color: var(--text-taupe);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Layers 22 & 25: Intro Text Loader Stage */
.loader-center-stage {
  position: relative;
  text-align: center;
  will-change: transform, opacity;
}

.loader-text-block {
  text-align: center;
  white-space: nowrap;
}

.loader-text-base {
  color: var(--text-muted);
}

.loader-text-fill {
  position: absolute;
  inset: 0;
  color: var(--text-taupe);
  clip-path: inset(0% 100% 0% 0%);
  will-change: clip-path;
}

.loader-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 65px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.loader-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

/* ==========================================================================
   SCROLL-DRIVEN HERO SECTION (SR7_3511_1)
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  width: 100%;
  /* 280vh gives 180vh of smooth scroll travel while the hero canvas stays locked fixed */
  height: 280vh;
  background-color: var(--bg-clay);
}

.hero-sticky-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-clay);
  perspective: 600px;
  z-index: 10;
}

/* Layer 21: Background Image with perspective & mouse parallax */
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 6;
  perspective: 600px;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-image: url('assets/bg-21.jpg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform-origin: 50% 50%;
  transform: translate3d(0, 0, 0) scale(2);
  opacity: 0;
  will-change: transform, filter, opacity;
}

/* Top Header (Layer 43 Logo & Layer 49-51 Header Links) */
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(28px, 4vw, 50px) clamp(25px, 4.8vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 24;
  pointer-events: none;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
}

.brand-logo-img {
  height: clamp(44px, 5.5vw, 70px);
  width: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: rotate(45deg) scale(1.05);
}

.brand-logo-badge {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge-product {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-deep);
}

.badge-studio {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-espresso);
  opacity: 0.8;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
  padding-top: 6px;
}

.hero-nav-link {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--text-deep);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.hero-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-deep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Layer 18, 12, 19: Headline Text Group (TERRA & FORM -> RABBIT CMS) */
.hero-headline-group {
  position: absolute;
  top: clamp(46px, 5.5vh, 64px);
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  text-align: center;
  z-index: 11;
  width: 90%;
  max-width: 900px;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 65px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-espresso);
  text-transform: uppercase;
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-sub-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.04em;
  color: var(--text-espresso);
  margin-top: 4px;
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

/* Layer 29, 28, 30, 32-34: Scroll-Revealed Center Content */
.hero-reveal-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: min(68%, 920px);
  text-align: center;
  z-index: 12;
  pointer-events: none;
}

.reveal-line-wrap {
  margin-bottom: clamp(24px, 4.5vh, 52px);
}

.reveal-kicker {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--text-espresso);
  transform: translate3d(0, 105%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-statement {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 3.8vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-espresso);
  text-transform: uppercase;
  margin-bottom: clamp(28px, 5vh, 56px);
}

.stmt-line {
  display: block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-cta-row {
  display: flex;
  justify-content: center;
}

.CTA-mask-wrap {
  display: inline-block;
}

/* Slider Revolution CTA Button (Layers 32, 33, 34, 41, 42) */
.sr-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height: 60px;
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
  transform: translate3d(0, 105%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

/* Layer 42: Square Copy (#3D2E24 default background) */
.cta-bg-dark {
  position: absolute;
  inset: 0;
  background-color: var(--bg-clay);
  clip-path: inset(0% 0% 0% 0%);
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

/* Layer 41: Square (#A17D66 hover background) */
.cta-bg-light {
  position: absolute;
  inset: 0;
  background-color: var(--accent-terracotta);
  clip-path: inset(100% 0% 0% 0%);
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 2;
}

.sr-cta-btn:hover .cta-bg-dark {
  clip-path: inset(0% 0% 100% 0%);
}

.sr-cta-btn:hover .cta-bg-light {
  clip-path: inset(0% 0% 0% 0%);
}

.cta-label-wrap {
  position: relative;
  z-index: 3;
  display: block;
  height: 60px;
  line-height: 60px;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-label-normal,
.cta-label-hover {
  display: block;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.cta-label-normal {
  color: var(--bg-cream);
  transform: translateY(0%);
}

.cta-label-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--text-espresso);
  transform: translateY(100%);
}

.sr-cta-btn:hover .cta-label-normal {
  transform: translateY(-100%);
}

.sr-cta-btn:hover .cta-label-hover {
  transform: translateY(0%);
}

/* ==========================================================================
   3D CERAMICS LAYERED PARALLAX STAGE (Layers 5-10, 13-16)
   ========================================================================== */
.ceramics-stage {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  perspective: 600px;
  transform-style: preserve-3d;
}

/* Anchor at bottom-center of the hero viewport, scaled proportionally */
.ceramics-anchor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  transform: scale(var(--sr-scale));
  transform-origin: center bottom;
  transform-style: preserve-3d;
}

.ceramic-group {
  position: absolute;
  left: 0;
  bottom: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Group 14: Bottom Left (x: -131, bottom: 64, w: 224, h: 450) */
.group-bottom-left {
  width: 224px;
  height: 450px;
  margin-left: calc(-112px - 131px);
  bottom: 64px;
  z-index: 14;
}

/* Group 15: Bottom Right (x: +129, bottom: 70, w: 297, h: 320) */
.group-bottom-right {
  width: 297px;
  height: 320px;
  margin-left: calc(-148.5px + 129px);
  bottom: 70px;
  z-index: 13;
}

/* Group 16: Top Right (x: +90, bottom: 395, w: 259, h: 200) */
.group-top-right {
  width: 259px;
  height: 200px;
  margin-left: calc(-129.5px + 90px);
  bottom: 395px;
  z-index: 15;
}

/* Group 13: Top Left (x: -83, bottom: 532, w: 353, h: 140) */
.group-top-left {
  width: 353px;
  height: 140px;
  margin-left: calc(-176.5px - 83px);
  bottom: 532px;
  z-index: 16;
}

.ceramic-item {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.ceramic-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Shadows 9 & 10 under bottom vessels */
.ceramic-shadow {
  position: absolute;
  left: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.shadow-left {
  width: 404px;
  height: 47px;
  bottom: -12px;
  margin-left: calc(-202px + 17px);
}

.shadow-right {
  width: 360px;
  height: 64px;
  bottom: -22px;
  margin-left: calc(-180px + 16px);
}

.ceramic-shadow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   BOTTOM HUD: CONTACT INFO & SCROLL INDICATOR (Layers 37-40, 44, 47, 48)
   ========================================================================== */
.hero-bottom-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(24px, 4vw, 55px) clamp(25px, 4.8vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 23;
  pointer-events: none;
}

.hud-contact {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 50px);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
}

.hud-link {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 500;
  color: var(--text-deep);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}

.hud-link:hover {
  opacity: 0.65;
}

.hud-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  color: var(--text-deep);
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.scroll-arrow-box {
  width: 52px;
  height: 52px;
  border: 2px solid var(--text-deep);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.hud-scroll-btn:hover .scroll-arrow-box {
  background-color: var(--text-deep);
  color: var(--bg-cream);
}

.scroll-arrow-icon {
  animation: arrowBounceLoop 2.05s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes arrowBounceLoop {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  35%, 65% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(120%);
    opacity: 0;
  }
}

/* Scroll Progress Bar */
.hero-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(61, 46, 36, 0.12);
  z-index: 25;
}

.hero-scroll-progress-bar {
  width: 100%;
  height: 100%;
  background-color: var(--text-espresso);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Matching SR7 Breakpoints: 1024, 778, 480)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-reveal-group {
    width: 86%;
  }
}

@media (max-width: 778px) {
  .hero-headline-group {
    top: 110px;
  }
  .brand-logo-badge {
    display: none;
  }
  .hud-phone {
    display: none;
  }
}
