@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --cobalt-blue: #315cff;
  --ink-black: #121212;
  --ivory: #f5f2ea;
  --white: #ffffff;
  --page-gutter: clamp(10px, 1.4vw, 24px);
  --board-radius: clamp(16px, 1.25vw, 24px);
}

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

html {
  min-width: 320px;
  background: #0b0b0c;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0%, #242426 0, #111113 42%, #080809 100%);
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.viewport {
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--page-gutter);
}

.board {
  isolation: isolate;
  position: relative;
  min-height: calc(100vh - (2 * var(--page-gutter)));
  min-height: calc(100svh - (2 * var(--page-gutter)));
  overflow: hidden;
  border: 1px solid rgba(245, 242, 234, 0.35);
  border-radius: var(--board-radius);
  background:
    radial-gradient(circle at 26% 43%, #1a1a1c 0%, var(--ink-black) 52%, #0d0d0e 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.board__blue,
.board__glow,
.board__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.board__blue {
  z-index: 0;
  top: -10%;
  right: 0;
  bottom: auto;
  left: auto;
  width: auto;
  height: 120%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: right top;
}

.board__glow {
  z-index: 1;
  background:
    linear-gradient(105deg, transparent 51%, rgba(121, 150, 255, 0.12) 58%, transparent 72%),
    radial-gradient(circle at 6% 96%, rgba(255, 255, 255, 0.05), transparent 27%);
  mix-blend-mode: screen;
}

.board__grain {
  z-index: 2;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.topbar,
.corner-mark,
.hero,
.footer {
  position: absolute;
  z-index: 3;
}

.topbar {
  top: clamp(28px, 5.5vh, 64px);
  left: clamp(26px, 4vw, 76px);
}

.logo-slot {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  text-decoration: none;
}

.logo-slot > img {
  display: block;
  width: clamp(100px, 9vw, 170px);
  max-height: 52px;
  object-fit: contain;
  object-position: left top;
}

.logo-slot__name {
  color: var(--white);
  font-size: clamp(24px, 2.05vw, 38px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
}

.logo-slot__name > span {
  font-weight: 600;
}

.logo-slot__mark {
  color: var(--cobalt-blue);
  font-size: 8px;
  line-height: 1;
}

.corner-mark {
  top: clamp(22px, 3vw, 48px);
  right: clamp(22px, 3vw, 48px);
  width: clamp(210px, 22vw, 340px);
  aspect-ratio: 1;
  opacity: 0.36;
  pointer-events: none;
}

.corner-mark > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero {
  top: 48%;
  left: clamp(26px, 4vw, 76px);
  width: min(64vw, 980px);
  transform: translateY(-40%);
}

.hero__index {
  margin: 0 0 clamp(18px, 2.6vh, 30px);
  color: rgba(245, 242, 234, 0.52);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(56px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0556;
  text-wrap: balance;
}

h1 > span {
  color: var(--cobalt-blue);
}

.hero__copy {
  margin: clamp(24px, 4vh, 46px) 0 0;
  color: rgba(245, 242, 234, 0.74);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
}

.footer {
  right: clamp(26px, 4vw, 76px);
  bottom: clamp(24px, 4vh, 48px);
  left: clamp(26px, 4vw, 76px);
}

.footer > p {
  margin: 0;
  color: rgba(245, 242, 234, 0.43);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

@media (max-width: 1024px) {
  .board__blue {
    top: 0;
    right: 0;
    bottom: auto;
    width: clamp(180px, 42vw, 420px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
  }

  .corner-mark {
    display: none;
  }
}

@media (max-width: 760px) {
  .board__blue {
    top: 0;
    width: clamp(140px, 38vw, 180px);
    height: auto;
  }

  .hero {
    top: 47%;
    width: calc(100% - 52px);
    transform: translateY(-38%);
  }

  h1 {
    font-size: clamp(40px, 12.31vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.0833;
  }

  .hero__copy {
    max-width: 310px;
  }

  .desktop-break {
    display: none;
  }

}

@media (max-height: 620px) and (orientation: landscape) {
  .topbar {
    top: 24px;
  }

  .hero {
    top: 53%;
  }

  .hero__index {
    display: none;
  }

  h1 {
    font-size: clamp(44px, 9vw, 76px);
  }

  .hero__copy {
    margin-top: 18px;
    font-size: 14px;
  }

  .footer {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
