:root {
  --ink: #104d5e;
  --ink-soft: #546f76;
  --cream: #f4efe6;
  --cream-deep: #e9dfd0;
  --red: #b63b2e;
  --sun: #e5b45e;
  --line: rgba(16, 77, 94, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 77, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 77, 94, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 48px 48px;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 40%, rgba(229, 180, 94, 0.13), transparent 30%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px clamp(24px, 5vw, 80px) 28px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  animation: reveal 700ms ease-out both;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark-image {
  display: block;
  width: clamp(138px, 12vw, 178px);
  height: auto;
}

.status {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--red);
  border-radius: inherit;
  animation: pulse 2.4s ease-out infinite;
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
  padding: clamp(52px, 7vh, 90px) 0;
}

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

.eyebrow {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--red);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  animation: reveal 700ms 100ms ease-out both;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(3.5rem, 5.9vw, 6.35rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.96;
  animation: reveal 850ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.accent-word {
  position: relative;
  display: inline-block;
  color: var(--red);
}

.accent-word::after {
  position: absolute;
  right: 2%;
  bottom: -0.04em;
  left: 2%;
  height: 0.06em;
  border-radius: 100%;
  background: currentColor;
  content: "";
  opacity: 0.35;
  transform: rotate(-1deg);
}

.subhead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  font-weight: 500;
  line-height: 1.5;
  animation: reveal 700ms 280ms ease-out both;
}

.intro {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  animation: reveal 700ms 340ms ease-out both;
}

.waitlist-form {
  display: flex;
  width: min(100%, 590px);
  margin-top: 28px;
  padding: 5px;
  border: 1px solid rgba(16, 77, 94, 0.4);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.78);
  box-shadow: 0 12px 32px rgba(16, 77, 94, 0.07);
  animation: reveal 700ms 400ms ease-out both;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.waitlist-form:focus-within {
  border-color: var(--ink);
  box-shadow:
    0 12px 32px rgba(16, 77, 94, 0.09),
    0 0 0 3px rgba(16, 77, 94, 0.1);
}

.waitlist-form input {
  min-width: 0;
  flex: 1;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.waitlist-form input::placeholder {
  color: var(--ink-soft);
  opacity: 0.78;
}

.waitlist-form .name-input {
  flex: 0.75;
}

.waitlist-form .email-input {
  flex: 1.15;
  border-left: 1px solid rgba(16, 77, 94, 0.2);
}

.waitlist-form button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  background: var(--ink);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.waitlist-form button:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.waitlist-form button:disabled {
  cursor: default;
  opacity: 0.74;
  transform: none;
}

.waitlist-form button:focus-visible,
.practitioner-line a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.form-status {
  min-height: 1.3em;
  margin: 8px 0 0 19px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.3;
}

.form-status.is-error {
  color: var(--red);
}

.practitioner-line {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  animation: reveal 700ms 460ms ease-out both;
}

.practitioner-line a,
.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: rgba(16, 77, 94, 0.35);
  text-underline-offset: 3px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.practitioner-line a:hover,
.site-footer a:hover {
  color: var(--red);
  text-decoration-color: currentColor;
}

.artwork {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 1 / 1.08;
  justify-self: center;
  animation: artwork-reveal 1100ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sun {
  position: absolute;
  top: 0;
  right: 5%;
  width: 47%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
}

.arch {
  position: absolute;
  bottom: 5%;
  border-radius: 50% 50% 4px 4px / 38% 38% 4px 4px;
}

.arch-back {
  right: 2%;
  width: 58%;
  height: 73%;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(244, 239, 230, 0.6), rgba(244, 239, 230, 0.6)),
    repeating-linear-gradient(45deg, transparent 0 13px, var(--line) 13px 14px);
}

.arch-front {
  bottom: 5%;
  left: 4%;
  width: 64%;
  height: 76%;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 18px 22px 0 rgba(182, 59, 46, 0.13);
}

.arch-opening {
  position: absolute;
  right: 15%;
  bottom: 0;
  left: 15%;
  height: 70%;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background: var(--cream);
}

.arch-opening::after {
  position: absolute;
  right: 17%;
  bottom: 0;
  left: 17%;
  height: 72%;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  content: "";
}

.star {
  position: absolute;
  top: 38%;
  left: 50%;
  color: var(--red);
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  line-height: 1;
  transform: translate(-50%, -50%);
}

.ground-line {
  position: absolute;
  right: 0;
  bottom: 5%;
  left: 0;
  z-index: 3;
  height: 1px;
  background: var(--ink);
}

.site-footer {
  justify-content: flex-start;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  animation: reveal 700ms 420ms ease-out both;
}

.site-footer p {
  margin: 0;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes artwork-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

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

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 800px) {
  .page-shell {
    min-height: 100svh;
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    align-content: center;
    padding: 60px 0;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(3.25rem, 14vw, 5.7rem);
  }

  .subhead {
    margin-top: 24px;
  }

  .artwork {
    width: min(82vw, 390px);
  }
}

@media (max-width: 520px) {
  .wordmark-image {
    width: 122px;
  }

  .status {
    gap: 7px;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
  }

  .hero {
    gap: 32px;
    padding: 40px 0 38px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .subhead {
    font-size: 1.12rem;
  }

  h1 {
    font-size: clamp(2.35rem, 11.7vw, 3.1rem);
  }

  .accent-word {
    white-space: nowrap;
  }

  .intro {
    font-size: 0.94rem;
  }

  .waitlist-form {
    display: grid;
    gap: 5px;
    padding: 5px;
    border-radius: 28px;
  }

  .waitlist-form input {
    min-height: 46px;
    padding: 0 16px;
  }

  .waitlist-form .email-input {
    border-top: 1px solid rgba(16, 77, 94, 0.16);
    border-left: 0;
  }

  .waitlist-form button {
    width: 100%;
  }

  .form-status {
    margin-left: 5px;
  }

  .site-footer {
    line-height: 1.6;
  }
}

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