@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef3f4;
  background: #101b22;
  font-synthesis: none;
  --safe-top: max(1.25rem, env(safe-area-inset-top));
  --safe-right: max(1.25rem, env(safe-area-inset-right));
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #101b22;
}

body {
  min-height: 100svh;
}

button,
a {
  font: inherit;
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #1c2b35;
}

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

.scene {
  z-index: -2;
  background-image: image-set(
    url("./assets/north-atlantic.webp") type("image/webp"),
    url("./assets/north-atlantic.png") type("image/png")
  );
  background-position: 50% 50%;
  background-size: cover;
  filter: saturate(0.78) contrast(1.06) brightness(0.77);
}

.scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.scene-video.is-standby {
  opacity: 0;
}

.grade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 14, 19, 0.08) 0%, rgba(6, 15, 21, 0.1) 42%, rgba(4, 11, 16, 0.34) 100%),
    radial-gradient(circle at 50% 45%, transparent 0%, rgba(3, 10, 15, 0.08) 52%, rgba(3, 9, 13, 0.34) 100%);
}

.brand {
  z-index: 2;
  width: min(90vw, 56rem);
  margin-top: -1.5vh;
  padding: 2rem;
  text-align: center;
  text-shadow: 0 2px 22px rgba(1, 6, 9, 0.56);
  transform: translateY(-22px);
}

.brand h1 {
  margin: 0;
  font-family: "Geist", ui-sans-serif, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 3.05rem);
  font-weight: 300;
  letter-spacing: clamp(0.23rem, 0.63vw, 0.67rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.source-panel {
  position: absolute;
  z-index: 3;
  top: max(60px, env(safe-area-inset-top));
  right: max(44px, env(safe-area-inset-right));
  width: 392px;
  color: #c3cccf;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(2, 8, 12, 0.72);
}

.source-window {
  height: min(290px, 33vh);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 80%, rgba(0, 0, 0, 0.9) 85%, rgba(0, 0, 0, 0.55) 90%, rgba(0, 0, 0, 0.15) 95%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 80%, rgba(0, 0, 0, 0.9) 85%, rgba(0, 0, 0, 0.55) 90%, rgba(0, 0, 0, 0.15) 95%, transparent);
}

.source-track {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.source-sequence {
  flex: none;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0 0 1.58em;
  overflow: visible;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: normal;
  white-space: pre;
}

.source-sequence code {
  font: inherit;
}

.syntax-keyword {
  color: #c6a6e6;
}

.syntax-type {
  color: #86cdd9;
}

.syntax-string {
  color: #b8cca1;
}

.syntax-number {
  color: #8cbae8;
}

.syntax-comment {
  color: #a7b5bb;
  font-style: italic;
}

.contact {
  position: absolute;
  z-index: 3;
  bottom: max(45px, env(safe-area-inset-bottom));
  left: max(65px, env(safe-area-inset-left));
  margin: 0;
  color: rgba(232, 239, 240, 0.64);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.09em;
  text-shadow: 0 1px 12px rgba(1, 6, 9, 0.82);
  white-space: nowrap;
}

.contact a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.contact a:hover,
.contact a:focus-visible {
  color: rgba(245, 249, 249, 0.92);
  text-decoration: underline;
}

.no-script-source {
  position: absolute;
  top: var(--safe-top);
  right: var(--safe-right);
  color: rgba(228, 237, 237, 0.52);
  font: 0.65rem "SFMono-Regular", Consolas, monospace;
}

.visually-hidden,
.motion-note {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .source-panel {
    top: max(36px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    width: min(360px, calc(100vw - 48px));
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .scene {
    background-position: 31% 50%;
  }

  .scene-video {
    object-position: 31% 50%;
  }

  .brand {
    margin-top: 11vh;
    padding: 1.25rem;
  }

  .brand h1 {
    max-width: 18rem;
    margin-inline: auto;
    font-size: clamp(1.25rem, 7vw, 1.8rem);
    letter-spacing: clamp(0.18rem, 1.75vw, 0.37rem);
    line-height: 1.38;
  }

  .source-panel {
    font-size: clamp(8px, 2.56vw, 10px);
  }

  .source-window {
    height: min(250px, 30vh);
  }

  .contact {
    left: max(24px, env(safe-area-inset-left));
    bottom: max(26px, env(safe-area-inset-bottom));
    font-size: 11px;
    letter-spacing: 0.03em;
  }
}
