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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0C0A08;
  color: #CFC8BA;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

/* ===========================
   Entrance animations
   =========================== */

.copper-band,
.cta {
  opacity: 0;
  transform: translateY(16px);
}

body.loaded .copper-band {
  animation: bandReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

body.loaded .cta {
  animation: fadeUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.85s forwards;
}

body.loaded .footer-mark {
  animation: fadeIn 0.6s ease 1.1s forwards;
}

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

@keyframes bandReveal {
  0% { opacity: 1; transform: translateY(0) scaleX(0); }
  55% { opacity: 1; transform: translateY(0) scaleX(1); }
  100% { opacity: 1; transform: translateY(0) scaleX(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wordmark,
.category {
  opacity: 0;
}

body.loaded .wordmark {
  animation: fadeIn 0.35s ease 0.7s forwards;
}

body.loaded .category {
  animation: fadeIn 0.35s ease 0.85s forwards;
}

/* ===========================
   Copper band — unified brand lockup
   =========================== */

.copper-band {
  --sheen-x: 50%;
  --sheen-y: 50%;
  width: 100vw;
  position: relative;
  padding: 36px 48px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  transform-origin: center;
  cursor: default;

  background:
    radial-gradient(
      ellipse 500px 180px at var(--sheen-x) var(--sheen-y),
      rgba(232, 184, 150, 0.18) 0%,
      rgba(212, 149, 106, 0.06) 45%,
      transparent 70%
    ),
    linear-gradient(
      90deg,
      #4A2512 0%,
      #6B3A1F 8%,
      #8B4F2D 16%,
      #B87333 35%,
      #D4956A 48%,
      #E8B896 52%,
      #D4956A 56%,
      #B87333 70%,
      #8B4F2D 84%,
      #6B3A1F 92%,
      #4A2512 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(232, 184, 150, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wordmark {
  font-size: clamp(34px, 7.5vw, 58px);
  font-weight: 700;
  color: #0C0A08;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(232, 184, 150, 0.06),
    0 -1px 0 rgba(0, 0, 0, 0.08);
}

.category {
  font-weight: 600;
  font-size: clamp(12px, 2vw, 16px);
  color: rgba(12, 10, 8, 0.7);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
}

/* ===========================
   Contact form — vertical stack
   =========================== */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  padding: 0 24px;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: #5A5650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

label .optional {
  text-transform: none;
  font-weight: 400;
  color: #3D3A36;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  background: #141210;
  border: 1px solid rgba(207, 200, 186, 0.07);
  border-radius: 4px;
  color: #CFC8BA;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

input:focus {
  border-color: rgba(184, 115, 51, 0.4);
}

input::placeholder {
  color: rgba(207, 200, 186, 0.18);
}

/* ===========================
   Submit + messages
   =========================== */

button[type="submit"] {
  margin-top: 8px;
  padding: 14px 24px;
  background: #B87333;
  color: #0C0A08;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-appearance: none;
}

button[type="submit"]:hover {
  background: #CC8340;
}

button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.success {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  color: #8B8377;
  letter-spacing: 0.04em;
  padding: 24px 0;
}

.error {
  font-size: 12px;
  font-weight: 400;
  color: #C4634A;
  margin-top: 8px;
}

/* ===========================
   Footer
   =========================== */

footer {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  opacity: 0;
  color: rgba(184, 115, 51, 0.45);
  transition: color 0.3s ease;
}

.footer-mark:hover {
  color: rgba(184, 115, 51, 0.75);
}

.footer-mark svg {
  display: block;
}

.footer-text {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  color: rgba(207, 200, 186, 0.2);
  letter-spacing: 0.06em;
}

/* ===========================
   Mobile
   =========================== */

@media (max-width: 520px) {
  main {
    padding: 48px 0;
  }

  .copper-band {
    padding: 28px 20px 22px;
    margin-bottom: 36px;
  }

  .category {
    letter-spacing: 0.2em;
  }
}

/* Skip animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .copper-band,
  .cta,
  .wordmark,
  .category,
  .footer-mark {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
