@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #080b12;
  --silver: #e5e7eb;
  --muted: #9297a6;
  --violet: #8b7aff;
  --page-gutter: clamp(24px, 4.4vw, 80px);
  --viewport-height: 100vh;
  --header-height: clamp(64px, 10vh, 96px);
  --footer-height: calc(34px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  color: var(--silver);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@supports (height: 100svh) {
  :root {
    --viewport-height: 100svh;
    --header-height: clamp(64px, 10svh, 96px);
  }
}

* { box-sizing: border-box; }

body { margin: 0; }

/* A still of the same effect is visible until Canvas2D is ready, or without JS. */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--navy);
  background-image: url("assets/spectrum-still.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.spectrum-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.spectrum-ready .spectrum-canvas { opacity: 1; }
.spectrum-ready .wallpaper { visibility: hidden; }


img { display: block; max-width: 100%; }

a { color: inherit; }

[hidden] { display: none !important; }

::selection { background: var(--violet); color: var(--navy); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 16px auto auto 16px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--silver);
  color: var(--navy);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  min-height: var(--viewport-height);
  padding-inline: var(--page-gutter);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: var(--header-height);
  border-bottom: 1px solid rgb(229 231 235 / 15%);
}

.brand {
  display: block;
  width: 158px;
}

.brand img { width: 100%; height: auto; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(var(--viewport-height) - var(--header-height) - var(--footer-height));
  /* Text can make this taller when zoomed; never clip readable content. */
  min-height: min-content;
  padding-block: clamp(16px, 4vh, 48px);
}

.hero-copy { position: relative; min-width: 0; width: 52%; }

h1 {
  margin: 0;
  font-size: clamp(44px, min(7.15vw, 13vh), 112px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.062em;
  overflow-wrap: anywhere;
}

.hero-description {
  margin: clamp(16px, 2.6vh, 27px) 0 clamp(22px, 3.2vh, 35px);
  color: var(--muted);
  font-size: clamp(16px, 1.72vw, 27px);
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.hero-description span { white-space: nowrap; }

.access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

.access-caption {
  margin: clamp(40px, 10vh, 96px) 0 0;
  color: #c1c5cf;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.13em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--footer-height);
  padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.site-footer p { margin: 0; }

.access-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  padding: 17px 26px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0;
  background: linear-gradient(115deg, #e5e7eb, #d0d2de);
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.035em;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.access-link:hover {
  box-shadow: 0 0 30px rgb(139 122 255 / 12%);
  transform: translateY(-2px);
}

.access-link:active { transform: translateY(0); }

.access-link[aria-disabled="true"] { cursor: not-allowed; }
.access-link[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.arrow { flex: 0 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive 750ms ease-out both; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 700px) {
  :root { --header-height: clamp(56px, 9vh, 80px); }
  .wallpaper {
    background-image: url("assets/spectrum-still-mobile.webp");
    background-position: center center;
  }
  .brand { width: 143px; }
  .hero {
    align-items: stretch;
    padding-top: clamp(12px, 2.5vh, 24px);
    padding-bottom: 16px;
  }
  .hero-copy {
    width: 100%;
    min-height: min-content;
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto;
    row-gap: clamp(18px, 3vh, 28px);
  }
  .hero-message { align-self: center; }
  .access { align-self: end; justify-self: start; }
  h1 { font-size: clamp(38px, min(11.6vw, 7.5vh), 72px); line-height: 1.045; }
  .hero-description {
    margin-block: clamp(12px, 2vh, 18px) 0;
    color: var(--silver);
    max-width: 380px;
    font-size: clamp(14px, 3.6vw, 20px);
    line-height: 1.6;
    letter-spacing: -0.025em;
  }
  .access-link { min-height: 48px; padding: 12px 20px; font-size: 15px; gap: 24px; }
  .access-caption { margin-top: clamp(28px, 6vh, 52px); }
}

@supports (height: 100svh) {
  .hero { padding-block: clamp(16px, 4svh, 48px); }
  h1 { font-size: clamp(44px, min(7.15vw, 13svh), 112px); }
  @media (max-width: 700px) {
    :root { --header-height: clamp(56px, 9svh, 80px); }
    .hero {
      padding-top: clamp(12px, 2.5svh, 24px);
      padding-bottom: 16px;
    }
    h1 { font-size: clamp(38px, min(11.6vw, 7.5svh), 72px); }
  }
}

/* Compact text over the wide wallpaper in short landscape windows. */
@media (min-width: 400px) and (max-height: 500px) and (orientation: landscape) {
  :root { --header-height: 52px; --footer-height: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .brand { width: 124px; }
  .wallpaper {
    background-image: url("assets/spectrum-still.webp");
    background-position: center center;
  }
  .hero {
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero-copy {
    width: 57%;
    display: grid;
    min-height: min-content;
    grid-template-rows: minmax(min-content, 1fr) auto;
    row-gap: 12px;
  }
  .hero-message { align-self: center; }
  .access { align-self: end; justify-self: start; }
  h1 { font-size: clamp(30px, min(5.7vw, 11vh), 58px); }
  .hero-description { font-size: 14px; line-height: 1.5; margin-block: 10px 0; }
  .access-link { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .access-caption { margin-top: clamp(14px, 4vh, 24px); letter-spacing: 0.11em; }
  .site-footer { padding-top: 4px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .access-link:hover { transform: none; }
}

@media (forced-colors: active) {
  .access-link { border: 1px solid ButtonText; }
  .wallpaper, .spectrum-canvas { display: none; }
}
