/* The palette is sampled from the supplied dtLap typography artwork.
   Keep these tokens as the common foundation when adding future pages. */
@font-face {
  font-family: "Exo 2";
  src: url("../assets/fonts/exo-2-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("../assets/fonts/exo-2-extrabold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --colour-black: #000;
  --colour-charcoal: #101216;
  --colour-silver: #f0f1f3;
  --colour-gold: #dfbe72;
  --colour-muted: #b7bdc6;
  --page-gutter: clamp(28px, 5.55vw, 180px);
  --font-heading: "Exo 2", "Arial Narrow", sans-serif;
  --font-body: "Exo 2", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--colour-black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--colour-silver);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--colour-charcoal);
  background: var(--colour-gold);
}

/* Three content rows keep the footer in the first viewport without pinning it
   over text. It can move naturally below the fold when a visitor zooms in. */
.launch-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 640px;
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: var(--colour-black);
}

.scene,
.scene__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: -1;
  overflow: hidden;
  background: var(--colour-black);
}

/* Retain the wide artwork's proportions. Let its night sky dissolve into the
   page above it instead of enlarging a banner to fill a tall screen. */
.scene__picture {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  transform-origin: 68% 68%;
}

.scene__image {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%);
  mask-image: linear-gradient(to bottom, transparent, #000 25%);
}

.scene__shade {
  background:
    linear-gradient(90deg, rgb(0 0 0 / 24%), transparent 65%),
    linear-gradient(0deg, rgb(0 0 0 / 78%), transparent 26%, transparent 68%, rgb(0 0 0 / 12%));
}

.site-header {
  padding: clamp(32px, 5.2vh, 112px) var(--page-gutter) 0;
  padding-top: max(clamp(32px, 5.2vh, 112px), env(safe-area-inset-top));
}

.site-header__logo {
  display: block;
  width: clamp(190px, 17vw, 530px);
  height: auto;
}

.hero {
  display: flex;
  align-items: center;
  padding: 68px var(--page-gutter) 120px;
}

.hero__content {
  padding-block: 12px;
}

.hero__rule {
  display: block;
  width: clamp(40px, 3.5vw, 100px);
  height: 2px;
  margin-bottom: clamp(26px, 2.7vw, 72px);
  background: linear-gradient(90deg, var(--colour-gold), rgb(223 190 114 / 25%));
  transform-origin: left;
}

h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(80px, 8.35vw, 290px);
  font-weight: 800;
  line-height: 1.015;
  letter-spacing: 0.02em;
}

.hero__line {
  display: block;
}

.hero__ellipsis {
  color: var(--colour-gold);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: var(--page-gutter);
  padding-block: 24px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(240 241 243 / 18%);
}

.site-footer__logo {
  display: block;
  width: clamp(68px, 5.2vw, 160px);
  height: auto;
}

.site-footer small {
  color: var(--colour-muted);
  font-size: clamp(12px, 0.75vw, 22px);
  font-weight: 400;
  letter-spacing: normal;
}

/* Deliberately finite: an opening camera drift, then a still composition.
   All content is visible without JavaScript and without animation support. */
@media (prefers-reduced-motion: no-preference) {
  .scene__picture {
    animation: scene-arrive 4.8s cubic-bezier(0.18, 0.6, 0.35, 1) both;
  }

  .site-header__logo {
    animation: content-arrive 1s 80ms both;
  }

  .hero__rule {
    animation: rule-arrive 900ms 150ms both;
  }

  .hero__line:first-child {
    animation: content-arrive 1.1s 180ms both;
  }

  .hero__line:last-child {
    animation: content-arrive 1.1s 280ms both;
  }

  .site-footer {
    animation: content-arrive 1.1s 420ms both;
  }
}

@keyframes scene-arrive {
  from { opacity: 0.55; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes content-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rule-arrive {
  from { opacity: 0; transform: scaleX(0.3); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 1100px) {
  .hero {
    padding-bottom: 105px;
  }
}

@media (max-width: 1100px) and (orientation: portrait) {
  :root { --page-gutter: clamp(24px, 7.1vw, 48px); }

  .launch-page {
    min-height: max(560px, 100svh);
  }

  .site-header {
    padding-top: max(36px, env(safe-area-inset-top));
  }

  .site-header__logo {
    width: clamp(166px, 46vw, 250px);
  }

  .scene__picture {
    inset: 0;
    height: 100%;
    transform-origin: 64% 75%;
  }

  .scene__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 61% 60%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .scene__shade {
    background:
      linear-gradient(180deg, rgb(0 0 0 / 25%), transparent 28%, transparent 66%, rgb(0 0 0 / 83%)),
      linear-gradient(90deg, rgb(0 0 0 / 12%), transparent 90%);
  }

  .hero {
    align-items: flex-start;
    padding-top: clamp(96px, 14svh, 180px);
    padding-bottom: clamp(140px, 22svh, 190px);
  }

  .hero__rule {
    width: 36px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(64px, 15.9vw, 108px);
    line-height: 1.055;
  }

  .site-footer {
    gap: 16px;
    padding-block: 21px max(26px, env(safe-area-inset-bottom));
  }

  .site-footer__logo { width: 60px; }
  .site-footer small { font-size: 11px; }
}

@media (max-width: 359px) and (orientation: portrait) {
  .site-footer__logo { width: 48px; }
  .site-footer small { font-size: 10px; }
  h1 { font-size: 16.8vw; }
}

@media (max-height: 600px) and (min-aspect-ratio: 1/1) {
  .launch-page { min-height: max(360px, 100svh); }
  .site-header { padding-top: 24px; }
  .site-header__logo { width: 170px; }
  .hero { padding-block: 32px 44px; }
  .hero__rule { margin-bottom: 20px; }
  h1 { font-size: clamp(52px, 13.5vh, 76px); }
  .site-footer { padding-block: 16px 18px; }
}
