/* zamta.io / Worldfold - palette
   night  #0b1517  scrim, page ground
   light  #e4eeea  text, button
   mist   #a6bab5  secondary text
   grout  #3a4c4e  borders
   alert  #ffb4a8  errors                                   */
:root {
  --night: #0b1517;
  --light: #e4eeea;
  --mist: #a6bab5;
  --grout: #3a4c4e;
  --alert: #ffb4a8;
  --font: "Helvetica Neue", "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--light);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- stage: video + scrim + curtain ---------- */
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.backdrop {
  position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(120% 90% at 50% 38%, #1d3438 0%, #112327 52%, #0b1517 100%);
}
.backdrop::after {                       /* faint tile grid, only visible without video */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(228, 238, 234, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 238, 234, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 15%, transparent 100%);
          mask-image: radial-gradient(70% 60% at 50% 45%, #000 15%, transparent 100%);
}
.backdrop video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.backdrop video.is-ready { opacity: 1; }
.scrim {                                  /* keeps text readable over any footage */
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(64% 58% at 50% 50%, rgba(11, 21, 23, .84), rgba(11, 21, 23, .4) 74%),
    linear-gradient(180deg, rgba(11, 21, 23, .8), rgba(11, 21, 23, .4) 9%, rgba(11, 21, 23, 0) 22%, rgba(11, 21, 23, 0) 78%, rgba(11, 21, 23, .6));
}
.curtain {                                /* the one orchestrated moment: fade up from black */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--night);
  animation: curtain 2.2s ease-out .1s forwards;
}
@keyframes curtain { to { opacity: 0; visibility: hidden; } }

/* ---------- header / footer ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.logo { display: block; line-height: 0; }
.logo img {                               /* white logo on transparent ground */
  display: block;
  width: clamp(170px, 21vw, 300px); height: auto;
  mix-blend-mode: screen;                 /* lets the footage shine through the thin strokes */
  opacity: .95;
}
.by { color: var(--mist); font-size: .85rem; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  font-size: .85rem; color: var(--mist);
}
.foot nav { display: flex; gap: 1.25rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- title card ---------- */
.title-card {
  width: 100%; max-width: 44rem; margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; text-align: center;
  animation: card-in 1.4s ease-out .9s both;
}
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lede {
  margin: 0; max-width: 34rem;
  color: var(--mist);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-wrap: pretty;
}

/* small text sits on moving footage: a soft halo keeps it legible */
.lede, .consent, .status, .by {
  text-shadow: 0 0 14px rgba(11, 21, 23, .9), 0 1px 2px rgba(11, 21, 23, .7);
}

/* ---------- signup form ---------- */
.signup { width: 100%; max-width: 34rem; margin-top: 1rem; display: grid; gap: .9rem; }
.field { display: flex; flex-wrap: wrap; gap: .5rem; }
.field input[type="email"] {
  flex: 1 1 15rem; min-width: 0;
  padding: .95rem 1.1rem;
  font: inherit; color: var(--light);
  background: rgba(11, 21, 23, .55);
  border: 1px solid var(--grout); border-radius: .5rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.field input[type="email"]::placeholder { color: var(--mist); opacity: .8; }
.field button {
  flex: 0 0 auto;
  padding: .95rem 1.4rem;
  font: inherit; font-weight: 600; color: var(--night);
  background: var(--light); border: 0; border-radius: .5rem; cursor: pointer;
}
.field button:hover { background: #fff; }
.field button:disabled { opacity: .6; cursor: default; }
input:focus-visible, button:focus-visible, a:focus-visible, .consent input:focus-visible {
  outline: 2px solid var(--light); outline-offset: 2px;
}
.consent {
  display: flex; align-items: flex-start; gap: .65rem;
  text-align: left; font-size: .85rem; line-height: 1.45; color: var(--mist);
}
.consent input {
  flex: none; width: 1.05rem; height: 1.05rem; margin: .15rem 0 0;
  accent-color: var(--light);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { display: flex; justify-content: center; }
.status { min-height: 1.4em; margin: 0; font-size: .9rem; text-wrap: balance; }
.status.is-error { color: var(--alert); }
.status.is-ok { color: var(--light); }
.signup.is-done .field, .signup.is-done .consent, .signup.is-done .turnstile { display: none; }
.signup.is-done .status { font-size: 1.15rem; }

.back { color: var(--mist); font-size: .95rem; }

/* ---------- plain document pages (impressum, datenschutz) ---------- */
.doc { max-width: 42rem; margin: 0 auto; padding: 4rem 1.25rem 6rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.35rem; font-weight: 600; margin: 2.5rem 0 .75rem; }
.doc h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.doc p, .doc li { color: var(--light); font-size: .95rem; line-height: 1.65; }
.doc li { margin-bottom: .35rem; }
.doc a { color: var(--light); text-underline-offset: .15em; overflow-wrap: anywhere; }
.doc .stand, .doc .src { color: var(--mist); }
.doc { overflow-wrap: break-word; }
.notice {
  border: 1px solid var(--alert); color: var(--alert);
  padding: 1rem 1.25rem; border-radius: .5rem;
}

@media (max-width: 520px) {
  .field button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .title-card { animation: none; }
  .backdrop video { transition: none; }
}
