:root {
  --night: #050d09;
  --gold: #e9c46a;
  --text: #f4eede;
  --muted: #c3cdbf;
  --red: #f0a08c;
  --display: 'Lalezar', sans-serif;
  --body: 'Readex Pro', sans-serif;
  --pad: clamp(22px, 5vw, 80px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.gold { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 0 var(--pad);
  overflow: hidden;
  isolation: isolate;
}

/* The one visual. Text sits on the dark side of the photo, on both layouts. */
.bg { position: absolute; inset: 0; z-index: -1; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,13,9,.86) 0%, rgba(5,13,9,.55) 42%, rgba(5,13,9,0) 68%, rgba(5,13,9,.7) 100%);
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
}
.brand { color: var(--gold); }
.soon { letter-spacing: 0; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.soon::before { content: ''; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

.copy { padding-top: clamp(16px, 5vh, 56px); max-width: 780px; }
h1 {
  margin: 0;
  font: 400 clamp(64px, 17.5vw, 190px)/0.98 var(--display);
  letter-spacing: -0.01em;
}
.lead {
  margin: clamp(16px, 2.4vh, 28px) 0 0;
  font-size: clamp(17px, 2vw, 24px); line-height: 1.6; color: var(--muted);
  max-width: 22em;
}

form {
  margin-top: clamp(22px, 4vh, 40px);
  display: flex; max-width: 520px;
  border-bottom: 2px solid var(--gold);
}
input[type=email] {
  flex: 1; min-width: 0; height: 60px; padding: 0;
  background: transparent; border: 0; color: var(--text);
  font: 500 20px var(--body); text-align: left;
}
input[type=email]::placeholder { color: #93a595; }
input[type=email]:focus { outline: none; }
form button {
  height: 60px; padding: 0 0 0 4px; margin-inline-start: 16px;
  background: none; border: 0; color: var(--gold); cursor: pointer;
  font: 400 26px var(--display); white-space: nowrap;
}
form button:hover { color: var(--text); }
form button:disabled { opacity: .5; cursor: wait; }
.msg { min-height: 26px; margin: 12px 0 0; font-size: 15px; font-weight: 500; }
.msg.ok { color: var(--gold); }
.msg.err { color: var(--red); }

.foot {
  margin-top: auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px;
  font-size: 13px; color: var(--muted);
}

@media (min-width: 760px) {
  .bg img { object-position: left center; }
  .bg::after {
    background: linear-gradient(to left, rgba(5,13,9,.9) 0%, rgba(5,13,9,.6) 38%, rgba(5,13,9,0) 62%),
                linear-gradient(to top, rgba(5,13,9,.75) 0%, rgba(5,13,9,0) 22%);
  }
  .copy { margin-block: auto; padding-top: 0; }
  h1 { font-size: clamp(96px, 11.5vw, 210px); }
  .foot { margin-top: 0; }
}

/* One slow move on load: the photo settles, the words rise. */
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.bg img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
.top, h1, .lead, .foot { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
h1 { animation-delay: .25s; }
.lead { animation-delay: .4s; }
.foot { animation-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
