:root {
  --ivory: #f7f1e7;
  --sand: #dfd1bc;
  --taupe: #8e7f70;
  --brown: #3f352d;
  --gold: #b99a5f;
  --deep-gold: #967a4d;
  --mountain-blue: #dce8ec;
  --parallax-x: 0;
  --parallax-y: 0;
  --cmu-serif: "CMU Serif", "Computer Modern Serif", "Latin Modern Roman", Georgia,
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--cmu-serif);
}

.hero {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 2.75rem);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(31, 25, 20, 0),
      rgba(247, 241, 231, 0) 28%,
      rgba(247, 241, 231, 0) 72%,
      rgba(31, 25, 20, 0)
    ),
    linear-gradient(
      180deg,
      rgba(247, 241, 231, 0),
      transparent 42%,
      rgba(28, 23, 18, 0)
    );
  content: "";
  pointer-events: none;
}

.hero__image,
.hero__mist,
.hero__wash,
.hero__curtain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__image {
  z-index: -4;
  background-image: url("./assets/hero-desktop.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: none;
  transform: none;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__mist {
  z-index: -3;
  background:
    radial-gradient(
      circle at calc(50% + var(--parallax-x) * 8%) 45%,
      rgba(247, 241, 231, 0.48),
      rgba(247, 241, 231, 0.14) 34%,
      transparent 62%
    ),
    linear-gradient(
      90deg,
      rgba(220, 232, 236, 0.34),
      rgba(247, 241, 231, 0.12) 38%,
      rgba(185, 154, 95, 0.12) 72%,
      rgba(63, 53, 45, 0.12)
    );
  filter: blur(14px);
  opacity: 0;
  transform:
    translate3d(
      calc(var(--parallax-x) * 10px),
      calc(var(--parallax-y) * 8px),
      0
    )
    scale(1.03);
}

.hero__wash {
  z-index: -2;
  background:
    radial-gradient(
      circle at center,
      rgba(247, 241, 231, 0.18) 0%,
      rgba(247, 241, 231, 0.1) 32%,
      rgba(220, 232, 236, 0.08) 62%,
      rgba(63, 53, 45, 0.1) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 241, 231, 0.12) 0%,
      rgba(247, 241, 231, 0.04) 44%,
      rgba(63, 53, 45, 0.16) 100%
    );
  opacity: 0;
  backdrop-filter: none;
}

.hero__curtain {
  z-index: 10;
  background:
    radial-gradient(circle at center, rgba(247, 241, 231, 0.98), var(--ivory)),
    var(--ivory);
  opacity: 1;
  transition:
    opacity 1300ms ease,
    visibility 1300ms ease;
}

.is-loaded .hero__curtain {
  visibility: hidden;
  opacity: 0;
}

.brand {
  display: grid;
  gap: clamp(0.42rem, 0.9vw, 0.68rem);
  margin: 0 auto clamp(1.15rem, 2vw, 1.6rem);
  place-items: center;
  text-align: center;
  width: 100%;
}

.brand__company,
.brand__presenter {
  margin: 0;
  color: rgba(51, 40, 32, 0.76);
  font-family: var(--cmu-serif);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.brand__company {
  color: #332820;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.08rem, 3.08vw, 2.78rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: none;
  white-space: nowrap;
}

.brand__presenter {
  color: var(--deep-gold);
  font-family: var(--cmu-serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.24em;
}

.brand__logo {
  display: block;
  width: clamp(8.35rem, 17.7vw, 14.85rem);
  margin-top: clamp(0.4rem, 1vw, 0.7rem);
  height: auto;
  filter: drop-shadow(0 0.75rem 1.8rem rgba(30, 24, 19, 0.18));
  justify-self: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 880px);
  margin-inline: auto;
  padding: clamp(4.5rem, 9vh, 7rem) 0 clamp(5rem, 10vh, 7rem);
  text-align: center;
  opacity: 0;
  transform:
    translate3d(
      calc(var(--parallax-x) * 8px),
      calc(20px + var(--parallax-y) * 6px),
      0
    );
}

.is-loaded .hero__content {
  animation: content-rise 1350ms cubic-bezier(0.19, 1, 0.22, 1) 420ms forwards;
}

.hero__kicker,
.hero__location,
.hero__note {
  margin: 0;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero__kicker {
  color: var(--deep-gold);
  font-family: var(--cmu-serif);
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.24em;
}

.hero__location {
  margin-top: clamp(0.6rem, 1.2vw, 0.9rem);
  color: rgba(51, 40, 32, 0.5);
  font-family: var(--cmu-serif);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.contact-button {
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(150, 122, 77, 0.58);
  border-radius: 999px;
  background: rgba(247, 241, 231, 0.46);
  color: #332820;
  cursor: pointer;
  font-family: var(--cmu-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  padding: 0.95rem 1.55rem;
  text-transform: uppercase;
  box-shadow:
    0 0.75rem 2rem rgba(30, 24, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.contact-button:hover {
  border-color: rgba(150, 122, 77, 0.85);
  background: rgba(247, 241, 231, 0.72);
  transform: translateY(-1px);
}

.contact-button:focus-visible,
.contact-modal__close:focus-visible,
.contact-modal a:focus-visible {
  outline: 2px solid rgba(150, 122, 77, 0.72);
  outline-offset: 4px;
}

.hero__note {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 1;
  width: max-content;
  max-width: calc(100vw - 2rem);
  color: #111;
  font-family: var(--cmu-serif);
  font-size: clamp(0.7rem, 1vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: none;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
}

.is-loaded .hero__note {
  animation: load-fade 1050ms cubic-bezier(0.22, 1, 0.36, 1) 800ms forwards;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(31, 25, 20, 0.28);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    backdrop-filter 260ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.contact-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  border: 1px solid rgba(185, 154, 95, 0.34);
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, rgba(255, 251, 244, 0.96), rgba(239, 229, 214, 0.94)),
    var(--ivory);
  padding: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  box-shadow: 0 2rem 5rem rgba(31, 25, 20, 0.24);
  transform: translateY(12px) scale(0.98);
  transition: transform 260ms ease;
}

.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(51, 40, 32, 0.7);
  cursor: pointer;
  font-family: var(--cmu-serif);
  font-size: 1.35rem;
  line-height: 1;
}

.contact-modal__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--deep-gold);
  font-family: var(--cmu-serif);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-modal h2 {
  margin: 0 0 1rem;
  color: #332820;
  font-family: var(--cmu-serif);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.contact-modal a {
  color: #332820;
  font-family: var(--cmu-serif);
  font-size: clamp(0.9rem, 2.8vw, 1.02rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(150, 122, 77, 0.65);
  text-underline-offset: 0.28em;
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform:
      translate3d(
        calc(var(--parallax-x) * 8px),
        calc(20px + var(--parallax-y) * 6px),
        0
      );
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform:
      translate3d(
        calc(var(--parallax-x) * 8px),
        calc(var(--parallax-y) * 6px),
        0
      );
    filter: blur(0);
  }
}

@keyframes load-fade {
  from {
    opacity: 0;
    translate: 0 10px;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 1.25rem;
  }

  .hero__image {
    background-image: url("./assets/hero-mobile.jpg");
    background-position: center;
    transform: none;
  }

  .hero__wash {
    background:
      radial-gradient(
        circle at center,
        rgba(247, 241, 231, 0.22) 0%,
        rgba(247, 241, 231, 0.14) 42%,
        rgba(220, 232, 236, 0.1) 72%,
        rgba(63, 53, 45, 0.14) 100%
      ),
      linear-gradient(
        180deg,
        rgba(247, 241, 231, 0.16) 0%,
        rgba(247, 241, 231, 0.08) 50%,
        rgba(63, 53, 45, 0.18) 100%
      );
  }

  .brand__logo {
    width: clamp(7.45rem, 41vw, 10rem);
  }

  .brand__company,
  .brand__presenter {
    max-width: calc(100vw - 2rem);
    letter-spacing: 0.12em;
  }

  .brand__company {
    font-size: clamp(1.05rem, 5.1vw, 1.24rem);
    letter-spacing: 0;
  }

  .brand__presenter {
    margin-top: 0.12rem;
    font-size: 0.9rem;
  }

  .hero__content {
    width: min(100%, 350px);
    padding: 8vh 0 14vh;
  }

  h1 {
    font-size: clamp(3.25rem, 15.5vw, 4.8rem);
  }

  .hero__kicker {
    letter-spacing: 0.2em;
  }

  .hero__location {
    letter-spacing: 0.14em;
  }

  .hero__note {
    left: 50%;
    bottom: 1.45rem;
    width: max-content;
    max-width: calc(100vw - 1.5rem);
    transform: translateX(-50%);
    font-size: clamp(0.58rem, 2.35vw, 0.66rem);
    letter-spacing: 0.08em;
    text-align: center;
  }
}

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

  .hero__image,
  .hero__mist,
  .hero__content {
    transform: none !important;
  }
}
