/* Silke — hero

   The plate is purple silk in slow folds: one bright lilac crease runs
   corner to corner through the middle, and the left third falls into deep
   violet shade. Against white type the crease measures 1-2:1, but the shaded
   left reads 6-18:1 at its brightest frame. The copy sits centred, kept
   short, and on narrow screens the crop shifts left so that shade sits behind
   it. Centred, the crease passes under the copy at its brightest (1.1:1), so
   the letters carry a deep halo of their own and the lede is set heavier;
   nothing is laid over the footage. */

:root {
  --night: #0E0618;   /* the deepest fold: page ground and poster fallback */
  --ink:   #F7F1FF;   /* white with a little lilac */
  --dim:   rgba(247, 241, 255, .86);
  --sheen: #E4D0FF;   /* the crease at its brightest: the action, 15:1 against --night */
  --hair:  rgba(247, 241, 255, .35);
  --lift:  0 0 1px rgba(14, 6, 24, .95), 0 1px 3px rgba(14, 6, 24, .9),
           0 0 12px rgba(14, 6, 24, .85), 0 0 32px rgba(14, 6, 24, .7);

  --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(--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, centred; narrow screens slide left onto the shade (below). */
.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: 2rem;
  line-height: 1;
}
.mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 1px 8px rgba(14, 6, 24, .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 silk's deepest fold so it reads over the
   crease: 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: 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;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  margin-top: 2rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: var(--sheen);
  color: var(--night);
  font-weight: 600;
  text-shadow: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink); }
.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) {
  .hero__video { object-position: 18% 50%; }
  .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; }
}
