:root {
  --void: #070707;
  --ink: #f6f1ea;
  --mute: #9d968c;
  --wine: #9c1f2d;
  --wine-2: #c43b48;
  --line: rgba(246, 241, 234, 0.16);
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-ui: "Syne", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background: var(--void);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.08) brightness(0.45);
  transform: scale(1.04);
  animation: drift 28s ease-in-out infinite alternate;
}

.stage-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.55) 48%, rgba(7, 7, 7, 0.78) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(156, 31, 45, 0.28), transparent 55%);
}

.stage-rail {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(34vw, 420px);
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 0.35rem;
  padding: 5.5rem 1rem 1rem 0;
  opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}

.stage-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  animation: rise 1.2s ease both;
}

.stage-rail img:nth-child(2) {
  animation-delay: 0.08s;
}
.stage-rail img:nth-child(3) {
  animation-delay: 0.16s;
}
.stage-rail img:nth-child(4) {
  animation-delay: 0.24s;
}
.stage-rail img:nth-child(5) {
  animation-delay: 0.32s;
}
.stage-rail img:nth-child(6) {
  animation-delay: 0.4s;
}

.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3.5vw;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav a.on,
.nav a:hover {
  color: var(--ink);
}

.nav-x {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
}

.panel {
  position: relative;
  z-index: 10;
  width: min(560px, 92vw);
  margin: 8vh 0 12vh 3.5vw;
  padding: 1.5rem 0 2rem;
  animation: rise 0.9s ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.25rem 0 1.75rem;
  max-width: 34ch;
  color: var(--mute);
  font-size: 1.02rem;
  line-height: 1.55;
}

.wl-form {
  display: grid;
  gap: 0.75rem;
}

.wl-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.72);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 1rem 1.05rem;
  outline: none;
  backdrop-filter: blur(10px);
}

.wl-form input:focus {
  border-color: rgba(246, 241, 234, 0.45);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--void);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 1rem 1.2rem;
  transition: 0.2s ease;
}

.btn:hover {
  background: #fff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.status {
  min-height: 1.4em;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.status.ok {
  color: #d7f5c8;
}

.status.bad {
  color: #ffb4b4;
}

.fine {
  margin: 0.85rem 0 0;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 42ch;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-2%, 1%, 0);
  }
}

@media (max-width: 820px) {
  .stage-rail {
    display: none;
  }

  .panel {
    margin-top: 12vh;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }
}
