:root {
  --ground: #d1b892;
  --ground-deep: #c4a67c;
  --ground-light: #e0ccaa;
  --chocolate: #5d3a1a;
  --chocolate-soft: #7a5533;
  --flour: #f4ebe0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--chocolate);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, var(--ground) 0%, transparent 62%),
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(224, 204, 170, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(93, 58, 26, 0.1) 0%, transparent 55%),
    var(--ground);
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  z-index: 1;
  animation: grain-shift 12s steps(6) infinite;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  gap: 0;
}

.banner {
  margin: 0 0 clamp(1.25rem, 3.5vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chocolate-soft);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.brand {
  margin: 0;
  max-width: min(42rem, 92vw);
  opacity: 0;
  animation: rise 1s var(--ease) 0.28s forwards;
}

.wordmark {
  width: 100%;
  height: auto;
  display: block;
  animation: soft-breathe 7s var(--ease) 1.2s infinite;
}

.hint {
  margin: clamp(1.35rem, 3.2vw, 2rem) 0 0;
  max-width: 26rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  line-height: 1.35;
  color: var(--chocolate);
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.45s forwards;
}

.inquire {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: clamp(1.6rem, 3.5vw, 2.25rem);
  width: min(100%, 22rem);
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.62s forwards;
}

.inquire .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inquire button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.thanks {
  margin: clamp(1.6rem, 3.5vw, 2.25rem) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--chocolate);
}

.inquire input {
  flex: 1 1 10rem;
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(93, 58, 26, 0.28);
  background: color-mix(in srgb, var(--flour) 72%, transparent);
  color: var(--chocolate);
  border-radius: 2px;
  padding: 0.72rem 0.9rem;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.inquire input::placeholder {
  color: var(--chocolate-soft);
  opacity: 0.75;
}

.inquire input:focus {
  border-color: var(--chocolate);
  background: var(--flour);
  box-shadow: 0 0 0 3px rgba(93, 58, 26, 0.12);
}

.inquire button {
  appearance: none;
  border: 1px solid var(--chocolate);
  background: var(--chocolate);
  color: var(--flour);
  border-radius: 2px;
  padding: 0.72rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.inquire button:hover,
.inquire button:focus-visible {
  background: transparent;
  color: var(--chocolate);
}

.inquire button:active {
  transform: translateY(1px);
}

.mail-line {
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.78s forwards;
}

.mail-line a {
  color: var(--chocolate-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease);
}

.mail-line a:hover,
.mail-line a:focus-visible {
  color: var(--chocolate);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes soft-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-1.5%, 1%);
  }
  40% {
    transform: translate(1%, -1.5%);
  }
  60% {
    transform: translate(-1%, -1%);
  }
  80% {
    transform: translate(1.5%, 0.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .wordmark,
  .banner,
  .brand,
  .hint,
  .inquire,
  .mail-line {
    animation: none !important;
  }

  .banner,
  .brand,
  .hint,
  .inquire,
  .mail-line {
    opacity: 1;
    transform: none;
  }
}

/* Stable capture for screenshots (?shot=1) */
html.shot .grain,
html.shot .wordmark,
html.shot .banner,
html.shot .brand,
html.shot .hint,
html.shot .inquire,
html.shot .mail-line {
  animation: none !important;
}

html.shot .banner,
html.shot .brand,
html.shot .hint,
html.shot .inquire,
html.shot .mail-line {
  opacity: 1;
  transform: none;
}
