/* Spacey — hero

   The plate, a black hole with orange streams to its left and blue to its
   right, fills the whole hero. It is busy from edge to edge (few patches reach
   4.5:1 against white), so the type is kept short and set large, sits in the
   lower left where the plate is calmest, and carries a soft shadow of its own.
   The shadow belongs to the letters; nothing is laid over the footage. */

:root {
  --void:   #04050C;   /* the black at the centre of the hole */
  --ink:    #F4F6FF;
  --dim:    rgba(244, 246, 255, .86);
  --ember:  #FF8A4C;   /* the left-hand stream: the action */
  --hair:   rgba(244, 246, 255, .4);
  --lift:   0 1px 2px rgba(4, 5, 12, .7), 0 2px 18px rgba(4, 5, 12, .55);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease:   cubic-bezier(.2, .7, .2, 1);

  --display: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
  --text:    "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

:where(a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--void);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Cover, anchored on the hole (53% across, 49% down the plate), so the hole
   stays in frame at any screen shape. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 49%;
  z-index: 0;
}

.topbar, .hero__copy { position: relative; z-index: 1; }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 2.4vh, 1.6rem) var(--gutter);
  text-shadow: var(--lift);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
}
.mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 1px 6px rgba(4, 5, 12, .6)); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
  font-size: .95rem;
  font-weight: 600;
}
.nav__links { display: contents; }
.nav__link { color: var(--dim); transition: color .25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }

/* Sign in is filled with the hole's own black so it reads on any part of the
   plate: the control's own footprint, not a layer over the footage. */
.nav__signin {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--void);
  border: 1px solid var(--hair);
  text-shadow: none;
  transition: border-color .25s var(--ease);
}
.nav__signin:hover { border-color: var(--ink); }

/* ---------- copy ---------- */

.hero__copy {
  margin-top: auto;
  padding: 0 var(--gutter) clamp(2.5rem, 9vh, 5.5rem);
  max-width: 62rem;
  text-shadow: var(--lift);
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.lede {
  margin: 1.1rem 0 0;
  color: var(--dim);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  margin-top: 2rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--void);
  font-weight: 700;
  text-shadow: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #FFA06C; }
.btn:active { transform: translateY(1px); }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .brand, .nav__link, .nav__signin, .title, .lede, .btn {
    opacity: 0;
    animation: rise .9s var(--ease) forwards;
  }
  .nav__link:nth-child(1) { animation-delay: .08s; }
  .nav__link:nth-child(2) { animation-delay: .12s; }
  .nav__link:nth-child(3) { animation-delay: .16s; }
  .nav__link:nth-child(4) { animation-delay: .2s; }
  .nav__signin { animation-delay: .24s; }
  .title { animation-delay: .35s; }
  .lede  { animation-delay: .5s; }
  .btn   { animation-delay: .62s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- phones ----------
   The links get a row of their own under the brand. */

@media (max-width: 599px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: .9rem;
  }
  .nav { display: contents; }
  .brand       { grid-row: 1; grid-column: 1; font-size: 1.2rem; }
  .mark        { width: 30px; height: 30px; }
  .nav__signin { grid-row: 1; grid-column: 2; padding: .45rem 1rem; font-size: .9rem; }
  .nav__links  { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 1.4rem; font-size: .92rem; }
  .btn { margin-top: 1.6rem; padding: .85rem 1.4rem; }
}
