:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020711;
  color: #edf6fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #020711;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 77% 34%, rgba(31, 165, 207, 0.26), transparent 34%),
    radial-gradient(circle at 91% 79%, rgba(224, 94, 30, 0.14), transparent 30%),
    linear-gradient(145deg, #0a2038 0%, #04101f 56%, #020812 100%);
  content: "";
}

#scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  filter: brightness(1.1) contrast(1.03) saturate(1.08);
  transition: opacity 700ms ease;
}

.webgl-ready #scene {
  opacity: 1;
}

.chromatic-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 9, 21, 0.9) 0%, rgba(2, 9, 21, 0.64) 30%, rgba(2, 9, 21, 0.18) 51%, rgba(2, 9, 21, 0.02) 70%, transparent 84%),
    linear-gradient(180deg, rgba(1, 7, 16, 0.06), transparent 45%, rgba(1, 7, 16, 0.58));
}

.chromatic-veil::before {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5vw - 1px), rgba(91, 175, 202, 0.06) 12.5vw),
    linear-gradient(114deg, transparent 58%, rgba(120, 211, 230, 0.07) 70%, transparent 80%);
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.chromatic-veil::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 42%, transparent 0 26%, rgba(94, 213, 230, 0.028) 35%, transparent 58%),
    radial-gradient(ellipse at 92% 84%, rgba(242, 106, 30, 0.06), transparent 26%);
  content: "";
}

.page-shell {
  width: min(100%, 1760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 3.8vw, 64px) clamp(22px, 5vw, 88px) clamp(20px, 2.6vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.coordinates {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: rgba(181, 216, 226, 0.43);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.hero {
  align-self: end;
  width: min(920px, 100%);
  padding: clamp(180px, 32vh, 350px) 0 clamp(42px, 7vh, 88px);
  display: grid;
  grid-template-columns: 1px 1fr;
  gap: clamp(20px, 2.6vw, 42px);
}

.hero-rule {
  background: linear-gradient(to bottom, #63d4e2, #9eeaf1 38%, #e78b42 66%, rgba(112, 205, 222, 0.06));
  box-shadow: 0 0 28px rgba(77, 204, 224, 0.24);
}

.eyebrow {
  margin: 0 0 15px;
  color: #7ed7e4;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 720;
  letter-spacing: 0.31em;
  text-shadow: 0 0 20px rgba(78, 202, 223, 0.2);
}

h1 {
  margin: 0;
  color: #f1f8fa;
  font-size: clamp(64px, 10.5vw, 172px);
  font-weight: 760;
  letter-spacing: -0.092em;
  line-height: 0.78;
  text-shadow: 0 18px 52px rgba(0, 5, 13, 0.7);
}

h1 span {
  color: transparent;
  font-weight: 300;
  -webkit-text-stroke: 1px rgba(180, 222, 230, 0.62);
}

.intro {
  max-width: 620px;
  margin: clamp(28px, 4.5vh, 50px) 0 0;
  color: rgba(224, 238, 242, 0.72);
  font-size: clamp(14px, 1.08vw, 18px);
  font-weight: 360;
  letter-spacing: 0.055em;
  line-height: 1.85;
}

.meta-row {
  margin-top: 24px;
}

.disciplines {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: rgba(188, 217, 224, 0.52);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.disciplines span::before {
  margin-right: 7px;
  color: #51c7db;
  content: "/";
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(178, 207, 214, 0.35);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.record-links {
  justify-self: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #9eeaf1;
}

.site-footer a:focus-visible {
  outline: 1px solid #63d4e2;
  outline-offset: 4px;
}

.site-footer span:last-child {
  justify-self: end;
  color: rgba(98, 198, 216, 0.45);
}

@media (max-width: 760px) {
  .chromatic-veil {
    background:
      linear-gradient(180deg, rgba(2, 9, 20, 0.04), transparent 28%, rgba(2, 9, 20, 0.62) 54%, rgba(2, 9, 20, 0.91) 76%),
      linear-gradient(90deg, rgba(2, 9, 20, 0.3), transparent);
  }

  .chromatic-veil::before {
    opacity: 0.1;
  }

  .hero {
    padding: 260px 0 38px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 94px);
  }

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }

  .site-footer span:last-child {
    display: none;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(62px, 9vw, 112px);
  }

  .intro {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #scene {
    transition: none;
  }
}
