:root {
  --porcelain: #f5f2eb;
  --ink: #1c1e21;
  --muted: rgba(28, 30, 33, 0.68);
  --smoked-sage: #7a8274;
  --slate-mineral: #a2aab0;
  --ruby: #9b3152;
  --brass: #b69252;
  --rule: rgba(28, 30, 33, 0.18);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--porcelain);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--porcelain);
}

.hero-image, .veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  animation: image-reveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(245, 242, 235, 0.97) 0%, rgba(245, 242, 235, 0.88) 25%, rgba(245, 242, 235, 0.18) 51%, transparent 70%),
    linear-gradient(180deg, rgba(245, 242, 235, 0.22), transparent 35%, rgba(28, 30, 33, 0.06));
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.4rem, 4.8vw, 5.5rem);
}
.site-header { min-height: clamp(5.25rem, 12vh, 7.25rem); border-bottom: 1px solid var(--rule); }

.wordmark { display: block; width: clamp(13rem, 18vw, 17.5rem); height: 3.75rem; }
.wordmark img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.wordmark:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.3rem; box-shadow: 0 0 0 1px var(--brass); }

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.status img { width: 1.5rem; height: 1.5rem; object-fit: contain; animation: breathe 3.4s ease-in-out infinite; }

.hero { display: flex; align-items: center; min-height: 0; padding: clamp(2.3rem, 5vh, 4.5rem) clamp(1.4rem, 4.8vw, 5.5rem); }
.copy { width: min(42vw, 36rem); animation: copy-reveal 1s 180ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 clamp(1.2rem, 2.5vh, 2rem);
  color: var(--ruby);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before { width: 2.75rem; height: 1px; content: ""; background: var(--brass); }

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(3.2rem, 5.25vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 0.99;
}
.intro { max-width: 31rem; margin: clamp(1.25rem, 2.6vh, 1.9rem) 0 0; color: var(--muted); font-size: clamp(0.86rem, 0.95vw, 1rem); line-height: 1.65; }

.signup { max-width: 31rem; margin-top: clamp(2rem, 4vh, 3.2rem); }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.signup label { display: block; margin-bottom: 0.7rem; font-size: 0.67rem; font-weight: 500; letter-spacing: 0.08em; }
.signup-row { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--ink); transition: border-color 180ms ease, box-shadow 180ms ease; }
.signup-row:focus-within { border-color: var(--brass); box-shadow: 0 1px 0 var(--brass), 0 3px 0 var(--ink); }
.signup input, .signup button { min-height: 3rem; border: 0; border-radius: 0; font: 500 0.68rem/1 "Inter", sans-serif; }
.signup input { min-width: 0; padding: 0 1rem 0 0; color: var(--ink); background: transparent; }
.signup input:focus { outline: 0; }
.signup input::placeholder { color: var(--muted); }
.signup button {
  padding: 0 1.2rem;
  color: white;
  background: var(--ink);
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}
.signup button:hover { opacity: 0.84; }
.signup button:disabled { cursor: wait; opacity: 0.62; }
.form-status { min-height: 1rem; margin: 0.55rem 0 0; color: var(--muted); font-size: 0.67rem; line-height: 1.4; }
.form-status[data-state="error"] { color: #7d2a35; }
.form-status[data-state="success"] { color: #47645a; }

.site-footer { min-height: 4.15rem; border-top: 1px solid var(--rule); font-size: 0.55rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { font-family: "Tenor Sans", sans-serif; letter-spacing: 0.08em; text-transform: none; }

@keyframes breathe { 50% { transform: scale(0.82); opacity: 0.58; } }
@keyframes image-reveal { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@keyframes copy-reveal { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .page-shell { min-height: 100svh; overflow: visible; grid-template-rows: 4.9rem minmax(0, 1fr) auto; }
  .hero-image { height: 43svh; object-position: 68% center; }
  .veil { height: 43svh; background: linear-gradient(180deg, rgba(245, 242, 235, 0.18), transparent 52%, var(--porcelain)); }
  .site-header { min-height: 4.9rem; padding-inline: 1.15rem; }
  .wordmark { width: clamp(9rem, 38vw, 10.5rem); height: 3rem; }
  .status { flex: 0 0 auto; gap: 0.45rem; font-size: 0.5rem; letter-spacing: 0.13em; white-space: nowrap; }
  .status img { width: 1.25rem; height: 1.25rem; }
  .hero { align-items: flex-end; padding: calc(43svh - 4.9rem) 1.25rem 1.4rem; }
  .copy { width: 100%; }
  .eyebrow { margin-bottom: 0.85rem; font-size: 0.55rem; }
  .eyebrow::before { width: 2rem; }
  h1 { font-size: clamp(2.55rem, 11.8vw, 4rem); line-height: 1.01; }
  .intro { margin-top: 0.85rem; font-size: 0.78rem; line-height: 1.5; }
  .signup { margin-top: 1.25rem; }
  .signup label { margin-bottom: 0.5rem; font-size: 0.61rem; }
  .signup input, .signup button { min-height: 2.8rem; }
  .site-footer { min-height: 3.5rem; padding-inline: 1.2rem; font-size: 0.48rem; letter-spacing: 0.07em; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (max-width: 380px) {
  .hero-image, .veil { height: 40svh; }
  .hero { padding-top: calc(40svh - 4.9rem); }
  .signup-row { grid-template-columns: 1fr; gap: 0.55rem; border: 0; }
  .signup input { padding-inline: 0; border: 0; }
  .signup button { width: 100%; }
}

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