/* ======================== CSS CUSTOM PROPERTIES ======================== */
:root {
  --baby-bear: #6a5745;
  --bistre: #3b2c20;
  --black-raspberry: #14130a;
  --forestry: #2f3d20;
  --moss-gardens: #758956;
  --cafe-noir: #4C3D19;
  --kombu-green: #354024;
  --moss-green: #889063;
  --tan: #CFBB99;
  --bone: #E5D7C4;
}

/* ======================== RESET & BASE ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--black-raspberry);
  color: var(--bone);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  cursor: default;
  overflow-x: hidden;
}

::selection {
  background: var(--moss-gardens);
  color: var(--black-raspberry);
}

/* ======================== NOISE OVERLAY ======================== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ======================== CUSTOM CURSOR ======================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--moss-gardens);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--tan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease-out;
  opacity: 0.5;
}

/* ======================== PRELOADER ======================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-raspberry);
}

.preloader-inner {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.preloader-bar {
  width: 4px;
  height: 30px;
  border-radius: 2px;
  animation: preloaderPulse 1s ease-in-out infinite;
}

.preloader-bar:nth-child(1) { background: var(--baby-bear); animation-delay: 0s; }
.preloader-bar:nth-child(2) { background: var(--bistre); animation-delay: 0.1s; }
.preloader-bar:nth-child(3) { background: var(--forestry); animation-delay: 0.2s; }
.preloader-bar:nth-child(4) { background: var(--moss-gardens); animation-delay: 0.3s; }
.preloader-bar:nth-child(5) { background: var(--tan); animation-delay: 0.4s; }

@keyframes preloaderPulse {
  0%, 100% { height: 30px; opacity: 0.4; }
  50% { height: 60px; opacity: 1; }
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ======================== NAV ======================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  transition: mix-blend-mode 0s, padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 10, var(--nav-bg-opacity, 0));
  backdrop-filter: blur(calc(var(--nav-blur, 0) * 1px));
  -webkit-backdrop-filter: blur(calc(var(--nav-blur, 0) * 1px));
  border-bottom: 1px solid rgba(106, 87, 69, calc(var(--nav-bg-opacity, 0) * 0.3));
  z-index: -1;
  transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              backdrop-filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav.nav-scrolled {
  mix-blend-mode: normal;
  padding: 20px 48px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bone);
}

.logo span {
  color: var(--moss-gardens);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--tan);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--moss-gardens);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-bg-blocks {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-block {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  animation: blockReveal 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.bg-block-img {
  overflow: hidden;
}

.bg-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-block:nth-child(1) {
  width: 35vw; height: 45vh;
  right: -5vw; top: 10vh;
  background: var(--bistre);
  animation-delay: 0.8s;
}

.bg-block:nth-child(2) {
  width: 20vw; height: 25vh;
  right: 15vw; bottom: 15vh;
  background: var(--forestry);
  animation-delay: 1s;
}

.bg-block:nth-child(3) {
  width: 12vw; height: 60vh;
  right: 38vw; top: 20vh;
  background: var(--cafe-noir);
  opacity: 0.3;
  animation-delay: 1.2s;
}

.bg-block:nth-child(4) {
  width: 8vw; height: 8vw;
  left: 5vw; bottom: 10vh;
  background: var(--moss-gardens);
  border-radius: 50%;
  animation-delay: 1.4s;
  filter: blur(40px);
  opacity: 0;
}

@keyframes blockReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 0.15; transform: translateY(0) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--moss-gardens);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.6s;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1.0;
  color: var(--bone);
  letter-spacing: -2px;
  overflow: hidden;
}

.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineReveal 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero h1 .line:nth-child(1) { animation-delay: 1.8s; }
.hero h1 .line:nth-child(2) { animation-delay: 2s; }
.hero h1 .line:nth-child(3) { animation-delay: 2.2s; }

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 em {
  font-style: italic;
  color: var(--moss-gardens);
}

.hero-subtitle {
  margin-top: 40px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--tan);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 2.6s;
}

.hero-cta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 2.8s;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid var(--baby-bear);
  color: var(--bone);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.hero-cta a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--forestry);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-cta a:hover::before {
  transform: translateX(0);
}

.hero-cta a span {
  position: relative;
  z-index: 1;
}

.hero-cta a svg {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.hero-cta a:hover svg {
  transform: translateX(6px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 3.2s;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--moss-gardens), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bone);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--baby-bear);
  writing-mode: vertical-rl;
}

/* ======================== SCROLL REVEAL ======================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.nav-scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px; }
  .cursor-dot, .cursor-ring { display: none; }
}
