@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-400.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dm-sans-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/manrope-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/manrope-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/manrope-800.woff2) format('woff2');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: #000;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

/* One full-height screen. Header at the top, copy centred in the remaining space. */
.landing {
  position: relative;
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  padding: clamp(28px, 3.2vw, 47px) clamp(28px, 4.7vw, 76px);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 7px;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Darkens the dot field behind the copy so the text stays legible. */
.art-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #000 0%, #000f 26%, #000a 43%, #0000 68%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.logo {
  font: 800 31px/1 Manrope, Arial, sans-serif;
  letter-spacing: -1.9px;
  display: inline-block;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #e4e4e5;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 15px 10px 18px;
  border: 1px solid #373739;
  border-radius: 2px;
  transition: background .2s, border-color .2s;
}
.login-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.login-link:hover {
  background: #171717;
  border-color: #777;
}

.copy {
  position: relative;
  z-index: 2;
  margin: auto 0;
  transform: translateY(-2%);
  width: 100%;
  pointer-events: none;
  animation: arrive 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
.copy h1 {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(46px, 5.35vw, 88px);
  line-height: 1.075;
  letter-spacing: -.062em;
}
.copy h1 span {
  display: block;
  white-space: nowrap;
}
.copy h1 .muted {
  color: #8a8d93;
  font-weight: 500;
}
.copy p {
  margin: 29px 0 0;
  color: #8c8f96;
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: -.015em;
  line-height: 1.5;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(-2%); }
}

/* Wide screens: size the headline by height so it fits. */
@media (min-aspect-ratio: 2/1) {
  .copy h1 { font-size: min(5.1vw, 13.7vh); }
  .copy p { margin-top: 22px; }
  .landing { padding-top: 26px; padding-bottom: 26px; }
}

/* Phones and narrow tablets in portrait: copy near the top, dot field below it. */
@media (max-width: 800px) and (min-height: 501px) {
  .landing { padding: 28px 28px; }
  .logo { font-size: 29px; }
  .login-link { padding: 9px 13px 9px 15px; gap: 21px; font-size: 11px; }
  .copy { margin: clamp(62px, 13vh, 135px) 0 auto; transform: none; }
  .copy h1 { font-size: clamp(33px, 5.88vw, 47px); line-height: 1.105; letter-spacing: -.058em; }
  .copy p { font-size: 13px; margin-top: 23px; max-width: 280px; }
  .art-shade { background: linear-gradient(180deg, #000 0%, #000e 25%, #0008 46%, #0000 70%); }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 460px) and (min-height: 501px) {
  .landing { padding: 27px 25px; }
  .copy { margin-top: clamp(55px, 12.5vh, 115px); }
  .copy h1 { font-size: clamp(29px, 9.8vw, 40px); }
  .copy p { font-size: 12px; max-width: 260px; margin-top: 23px; }
  .logo { font-size: 28px; }
}

@media (max-width: 360px) and (min-height: 501px) {
  .landing { padding: 23px 21px; }
  .copy h1 { font-size: 9.5vw; }
  .copy p { font-size: 11px; }
}

@media (max-height: 600px) and (max-width: 800px) and (min-height: 501px) {
  .copy { margin-top: 50px; }
  .copy p { margin-top: 17px; }
}

/* Short screens, such as phones in landscape. */
@media (max-height: 500px) {
  .landing { padding: 20px 27px; }
  .logo { font-size: 26px; }
  .login-link { font-size: 10px; padding: 8px 11px; gap: 20px; }
  .copy h1 { font-size: clamp(28px, min(5.2vw, 10vh), 55px); }
  .copy p { font-size: 11px; margin-top: 19px; }
  .copy { transform: none; }
}

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

/* 404 page */
.not-found {
  position: relative;
  z-index: 2;
  margin: auto 0;
}
.not-found h1 {
  margin: 0;
  font: 600 clamp(36px, 4vw, 56px)/1.1 Manrope, Arial, sans-serif;
  letter-spacing: -.05em;
}
.not-found p {
  margin: 22px 0 0;
  color: #8c8f96;
  font-size: 14px;
}
.not-found a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
