:root {
  --earth: #14150f;
  --earth-soft: #1a1b14;
  --linen: #f1ecdf;
  --linen-muted: #b9b3a4;
  --burnt-gold: #966622;
  --burnt-gold-hover: #ad792d;
  --focus: #d3a65d;
  --page-pad: clamp(1.25rem, 3.2vw, 3.5rem);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--linen);
  background: var(--earth);
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--earth);
}

body {
  position: relative;
  min-width: 17.5rem;
  isolation: isolate;
}

a {
  color: inherit;
}

#amazon-floor-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  contain: strict;
  background:
    radial-gradient(circle at 68% 28%, rgb(188 128 36 / 12%), transparent 20%),
    radial-gradient(circle at 35% 64%, rgb(25 57 38 / 30%), transparent 38%),
    linear-gradient(145deg, #10150d, #050906 65%);
  pointer-events: none;
}

#amazon-floor-background canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewport-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.viewport-shell::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.19'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

.site-header,
.site-action {
  position: absolute;
  z-index: 2;
}

.site-header {
  top: max(var(--page-pad), env(safe-area-inset-top));
  left: max(var(--page-pad), env(safe-area-inset-left));
}

.site-action {
  right: max(var(--page-pad), env(safe-area-inset-right));
  bottom: max(var(--page-pad), env(safe-area-inset-bottom));
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0.15rem 1.4rem rgb(0 0 0 / 90%);
}

.center-stage {
  display: grid;
  width: 100%;
  height: 100%;
  padding: calc(var(--page-pad) + 3rem) var(--page-pad);
  place-items: center;
  text-align: center;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6.4vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-shadow: 0 0.18em 0.85em rgb(0 0 0 / 82%);
  text-wrap: balance;
}

.contact-stage {
  display: block;
  overflow-y: auto;
  align-content: initial;
  padding-block: clamp(4.8rem, 10vh, 7rem);
  place-items: initial;
  text-align: left;
}

.contact-layout {
  display: grid;
  width: min(100%, 67rem);
  min-height: 100%;
  margin-inline: auto;
  align-items: center;
  grid-template-columns: minmax(0, 0.82fr) minmax(28rem, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-copy {
  display: grid;
  justify-items: start;
  gap: clamp(0.7rem, 1.6vh, 1.15rem);
}

.contact-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 4.8vw, 5.1rem);
  line-height: 0.94;
  text-align: left;
}

.contact-copy-intro {
  max-width: 30rem;
  margin: 0;
  color: var(--linen-muted);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.55;
  text-shadow: 0 0.15rem 0.8rem rgb(0 0 0 / 90%);
}

.inquiry-form {
  position: relative;
  display: grid;
  width: 100%;
  gap: 0.72rem;
  padding: clamp(0.85rem, 1.5vw, 1.2rem);
  border: 1px solid rgb(241 236 223 / 16%);
  border-radius: 1.25rem;
  background: rgb(8 12 9 / 74%);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 26%);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 0.75rem;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: rgb(241 236 223 / 78%);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(241 236 223 / 18%);
  border-radius: 0.65rem;
  outline: 0;
  background: rgb(241 236 223 / 7%);
  color: var(--linen);
  font: inherit;
  font-size: 0.83rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.form-field input,
.form-field select {
  height: 2.65rem;
  padding: 0 0.72rem;
}

.form-field select {
  padding-right: 2rem;
}

.form-field textarea {
  height: 4.8rem;
  padding: 0.65rem 0.72rem;
  line-height: 1.4;
  resize: none;
}

.form-field option {
  background: var(--earth);
  color: var(--linen);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgb(241 236 223 / 34%);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--focus);
  background: rgb(241 236 223 / 10%);
  box-shadow: 0 0 0 3px rgb(211 166 93 / 14%);
}

.form-actions {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.8rem;
}

.form-security { min-width: 0; display: grid; gap: 0.4rem; }
.security-retry {
  justify-self: start;
  border: 0;
  padding: 0;
  background: none;
  color: var(--linen);
  font: inherit;
  font-size: 0.73rem;
  text-decoration: underline;
  cursor: pointer;
}
.security-retry[hidden] { display: none; }

.submit-button {
  display: inline-flex;
  min-height: 2.7rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 999px;
  background: var(--burnt-gold);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 20%);
  color: #fff8e9;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background-color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.submit-button:hover:not(:disabled) {
  background: var(--burnt-gold-hover);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--linen-muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.form-status[data-state="sent"] {
  color: #b9deb9;
}

.form-status[data-state="error"] {
  color: #e1b0a1;
}

.form-note {
  margin: 0;
  color: rgb(185 179 164 / 68%);
  font-size: 0.65rem;
  line-height: 1.35;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  color: var(--linen-muted);
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0.15rem 0.8rem rgb(0 0 0 / 90%);
}

.contact-button {
  display: inline-flex;
  min-width: 6.6rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 999px;
  background: var(--burnt-gold);
  box-shadow: 0 0.75rem 2.5rem rgb(0 0 0 / 20%);
  color: #fff8e9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
}

.contact-button:hover {
  background: var(--burnt-gold-hover);
  transform: translateY(-2px);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.25rem;
  background: var(--linen);
  color: var(--earth);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-height: 34rem) {
  :root {
    --page-pad: 1rem;
  }

  .center-stage {
    padding-block: 4.25rem;
  }

  .contact-stage {
    padding-block: 3.75rem;
  }

  .contact-copy h1 {
    font-size: clamp(1.7rem, 7.5vh, 2.6rem);
  }

  .contact-copy-intro {
    display: none;
  }

  .inquiry-form {
    gap: 0.45rem;
    padding: 0.65rem;
  }

  .form-grid {
    gap: 0.42rem 0.55rem;
  }

  .form-field input,
  .form-field select {
    height: 2.25rem;
  }

  .form-field textarea {
    height: 2.8rem;
  }

  .form-actions {
    min-height: 2.35rem;
  }

  .submit-button {
    min-height: 2.35rem;
    padding-block: 0.58rem;
  }

  .contact-button {
    min-height: 2.65rem;
    padding-block: 0.7rem;
  }
}

@media (max-width: 50rem) {
  .contact-stage {
    padding-block: 4.35rem;
  }

  .contact-layout {
    align-content: center;
    grid-template-columns: 1fr;
    gap: clamp(0.7rem, 2vh, 1.15rem);
  }

  .contact-copy {
    gap: 0.48rem;
  }

  .contact-copy h1 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 7vw, 3.15rem);
  }

  .contact-copy-intro {
    font-size: 0.8rem;
  }
}

@media (max-width: 24rem) {
  .contact-stage {
    padding-inline: 0.75rem;
  }

  .inquiry-form {
    padding: 0.68rem;
  }

  .form-grid {
    gap-inline: 0.45rem;
  }

  .form-field label {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 0.75rem;
  }
}

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