/* Glow — hero

   The plate is clear liquid glass flowing over white, with rainbow light on
   its edges. It is pale, so the type is dark. The flow is busy: a dark ink
   reads 3:1 or better over most of the upper left and the lower band, enough
   for the headline, but the smaller lines need help. So every letter carries
   a soft light halo of its own. The halo belongs to the type; nothing is laid
   over the footage. The copy is centred in the frame, over the middle of
   the flow. */

:root {
  --paper: #FAF9FD;   /* the plate's own white: page ground and poster fallback */
  --ink:   #1B1A33;   /* deep indigo, drawn from the glass's shadowed edges */
  --dim:   rgba(27, 26, 51, .8);
  --hair:  rgba(27, 26, 51, .28);
  --halo:  0 0 1px rgba(250, 249, 253, .9), 0 0 14px rgba(250, 249, 253, .85), 0 0 30px rgba(250, 249, 253, .6);

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

  --display: "Instrument Serif", Georgia, serif;
  --text:    "Figtree", system-ui, sans-serif;
}

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

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

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  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(--halo);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}
.mark { width: 30px; height: 30px; flex: none; }

.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 plate's white so it reads on any part of the
   flow: the control's own footprint, not a layer over the footage. */
.nav__signin {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hair);
  text-shadow: none;
  transition: border-color .25s var(--ease);
}
.nav__signin:hover { border-color: var(--ink); }

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

/* centred both ways in the space under the bar */
.hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter) clamp(3rem, 10vh, 6rem);
  text-align: center;
  text-shadow: var(--halo);
}

.title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: .95;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 30ch;
  color: var(--dim);
  font-size: clamp(1.05rem, 1.35vw, 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(--ink);
  color: var(--paper);
  font-weight: 600;
  text-shadow: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #33315A; }
.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.8rem; }
  .mark        { width: 26px; height: 26px; }
  .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; }
}
