:root {
  /* Sampled from the wristband photo: matte black body, warm charcoal
     backdrop, soft graded highlight on the lit floor beneath it. */
  --bg: #0c0c0c;
  --bg-2: #1a1918;
  --surface: #302e2b;
  --text: #f4f1ea;
  --text-dim: rgba(244, 241, 234, 0.62);
  --accent: #93918d;
  --accent-light: #a8a59f;
  --accent-dark: #7d7b76;
  --accent-text: #0c0c0c;
  --error: #b5675a;
  --shadow-soft: 0 24px 50px rgba(0, 0, 0, 0.5);
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Background motion */
.bg-motion {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 20%, rgba(147, 145, 141, 0.12), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(147, 145, 141, 0.06), transparent 60%),
    var(--bg);
  background-size: 160% 160%;
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { background-position: 0% 0%, 100% 100%, 0 0; }
  100% { background-position: 20% 15%, 80% 85%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-motion {
    animation: none;
  }
}

/* Dev banner */
.dev-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-text);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* Layout */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1.25rem 2rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
  margin: auto 0 2.5rem;
}

/* Logo */
.logo {
  width: 130px;
  height: auto;
  margin-bottom: 2rem;
  filter: invert(1) brightness(1.05);
  mix-blend-mode: screen;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.05s forwards;
}

.logo.logo--missing {
  display: none;
}

.logo-placeholder {
  display: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.05s forwards;
}

.logo-placeholder.is-visible {
  display: block;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.22;
  margin: 0 0 1.25rem;
}

.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease forwards;
}

.headline .line:nth-child(1) { animation-delay: 0.15s; }
.headline .line:nth-child(2) { animation-delay: 0.32s; }
.headline .line:nth-child(3) { animation-delay: 0.49s; }

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

.support {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.62s forwards;
}

/* Form */
.signup-form {
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.75s forwards;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: var(--bg-2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

input[type="email"]::placeholder {
  color: rgba(244, 241, 234, 0.4);
}

input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input[type="email"].is-invalid {
  border-color: var(--error);
}

.cta-button {
  width: 100%;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--accent-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-soft);
}

.cta-button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.cta-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.form-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.form-message {
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.6rem 0 0;
}

.form-message.success { color: var(--text); font-weight: 600; }
.form-message.error { color: var(--error); }

/* Rotator */
.rotator {
  margin-top: 2.25rem;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.9s forwards;
}

.rotator-line {
  color: var(--accent);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 34ch;
  transition: opacity 0.5s ease;
}

.rotator-line.is-fading {
  opacity: 0;
}

/* Scroll reveal (shared) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Featured wristband — the photo is the grading; its edges dissolve
   into the page so there is no visible frame. Still and video share
   the same 4:3 frame, so the full band and its pool of light are
   always in view, centred with even negative space. */
.feature {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 2rem auto 0;
  text-align: center;
}

/* Start frame sits beneath the video. The video ends on black, so
   fading it out lifts the black up into the start frame again. */
.feature-base {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  /* Hidden while the video plays: the mask's feathered edges are
     semi-transparent, so a visible base would ghost through them. */
  opacity: 0;
}

.feature.video-done .feature-base {
  opacity: 1;
}

.feature-video {
  position: relative;
  transition: opacity 1.6s ease;
}

.feature.video-done .feature-video {
  opacity: 0;
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Lift the exposure so the engraved lettering reads clearly;
     applies equally to the still and the video. Contrast eased
     slightly so shadow detail (the inner lettering) stays open. */
  filter: brightness(1.7) contrast(0.92);
  /* Fade begins outside the band's glow so the subject is never
     dimmed, only the empty backdrop dissolves into the page. */
  -webkit-mask-image: radial-gradient(
    ellipse 62% 56% at 50% 50%,
    black 45%,
    transparent 88%
  );
  mask-image: radial-gradient(
    ellipse 62% 56% at 50% 50%,
    black 45%,
    transparent 88%
  );
}

.feature-caption {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 1rem 0 0;
}

/* About section */
.about {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 3rem;
}

.about p {
  margin: 0;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

/* Larger screens */
@media (min-width: 600px) {
  .logo {
    width: 170px;
  }

  .field-row {
    flex-direction: row;
  }

  input[type="email"] {
    flex: 1;
  }

  .cta-button {
    width: auto;
    white-space: nowrap;
  }
}
