:root {
  --background: #f8f1e9;
  --foreground: #6f4e37;
  --border: #d6c1a8;
  --nude: #e7d7c8;
  --sand: #d6c1a8;
  --taupe: #b8967a;
  --champagne: #a67f5f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
}

body {
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #b8967a;
  color: #fff;
}

.experience {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 5.2%;
  background:
    radial-gradient(ellipse at 81% 43%, #dfc5a885, transparent 48%),
    linear-gradient(115deg, #f8f1e9 35%, #eee1d3);
}

.experience::after {
  content: "";
  position: absolute;
  width: 68vw;
  height: 110%;
  top: -35%;
  right: -28%;
  pointer-events: none;
  transform: rotate(-28deg);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 75px,
    #6f4e3710 90px 125px,
    transparent 142px 205px
  );
  filter: blur(16px);
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 118px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #6f4e3726;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 35px;
  letter-spacing: 0;
}

.wordmark span {
  font: 12px "Manrope", Arial, sans-serif;
  letter-spacing: 3px;
  border-left: 1px solid #6f4e3750;
  padding-left: 21px;
}

.status {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  letter-spacing: 2.5px;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a674b;
  box-shadow: 0 0 0 5px #a67f5f12;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3vw;
  width: 100%;
  max-width: 1600px;
  margin: auto;
  padding: 64px 0 72px;
  position: relative;
  z-index: 1;
}

.copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  letter-spacing: 2.8px;
  margin: 0 0 28px;
  animation-delay: 1.45s !important;
}

.eyebrow span {
  display: block;
  width: 31px;
  height: 1px;
  background: var(--champagne);
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.5rem, 5.65vw, 6rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.99;
  margin: 0;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.04em;
}

.line > span {
  display: block;
  animation: text-in 1.25s cubic-bezier(0.2, 0.65, 0.2, 1) both;
  animation-delay: 1.5s;
}

.line:nth-child(2) > span {
  animation-delay: 1.64s;
}

.line:nth-child(3) > span {
  animation-delay: 1.78s;
}

.line:nth-child(4) > span {
  animation-delay: 1.92s;
}

.italic {
  font-style: italic;
  color: #957052;
}

.support {
  font-size: 16px;
  line-height: 1.9;
  margin: 27px 0 0;
  color: #806853;
  animation-delay: 2.15s !important;
}

.invitation {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-top: 34px;
  animation-delay: 2.35s !important;
}

.sparkle {
  font-size: 25px;
  color: var(--champagne);
}

.identity {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  animation: identity-in 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.halo {
  position: absolute;
  border: 1px solid #a67f5f42;
  border-radius: 50%;
  pointer-events: none;
}

.outer {
  inset: 0;
}

.inner {
  inset: 4%;
  border-color: #a67f5f22;
}

.logo-stage {
  position: relative;
  width: 75%;
  transform-style: preserve-3d;
  transform: translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 24px)
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-logo {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(30px);
  backface-visibility: hidden;
  filter:
    drop-shadow(0 2px 0 #9c674332)
    drop-shadow(0 20px 19px #8b583130);
}

.logo-light {
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse, #fffaf1 0%, #fffaf140 40%, transparent 66%);
  transform: translateZ(-30px);
  animation: light-breathe 8s ease-in-out 3s infinite alternate;
}

.identity-caption {
  position: absolute;
  bottom: 19%;
  font-size: 12px;
  letter-spacing: 3px;
}

.orbit-float,
.orbit-rotate {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-float {
  animation: orbit-float 9s ease-in-out 3s infinite;
}

.orbit-rotate {
  animation: orbit-turn 80s linear 3s infinite;
}

.orbit-point {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #a67f5f;
  border-radius: 50%;
  left: 14.6447%;
  top: 14.6447%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px #f1e5d9;
}

.footer {
  min-height: 95px;
  border-top: 1px solid #6f4e3726;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 2;
  animation-delay: 2.45s !important;
}

.footer > span:first-child {
  font-size: 12px;
  letter-spacing: 2.3px;
}

.footer b {
  font-weight: 400;
  margin: 0 12px;
}

.footer-note {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 19px;
}

.signature {
  font: 24px "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}

.reveal {
  animation: fade-in 1.2s ease both;
  animation-delay: 1.25s;
}

.curtain {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50.1%;
  z-index: 10;
  pointer-events: none;
  background: #6f4e37;
  animation: curtain-open 1.55s cubic-bezier(0.77, 0, 0.18, 1) 0.55s both;
}

.left {
  left: 0;
  background: linear-gradient(90deg, #483020, #6f4e37);
}

.right {
  right: 0;
  background: linear-gradient(90deg, #6f4e37, #483020);
  --direction: 1;
}

.opening-line {
  position: fixed;
  z-index: 11;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 160px;
  background: #e7d7c8;
  pointer-events: none;
  animation: opening-line 1.35s ease both;
}

@keyframes curtain-open {
  to {
    transform: translateX(calc(var(--direction, -1) * 101%));
    visibility: hidden;
  }
}

@keyframes opening-line {
  0% {
    transform: translateY(-50%) scaleY(0);
    opacity: 0;
  }
  35% {
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
  }
  70% {
    transform: translateY(-50%) scaleY(6);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-50%) scaleY(8);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes text-in {
  from {
    transform: translateY(110%) rotate(2deg);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes identity-in {
  from {
    opacity: 0;
    transform: scale(0.84);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes light-breathe {
  to {
    transform: scale(1.1) translateZ(-30px);
    opacity: 0.5;
  }
}

@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-float {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-6px) rotateX(3deg);
  }
}

@media (min-width: 1500px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

@media (max-width: 760px) {
  .experience {
    padding: 0 7%;
  }

  .masthead {
    min-height: 85px;
  }

  .wordmark {
    font-size: 29px;
    gap: 12px;
  }

  .wordmark span {
    max-width: 90px;
    line-height: 1.6;
    font-size: 10px;
    letter-spacing: 1.7px;
    padding-left: 12px;
  }

  .status {
    font-size: 10px;
    letter-spacing: 1.4px;
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0 36px;
    gap: 32px;
  }

  .copy {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(3.1rem, 10.5vw, 4.7rem);
  }

  .support {
    font-size: 16px;
    margin-top: 20px;
  }

  .invitation {
    justify-content: center;
    margin-top: 19px;
    font-size: 12px;
  }

  .identity {
    width: min(76%, 340px);
    margin: 0 auto;
  }

  .identity-caption {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .footer {
    min-height: 110px;
    padding: 22px 0;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .footer > span:first-child {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .footer-note {
    font-size: 17px;
  }

  .signature {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .curtain,
  .opening-line {
    display: none;
  }

  .logo-stage {
    transform: none;
    transition: none;
    will-change: auto;
  }

  .hero-logo {
    transform: none;
  }
}
