:root {
  --bg: #fff;
  --surface: #fff;
  --ink: #000;
  --ink-inverse: #fff;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif-italic: Georgia, "Times New Roman", serif;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-sm: 0.375rem;
  --radius-pill: 999px;
  --fs-ui: max(11px, 0.6875rem);
  --fs-brand: max(11px, 0.75rem);
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(11px, 0.833vw, 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  color: var(--ink-inverse);
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
}

/* ---------- Brand frame / rotating DE UBAD seal ---------- */
.brand-frame {
  width: 130px;
  height: 56px;
  flex: none;
  position: relative;
  overflow: visible;
}

.deubad-mark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 92px;
  height: 92px;
  transform: translateY(-50%);
  color: var(--ink-inverse);
}

.deubad-ring {
  position: absolute;
  inset: 0;
  animation: deUbadSpin 22s linear infinite;
}

.deubad-ring span {
  position: absolute;
  top: 0;
  left: 50%;
  height: 50%;
  transform-origin: bottom center;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.deubad-static {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes deUbadSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.tagline-hero {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 21.25rem;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu a {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.menu-word {
  position: relative;
}

.menu-word__b {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 10;
  margin-top: 30vh;
  background: #000;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: 0;
  outline: 0;
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 0;
}

.hero-mobile-poster,
.hero-mobile-frames {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.hero-mobile-frames.is-ready {
  display: block;
  z-index: 2;
}

@media (pointer: coarse) {
  .hero-bg-video {
    display: none;
  }

  .hero-mobile-poster {
    display: block;
  }
}


/* ---------- Hero title ---------- */
.hero-title {
  position: fixed;
  z-index: 40;
  left: var(--space-6);
  right: var(--space-6);
  bottom: calc(70vh + var(--space-5));
  margin: 0;
  color: var(--ink-inverse);
  mix-blend-mode: difference;
  pointer-events: none;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-title .italic {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Hero footer / CTA ---------- */
.hero-footer {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: var(--space-5);
  color: var(--ink-inverse);
  mix-blend-mode: difference;
  pointer-events: none;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  gap: var(--space-4);
  max-width: 34rem;
}

.cta-copy {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.waitlist-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.waitlist-email {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  padding: 0.5rem 0.75rem;
  min-width: 14rem;
  font-family: var(--font-sans);
  font-size: var(--fs-ui);
  letter-spacing: 0.02em;
  outline: none;
}

.waitlist-email::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-submit {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 2.5rem;
  background: #fff;
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.waitlist-submit__label {
  mix-blend-mode: difference;
}

/* ---------- Lower-left launch teaser ---------- */
.launch-teaser {
  position: fixed;
  left: var(--space-6);
  bottom: var(--space-6);
  z-index: 20;
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  color: var(--ink-inverse);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
}

.launch-teaser-mark {
  flex: none;
  width: calc(7rem * var(--card-scale, 1));
  height: calc(7rem * var(--card-scale, 1));
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom left;
}

.launch-teaser-mark span {
  color: #000;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-teaser-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.launch-teaser-info h2 {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.launch-teaser-info .desc {
  margin: 0 0 0.875rem;
  max-width: 34rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-ui);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.launch-teaser-info .status {
  margin-top: auto;
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Scroll track ---------- */
.scroll-spacer {
  height: 220vh;
  pointer-events: none;
}

/* ---------- Narrow-screen (real iPhone) fixes ---------- */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    align-items: flex-start;
  }

  .brand-frame {
    width: 64px;
    height: 44px;
  }

  .deubad-mark {
    width: 62px;
    height: 62px;
  }

  .deubad-ring span {
    font-size: 6px;
    padding-top: 3px;
  }

  .deubad-static {
    font-size: 9px;
  }

  .tagline-hero {
    max-width: 9.5rem;
    font-size: 8px;
    line-height: 1.35;
  }

  .menu a {
    font-size: 8px;
    line-height: 1.3;
  }

  .menu ul {
    gap: 0;
  }

  /* Mobile header footprint: mark/tagline/nav all fit above this offset,
     so the H1 can start cleanly below the lowest nav item. */
  .hero-title {
    left: 1rem;
    right: 1rem;
    bottom: auto;
    top: 11rem;
    font-size: clamp(2.4rem, 9.5vw, 4rem);
    max-width: 100%;
  }

  .hero-footer {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .cta {
    max-width: 100%;
  }

  .waitlist-form {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .waitlist-email {
    min-width: 0;
    flex: 1 1 8rem;
  }

  .waitlist-submit {
    padding: 0 1.25rem;
    min-height: 2.5rem;
  }

  .launch-teaser {
    left: 1rem;
    bottom: 1rem;
  }
}
