:root {
  --cream: #f7efe3;
  --sand: #f7f3eb;
  --linen: #f7f3eb;
  --warm-beige: #f7f3eb;
  --sage: #465230;
  --sage-soft: #64704a;
  --olive-shadow: rgba(44, 54, 26, 0.18);
  --gold: #ae7f18;
  --gold-soft: #c5a150;
  --text: #42502d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--linen);
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background: var(--linen);
}

body::before,
body::after {
  position: fixed;
  inset: -14vmax;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  display: none;
}

body::after {
  background: linear-gradient(145deg, transparent 0 42%, rgba(118, 127, 87, 0.06) 42% 52%, transparent 52% 100%);
  transform: translate3d(0, 0, 0) rotate(3deg);
}

.site-bg {
  display: none;
}

.wave-layer {
  position: absolute;
  inset: -8% -12%;
  width: 124%;
  height: 116%;
  fill: none;
  transform-origin: center;
  will-change: transform, opacity;
}

.wave-layer path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-layer--back {
  opacity: 0.38;
  animation: waveDriftBack 30s ease-in-out infinite alternate;
}

.wave-layer--back path {
  stroke: rgba(196, 161, 80, 0.36);
  stroke-width: 86;
}

.wave-layer--mid {
  opacity: 0.34;
  animation: waveDriftMid 24s ease-in-out infinite alternate;
}

.wave-layer--mid path {
  stroke: rgba(224, 203, 174, 0.72);
  stroke-width: 124;
}

.wave-layer--front {
  opacity: 0.28;
  animation: waveDriftFront 18s ease-in-out infinite alternate;
}

.wave-layer--front path {
  stroke: rgba(100, 112, 74, 0.24);
  stroke-width: 44;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 72px);
  place-items: center;
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  width: min(100%, 760px);
  transform: translate3d(0, 0, 0);
  animation: contentIn 1300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__logo {
  display: block;
  width: clamp(260px, 55vw, 660px);
  max-height: min(68svh, 690px);
  object-fit: contain;
  filter:
    drop-shadow(0 26px 42px var(--olive-shadow))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.32));
  transform-origin: center;
  animation: logoFloat 7.5s ease-in-out 1.1s infinite;
}

.hero__title {
  position: relative;
  margin: 0;
  color: var(--sage);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: clamp(0.18em, 0.7vw, 0.48em);
  line-height: 1.2;
  text-align: center;
  text-indent: clamp(0.18em, 0.7vw, 0.48em);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: titleIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.hero__title::after {
  display: block;
  width: min(150px, 38vw);
  height: 1px;
  margin: clamp(13px, 2vw, 20px) auto 0;
  background: linear-gradient(90deg, transparent, rgba(174, 127, 24, 0.76), transparent);
  content: "";
  transform-origin: center;
  animation: lineIn 1300ms cubic-bezier(0.22, 1, 0.36, 1) 820ms both;
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleIn {
  from {
    opacity: 0;
    letter-spacing: 0.1em;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: scaleX(0.15);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-0.25deg);
  }
}

@keyframes waveDriftBack {
  from {
    transform: translate3d(-3.6%, -1.2%, 0) scale(1.04);
  }
  to {
    transform: translate3d(3.2%, 1.4%, 0) scale(1.08);
  }
}

@keyframes waveDriftMid {
  from {
    transform: translate3d(2.8%, 1.8%, 0) scale(1.03) rotate(-0.7deg);
  }
  to {
    transform: translate3d(-3.2%, -1.7%, 0) scale(1.06) rotate(0.6deg);
  }
}

@keyframes waveDriftFront {
  from {
    transform: translate3d(-2.4%, 2.2%, 0) scale(1.02) rotate(0.5deg);
  }
  to {
    transform: translate3d(3.6%, -2.2%, 0) scale(1.05) rotate(-0.5deg);
  }
}

@keyframes linenShift {
  from {
    transform: translate3d(-1.5%, -1%, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) rotate(1deg);
  }
}

@keyframes linenShiftReverse {
  from {
    transform: translate3d(1%, -1.4%, 0) rotate(3deg);
  }
  to {
    transform: translate3d(-1%, 1.4%, 0) rotate(0deg);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .hero {
    padding: 28px 20px;
  }

  .hero__logo {
    width: min(88vw, 420px);
    max-height: 66svh;
  }

  .wave-layer--back path {
    stroke-width: 72;
  }

  .wave-layer--mid path {
    stroke-width: 96;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
