/* ===========================================================================
   Anixxi — coming soon.

   One viewport, never more: the page is exactly the height of the screen and
   the body cannot scroll. Everything is sized in clamp() against that promise,
   so nothing here has a fixed pixel height a shorter window can push past the
   fold.
   ========================================================================= */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* The mark's diameter, reused by the hero to rebalance itself. See .hero. */
  --header-h: clamp(40px, 4.4vw, 46px);
}

/* The local fallback for the display face. The primary is DotGothic16
   from the CDN; this only ever renders if that request fails. The .woff2 is
   not in the repo yet, so today the stack falls through to monospace in that
   case — drop the file in at this exact path and it starts working with no
   other change. `font-display: swap` means its absence never blocks paint. */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background video ────────────────────────────────────────────────────── */

.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ── Page shell ──────────────────────────────────────────────────────────── */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

.hero {
  z-index: 1;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(1240px, 100%);
  text-align: center;
  /* No padding correction any more. This used to offset by one mark's height
     because the header sat above and pushed the hero half a mark low. The mark
     was a generated placeholder and has been removed, so the hero now centres
     on the viewport itself and the correction would tip it the other way. */
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-weight: 400;
  /* Solid white. No gradient, no shimmer, no scan line. */
  color: var(--text);
  /* Large, at 60% of the size this first shipped at — every term below is the
     original scaled by that same 0.6, so the curve keeps its shape and the
     word comes down by 40% at every viewport rather than only the widest.

     The vw term drives it on a wide screen; the vh term is the governor —
     without it a short, wide window would size the wordmark taller than the
     room left to draw it in, and `overflow: hidden` on .page would silently
     crop the glyphs rather than scroll. */
  font-size: clamp(38.4px, min(9vw, 15.6vh), 144px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
}

.headline-line {
  display: block;
}

/* The reveal belongs to each line, not to the headline as a whole, so that a
   second line could arrive after the first. */
.anim-headline .headline-line {
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-headline .headline-line:nth-child(1) {
  animation-delay: 0.12s;
}

.anim-headline .headline-line:nth-child(2) {
  animation-delay: 0.3s;
}

.tagline {
  --reveal-opacity: 0.8;
  margin: clamp(14px, 2.2vh, 22px) 0 0;
  max-width: min(500px, 92%);
  color: #d0d0d0;
  opacity: 0.8;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
}

/* ── Shared entrance ─────────────────────────────────────────────────────── */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

/* The settled opacity is a variable, not the literal 1.

   A `forwards` animation holds its own end frame forever, so an element meant
   to rest below full opacity cannot simply declare `opacity: 0.8` — the
   animation would win and hold it at 1. The tagline sets --reveal-opacity and
   the one keyframe honours it; everything else keeps the default. */
@keyframes reveal {
  to {
    opacity: var(--reveal-opacity, 1);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Breakpoints ─────────────────────────────────────────────────────────── */

/* No letter-spacing override here.

   The original spec tightened this to -0.08em below 720px and -0.09em below
   420px. Those values existed to squeeze a long headline onto one nowrap line
   at phone widths. The headline is now a single six-letter word with room to
   spare, and at that tracking its two adjacent x glyphs overlap into a single
   unreadable shape. Tracking tighter than the glyphs can carry buys nothing
   here and costs the wordmark, so every width keeps the -0.04em set above. */
@media (max-width: 720px) {
  .headline {
    line-height: 1.05;
  }
}

/* Short windows: the hero gives up its breathing room before the page gives up
   its promise to fit in one screen. */
@media (max-height: 700px) {
  .tagline {
    margin-top: clamp(10px, 1.6vh, 16px);
  }

  .hero {
    padding-bottom: clamp(24px, 4vh, 44px);
  }
}

@media (max-width: 420px) {
  .headline {
    line-height: 1.04;
  }
}

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

  .anim,
  .anim-headline .headline-line,
  .header {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Restored after the blanket reset above, which would otherwise hand the
     people who asked for less motion a brighter tagline than everyone else. */
  .tagline {
    opacity: 0.8;
  }

  .headline {
    color: var(--text);
  }
}

