/* ── Base Styles ── */
body {
  font-family: var(--font-body);
  background: var(--warm-linen);
  color: var(--espresso);
  overflow-x: hidden;
  cursor: default;
}

/* Typography Scale */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; }
h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; }

p { font-size: 1rem; line-height: 1.75; color: var(--clay); }

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
}

/* Selection */
::selection {
  background: var(--terracotta);
  color: var(--cream);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }

/* ── HERO TEXT ANIMATION ── */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(3deg);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.hero.loaded .anim-word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
/* Stagger each word */
.anim-word:nth-child(1) { transition-delay: 0.1s; }
.anim-word:nth-child(2) { transition-delay: 0.18s; }
.anim-word:nth-child(3) { transition-delay: 0.26s; }
.anim-word:nth-child(4) { transition-delay: 0.34s; }
.anim-word:nth-child(5) { transition-delay: 0.42s; }
.anim-word:nth-child(6) { transition-delay: 0.55s; }

.anim-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hero.loaded .anim-slide-up {
  opacity: 1;
  transform: translateY(0);
}
.anim-slide-up--delay { transition-delay: 0.7s !important; }
.anim-slide-up--delay2 { transition-delay: 0.9s !important; }

/* ── FLOATING DECORATIVE ELEMENTS ── */
.floaters {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.floater {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: floatDrift linear infinite;
}
.floater--1 {
  width: 300px; height: 300px;
  background: var(--terracotta);
  top: 10%; left: -5%;
  animation-duration: 18s;
}
.floater--2 {
  width: 120px; height: 120px;
  background: var(--ochre);
  top: 60%; right: 5%;
  animation-duration: 14s;
  animation-delay: -4s;
}
.floater--3 {
  width: 80px; height: 80px;
  background: var(--clay);
  top: 30%; left: 45%;
  animation-duration: 20s;
  animation-delay: -8s;
}
.floater--4 {
  width: 200px; height: 200px;
  background: var(--ochre);
  bottom: 5%; left: 30%;
  animation-duration: 22s;
  animation-delay: -12s;
  opacity: 0.06;
}
.floater--5 {
  width: 60px; height: 60px;
  background: var(--terracotta);
  top: 15%; right: 20%;
  animation-duration: 16s;
  animation-delay: -6s;
  opacity: 0.08;
}

@keyframes floatDrift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── MARQUEE TICKER ── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  background: var(--soft-taupe);
  border-top: 1px solid rgba(44, 36, 32, 0.06);
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
}
.marquee--dark {
  background: var(--espresso);
}
.marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
}
.marquee--reverse .marquee__track {
  animation-direction: reverse;
}
.marquee__track span {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--clay);
  padding: 0 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.marquee--dark .marquee__track span {
  color: rgba(250, 247, 244, 0.4);
}
.marquee__dot {
  font-size: 0.5rem !important;
  display: inline-flex !important;
  align-items: center;
  color: var(--terracotta) !important;
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SCROLL ARROW ── */
.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(45deg);
  opacity: 0.3;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.3; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.6; }
}

/* ── MAGNETIC BUTTON EFFECT ── */
.btn--magnetic {
  transition: all 0.3s var(--ease-out), transform 0.15s ease-out;
  will-change: transform;
}

/* ── PARALLAX IMAGE ── */
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── CUSTOM CURSOR (desktop only) ── */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, margin 0.3s, opacity 0.3s;
    margin-left: -4px;
    margin-top: -4px;
    mix-blend-mode: difference;
  }
  .cursor-dot.hovering {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    opacity: 0.5;
  }
}
