/* Lustre — hero

   The plate is a sheet of chrome turning in a studio. It holds the middle of
   the frame and its own value range runs black to white, so nothing can be
   set over it. Measured in page space, the one generous clean area is the
   floor it hovers over: the bottom fifth reads 6-12:1 for a dark ink right
   across, and 9-10:1 out to 42% at the left. So the copy sits on the floor
   rather than beside the sheet, and the crop keeps the light left wall. The
   title runs narrow because it reaches higher, into the shadow that sweeps
   left; the letters carry a light halo for it. Nothing is over the footage.

   Type: Archivo set tight against the drape's softness, with Azeret Mono for
   anything the library would print as a value: the nav labels. */

:root {
  --field: #B9B7E6;   /* the studio's left wall: page ground and poster fallback */
  --ink:   #16102B;   /* the deepest violet in the plate */
  --dim:   rgba(22, 16, 43, .76);
  --hair:  rgba(22, 16, 43, .22);
  --halo:  0 0 2px rgba(237, 236, 251, 1), 0 0 10px rgba(237, 236, 251, .95),
           0 0 22px rgba(237, 236, 251, .8), 0 0 40px rgba(237, 236, 251, .55);

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

  --display: "Archivo", system-ui, sans-serif;
  --mono:    "Azeret Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--field);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  -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(--field);
  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;
  object-position: 0% 50%;   /* keep the light left wall, crop off the right */
  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: 0 0 2px rgba(240, 239, 252, 1), 0 0 9px rgba(240, 239, 252, .95),
               0 0 20px rgba(240, 239, 252, .75);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
}
.mark { width: 28px; height: 28px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.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 studio's own light so it reads over any part of
   the sheet: the control's own footprint, not a layer over the footage. */
.nav__signin {
  padding: .5rem 1rem;
  border-radius: 7px;
  background: var(--field);
  border: 1px solid var(--hair);
  text-shadow: none;
  transition: border-color .25s var(--ease);
}
.nav__signin:hover { border-color: var(--ink); }

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

.hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem clamp(2rem, 5vh, 3rem) var(--gutter);
  max-width: min(22rem, 21%);
  text-shadow: var(--halo);
}

.title {
  margin: 0;
  max-width: 12.5ch;
  font-weight: 600;
  font-size: clamp(1.9rem, 2.45vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.038em;
}

.lede {
  margin: 1rem 0 0;
  max-width: 30ch;
  color: var(--dim);
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  margin-top: 1.35rem;
  padding: .72rem 1.3rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  background: var(--ink);
  color: var(--field);
  text-shadow: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #342A5C; }
.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; }
}

/* ---------- narrow landscape (small laptops, tablets on their side) ----------
   Less width to spend, so the copy gives some back before the sheet reaches it. */
@media (max-width: 1150px) and (orientation: landscape) and (min-height: 461px) {
  .hero__copy { max-width: min(27rem, 33%); }
  .title { font-size: clamp(2.1rem, 3vw, 2.7rem); }
}

/* ---------- portrait ----------
   Cropped to fill a portrait window, the sheet is far wider than the screen:
   it lands on the copy, and the top bar ends up on the darkest part of the
   wall, where the ink reads 1.8:1. So in portrait the plate stops filling. It
   drops to a block of its own, the page carries the studio's light wall
   behind it, and its edges are feathered away so the chrome dissolves into
   the page. Still nothing laid over the footage. */
@media (max-width: 899px) and (orientation: portrait) {
  .hero {
    background:
      radial-gradient(120% 55% at 50% 56%, rgba(124, 120, 166, .45), transparent 62%),
      linear-gradient(180deg, #C4C2EE 0%, #B4B1E0 34%, #AEABDA 58%, #CBCAF2 100%);
  }
  .hero__video {
    position: static;
    order: 1;          /* the plate is first in the markup; here it reads last */
    flex: 0 0 auto;
    width: 100%;
    height: min(66vw, 32svh);   /* a little taller than 16:9, so the sheet is
                                   bigger; cover trims a few per cent off the
                                   sides, which the sheet never reached */
    margin-bottom: clamp(1rem, 4vh, 2.5rem);
    object-position: 50% 50%;
    -webkit-mask-image: radial-gradient(34% 38% at 53% 50%, #000 56%, transparent 100%);
    mask-image: radial-gradient(34% 38% at 53% 50%, #000 56%, transparent 100%);
  }
  .hero__copy {
    flex: 1;                 /* the copy takes the slack and centres in it,
                                the way it does on the desktop */
    justify-content: center;
    max-width: 30rem;
    padding: 1.5rem var(--gutter);
  }
  .title { font-size: clamp(2.3rem, 6vw, 3.4rem); }
  .lede  { font-size: clamp(1rem, 2.2vw, 1.15rem); }
}

/* ---------- phones ----------
   Everything steps down, and the links take a row of their own under the
   brand because four of them will not sit beside it. */
@media (max-width: 599px) {
  .hero__copy { max-width: 21rem; }
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: .9rem;
  }
  .nav { display: contents; }
  .brand       { grid-row: 1; grid-column: 1; font-size: 1.35rem; }
  .mark        { width: 25px; height: 25px; }
  .nav__signin { grid-row: 1; grid-column: 2; padding: .42rem .9rem; font-size: .68rem; }
  .nav__links  { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .68rem; }
  .btn    { margin-top: 1.4rem; padding: .62rem 1.15rem; font-size: .92rem; }
}

/* ---------- short, wide screens (a phone on its side) ----------
   Measured here, the sheet leaves only 168px of clean ink down the left: not
   a column, a margin. So the plate stops filling in landscape too and takes
   the right of the frame instead, feathered into the same wash, which gives
   the copy a third of the width to itself. */
@media (max-height: 460px) and (orientation: landscape) {
  .hero {
    background:
      radial-gradient(62% 86% at 78% 52%, rgba(124, 120, 166, .3), transparent 68%),
      linear-gradient(180deg, #C4C2EE 0%, #B4B1E0 38%, #AEABDA 62%, #CBCAF2 100%);
  }
  .hero__video {
    left: auto;
    right: 0;
    width: 62%;
    -webkit-mask-image: radial-gradient(38% 30% at 64% 50%, #000 56%, transparent 100%);
    mask-image: radial-gradient(38% 30% at 64% 50%, #000 56%, transparent 100%);
  }
  .hero__copy { padding-block: .75rem 1.1rem; max-width: 34%; }
  .title  { font-size: clamp(1.5rem, 4.6vh, 2rem); max-width: 13ch; }
  .lede   { margin-top: .55rem; font-size: .85rem; line-height: 1.45; max-width: 32ch; }
  .btn    { margin-top: .9rem; padding: .55rem 1.05rem; font-size: .88rem; }
  .topbar { padding-block: .5rem; }
}

/* ---------- the smallest phones ---------- */
@media (max-width: 360px) {
  .title { font-size: 2.3rem; }
  .lede  { font-size: .95rem; }
  .btn   { margin-top: 1.15rem; }
  .hero__copy  { padding-block: .75rem 1rem; }
  .hero__video { height: min(66vw, 28svh); }
}
