/* Onyx — hero

   The plate is black water at night: a slow swell with cold blue glints
   running across it, no horizon, no edges. It is mostly near-black, but the
   glints flare almost white, so at their brightest white type measures only
   1.2-3:1 through the middle of the frame. The copy sits centred all the
   same, kept short, and the letters carry a dark halo of their own for the
   glints they cross; nothing is laid over the footage. */

:root {
  --night: #03070D;   /* the water between glints: page ground and poster fallback */
  --ink:   #EEF4FA;   /* cold white */
  --dim:   rgba(238, 244, 250, .86);
  --glint: #9CC4F0;   /* the blue of the highlights: the action's hover */
  --hair:  rgba(238, 244, 250, .35);
  --lift:  0 1px 2px rgba(3, 7, 13, .85), 0 0 14px rgba(3, 7, 13, .7), 0 0 34px rgba(3, 7, 13, .55);

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

  --display: "Gloock", Georgia, serif;
  --text:    "Geist", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  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(--night);
  border-radius: 6px;
}

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

/* Cover. The swell has no subject, so the crop stays centred. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  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: .55rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
}
.mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 1px 8px rgba(3, 7, 13, .7)); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
  font-size: .95rem;
  font-weight: 500;
}
.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 water's own black so it reads over any glint:
   the control's own footprint, not a layer over the footage. */
.nav__signin {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--night);
  border: 1px solid var(--hair);
  text-shadow: none;
  transition: border-color .25s var(--ease);
}
.nav__signin:hover { border-color: var(--ink); }

/* ---------- copy, centred ---------- */

.hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--gutter) clamp(3rem, 10vh, 6rem);
  text-shadow: var(--lift);
}

.title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.lede {
  margin: 1.2rem 0 0;
  max-width: 54ch;
  color: var(--dim);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}

/* Cold white, like the brightest glints: 18:1 against --night. */
.btn {
  display: inline-flex;
  margin-top: 2rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--night);
  font-weight: 600;
  text-shadow: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--glint); }
.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.45rem; }
  .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; }
}
