/* Dune — hero

   The plate is a desert at sunset: the sun on the horizon between two ranges,
   a sky burning orange into purple, and rippled dunes below. The camera is
   still and only the clouds drift. Against white type the sky measures only
   2.5-3.5:1, but the shadowed dune down the left edge reads 8-14:1 from
   mid-height down, so the copy sits on the left, centred in the height. The letters carry a soft shadow of their own for the lighter
   sand they cross; nothing is laid over the footage. */

:root {
  --night: #22100C;   /* the deepest dune shadow: page ground and poster fallback */
  --ink:   #FFF4EA;   /* warm white */
  --dim:   rgba(255, 244, 234, .86);
  --sun:   #FFC56B;   /* the sun's gold: the action, 12:1 against --night */
  --hair:  rgba(255, 244, 234, .4);
  --lift:  0 1px 2px rgba(34, 16, 12, .7), 0 2px 18px rgba(34, 16, 12, .5);

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

  --display: "Fraunces", Georgia, serif;
  --text:    "Manrope", 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 on the sun (59% across, 53% down the plate). */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 53%;
  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: 600;
  font-size: 1.6rem;
  line-height: 1;
}
.mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 1px 6px rgba(34, 16, 12, .5)); }

.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 dune's own shadow so it reads anywhere on the
   sky: 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, left and centred in the height ---------- */

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

.title {
  margin: 0;
  max-width: 13ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  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(--sun);
  color: var(--night);
  font-weight: 700;
  text-shadow: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #FFD58E; }
.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; }
}
