:root {
  color-scheme: dark;
  --deep-water: #031521;
  --sailcloth: #f1f2ef;
  --ice: #94c9e3;
  --drafting: #78aeca;
  --muted: #6e98af;
  --edge-x: clamp(28px, 3.35vw, 64px);
  --hero-x: clamp(30px, 6.8vw, 130px);
  --parallax-x: 0px;
  --parallax-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--deep-water);
}

body {
  color: var(--sailcloth);
  font-family: Inter, Geist, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.splash {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep-water);
}

.wallpaper,
.shade {
  position: absolute;
  inset: -10px;
  z-index: -2;
}

.wallpaper {
  background-image: url("wallpaper-2560.jpg");
  background-image: image-set(
    url("wallpaper-2560.webp") type("image/webp"),
    url("wallpaper-2560.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.012);
  will-change: transform;
}

.shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 14, 23, 0.28) 0%, transparent 37%),
    linear-gradient(180deg, rgba(1, 12, 20, 0.11) 0%, transparent 34%, rgba(1, 12, 20, 0.16) 100%);
  pointer-events: none;
}

.site-header {
  position: absolute;
  top: clamp(30px, 4.6vh, 52px);
  right: var(--edge-x);
  left: var(--edge-x);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 17px;
  align-items: center;
  text-decoration: none;
}

.brand__mark {
  --flag-size: 15px;
  display: flex;
  flex: 0 0 auto;
  gap: calc(var(--flag-size) * 0.145);
  align-items: stretch;
}

.signal {
  position: relative;
  display: block;
  width: var(--flag-size);
  height: var(--flag-size);
  overflow: hidden;
  flex: 0 0 auto;
}

.signal i {
  position: absolute;
  display: block;
}

.signal--one {
  background: #03294b;
  box-shadow: inset 0 0 0 1px rgba(233, 240, 242, 0.11);
}

.signal--one .signal__field {
  inset: 21%;
  background: #fff;
}

.signal--one .signal__bar {
  inset: 37%;
  background: #ce0e2d;
}

.signal--two .signal__gold {
  inset: 0 50% 0 0;
  background: #ffcd00;
}

.signal--two .signal__navy {
  inset: 0 0 0 50%;
  background: #03294b;
}

.signal--three {
  display: flex;
  background: #ffcd00;
}

.signal--three i {
  position: static;
  flex: 1;
}

.signal--three i.navy {
  background: #03294b;
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-transform: uppercase;
}

.brand__name {
  color: rgba(245, 246, 243, 0.94);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.43em;
  line-height: 1;
  white-space: nowrap;
}

.brand__division {
  color: rgba(125, 166, 189, 0.78);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.66em;
  line-height: 1;
  white-space: nowrap;
}

.principles,
.eyebrow,
.progress,
.coordinates,
.site-footer {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
}

.principles {
  display: flex;
  gap: 17px;
  margin: 4px 0 0;
  color: rgba(116, 169, 200, 0.91);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.principles i {
  color: rgba(116, 169, 200, 0.48);
  font-style: normal;
}

.hero {
  position: absolute;
  top: 23.2%;
  left: var(--hero-x);
}

.eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 clamp(30px, 4.1vh, 44px);
  color: rgba(129, 172, 195, 0.89);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow i {
  color: rgba(129, 172, 195, 0.54);
  font-style: normal;
}

.eyebrow b {
  width: 23px;
  height: 1px;
  margin-left: -3px;
  background: rgba(145, 187, 210, 0.62);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 4.5vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.037em;
  line-height: 1.03;
}

h1 span {
  display: block;
}

h1 span:first-child {
  color: rgba(246, 246, 242, 0.96);
}

h1 span:last-child {
  color: var(--ice);
}

.progress {
  position: absolute;
  top: 34.1%;
  right: 6.1%;
  color: rgba(118, 175, 205, 0.9);
  font-size: 12px;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.progress p {
  margin: 0;
}

.cursor {
  display: block;
  width: 14px;
  height: 1px;
  margin-top: 23px;
  background: rgba(190, 215, 226, 0.9);
  animation: blink 1.55s steps(1, end) infinite;
}

.coordinates {
  position: absolute;
  right: var(--edge-x);
  bottom: 18.1%;
  color: rgba(112, 162, 189, 0.88);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.coordinates p {
  margin: 0;
}

.coordinates span {
  display: block;
  width: 19px;
  height: 1px;
  margin-top: 20px;
  background: rgba(163, 198, 214, 0.67);
}

.site-footer {
  position: absolute;
  right: var(--edge-x);
  bottom: clamp(28px, 5.4vh, 58px);
  left: var(--edge-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(111, 161, 188, 0.88);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  transition: color 220ms ease;
}

.site-footer a span {
  margin-left: 7px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ice);
}

.site-footer a:focus-visible {
  outline: 1px solid rgba(148, 201, 227, 0.72);
  outline-offset: 7px;
}

.enter {
  opacity: 0;
  transform: translateY(8px);
  animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.enter--header {
  animation-delay: 80ms;
}

.enter--hero {
  animation-delay: 220ms;
}

.enter--detail {
  animation-delay: 420ms;
}

.enter--coordinates,
.enter--footer {
  animation-delay: 540ms;
}

@keyframes arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --edge-x: clamp(24px, 5vw, 40px);
    --hero-x: var(--edge-x);
  }

  .wallpaper {
    background-position: 56% center;
  }

  .hero {
    top: 25%;
  }

  .progress {
    display: none;
  }

  .coordinates {
    bottom: 15%;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 27px;
  }

  .wallpaper {
    background-image: url("wallpaper-1280.jpg");
    background-image: image-set(
      url("wallpaper-1280.webp") type("image/webp"),
      url("wallpaper-1280.jpg") type("image/jpeg")
    );
  }

  .brand {
    gap: 12px;
  }

  .brand__mark {
    --flag-size: 13px;
  }

  .brand__name {
    font-size: 11px;
    letter-spacing: 0.34em;
  }

  .brand__division {
    font-size: 8px;
    letter-spacing: 0.49em;
  }

  .principles {
    display: none;
  }

  .hero {
    top: 24%;
    right: var(--edge-x);
  }

  .eyebrow {
    margin-bottom: 26px;
    font-size: 9px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 1.02;
  }

  .coordinates {
    right: var(--edge-x);
    bottom: 15.5%;
    font-size: 9px;
  }

  .site-footer {
    bottom: 26px;
    gap: 18px;
    align-items: flex-end;
    font-size: 8px;
    line-height: 1.5;
  }

  .site-footer p {
    max-width: 145px;
    text-align: right;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .site-header {
    top: 24px;
  }

  .hero {
    top: 25%;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .progress {
    top: 38%;
  }

  .coordinates {
    bottom: 17%;
  }

  .site-footer {
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallpaper {
    transform: none;
  }

  .enter {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cursor {
    animation: none;
  }
}
