:root {
  --bg: #f5e8cb;
  --bg-deep: #ecd7af;
  --accent: #e6492c;
  --headline-red: #e6492c;
  --accent-soft: rgba(230, 73, 44, 0.16);
  --text: #7b3a27;
  --text-muted: rgba(123, 58, 39, 0.74);
  --page-background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.55), transparent 24%),
    radial-gradient(circle at 82% 85%, rgba(230, 73, 44, 0.11), transparent 26%),
    linear-gradient(135deg, var(--bg) 0%, #f7edd6 42%, var(--bg-deep) 100%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
}

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

body {
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--page-background);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  overscroll-behavior-y: none;
  position: relative;
  isolation: isolate;
}

.viewport-tint {
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.viewport-tint-top {
  top: 0;
  height: max(132px, calc(env(safe-area-inset-top) + 104px));
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(245, 232, 203, 0.98) 54%,
    rgba(245, 232, 203, 0.72) 78%,
    rgba(245, 232, 203, 0) 100%
  );
}

.viewport-tint-bottom {
  bottom: 0;
  height: max(148px, calc(env(safe-area-inset-bottom) + 112px));
  background: linear-gradient(
    0deg,
    var(--bg) 0%,
    rgba(245, 232, 203, 0.98) 54%,
    rgba(245, 232, 203, 0.72) 78%,
    rgba(245, 232, 203, 0) 100%
  );
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(32px + env(safe-area-inset-top))
    calc(20px + env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom))
    calc(20px + env(safe-area-inset-left));
  isolation: isolate;
  z-index: 1;
}

.ambient {
  position: absolute;
  width: 34vw;
  height: 34vw;
  max-width: 420px;
  max-height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 73, 44, 0.16), transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite;
}

.ambient-left {
  top: 5%;
  left: -8%;
}

.ambient-right {
  right: -10%;
  bottom: 2%;
  animation-delay: -6s;
}

.hero {
  position: relative;
  width: min(100%, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--headline-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.9s ease 0.05s forwards;
}

.logo-wrap {
  position: relative;
  width: min(100%, 520px);
  padding-inline: 14px;
  margin: 0 auto 18px;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 16% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 73, 44, 0.17), transparent 72%);
  filter: blur(30px);
  z-index: -1;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(185, 80, 46, 0.18));
  opacity: 0;
  animation:
    fade-up 0.9s ease 0.18s forwards,
    float 5.2s ease-in-out 1.2s infinite;
}

.headline {
  margin: 0;
  min-height: 1.2em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.24em;
  color: var(--headline-red);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.headline .word {
  display: inline-flex;
}

.headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-char 0.46s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.tagline {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.9vw, 1.16rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0;
  animation: fade-up 0.9s ease 1.4s forwards;
}

@keyframes reveal-char {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -16px, 0) scale(1.04);
  }
}

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

  .page-shell {
    padding:
      calc(28px + env(safe-area-inset-top))
      calc(16px + env(safe-area-inset-right))
      calc(28px + env(safe-area-inset-bottom))
      calc(16px + env(safe-area-inset-left));
  }

  .eyebrow {
    margin-bottom: 20px;
    letter-spacing: 0.22em;
  }

  .logo-wrap {
    width: min(100%, 360px);
    margin-bottom: 14px;
  }

  .headline {
    gap: 0.18em;
    letter-spacing: 0.1em;
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  .tagline {
    letter-spacing: 0.12em;
  }
}

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