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

* {
  box-sizing: border-box;
}

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

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 72% 42%, rgba(205, 151, 80, 0.13), transparent 25%),
    radial-gradient(circle at 64% 44%, rgba(83, 115, 146, 0.15), transparent 47%),
    linear-gradient(135deg, #101929 0%, #070b13 48%, #030508 100%);
  content: "";
}

#scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 15, 0.92) 0%, rgba(4, 8, 15, 0.64) 35%, transparent 62%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.24), transparent 22%, transparent 72%, rgba(4, 8, 15, 0.76));
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.72) 0 0.45px, transparent 0.7px 4px),
    repeating-radial-gradient(circle at 73% 61%, rgba(255, 255, 255, 0.46) 0 0.35px, transparent 0.65px 5px);
  background-size: 7px 9px, 11px 13px;
  content: "";
  mix-blend-mode: soft-light;
}

.page-shell {
  width: min(100%, clamp(1600px, 78vw, 3000px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px) clamp(22px, 6vw, 96px) clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(237, 231, 219, 0.66);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
}

.brand-moon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8eee0, #8b755c);
  box-shadow: 0 0 18px rgba(244, 194, 122, 0.24);
}

.brand-moon::after {
  position: absolute;
  inset: 1px 1px 1px 5px;
  border-radius: inherit;
  background: #0a101b;
  content: "";
}

.brand-orbit {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(219, 170, 99, 0.48);
  border-radius: 50%;
  transform: rotate(-28deg) scaleY(0.45);
}

.brand-copy {
  display: grid;
  gap: 2px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.brand-copy span:last-child {
  color: rgba(219, 170, 99, 0.76);
}

.hero {
  width: min(670px, 92%);
  align-self: center;
  padding: clamp(56px, 9vh, 112px) 0 clamp(48px, 8vh, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #d7a966;
  font-size: clamp(10px, 0.75vw, 12px);
  font-weight: 700;
  letter-spacing: 0.28em;
}

h1 {
  margin: 0;
  color: #f7f1e6;
  font-family: Georgia, "Times New Roman", serif;
  width: fit-content;
  font-size: clamp(56px, 9vw, 136px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.32);
}

h1 span {
  display: block;
  margin-left: 0.42em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 224, 204, 0.62);
}

.intro {
  max-width: 550px;
  margin: clamp(30px, 5vh, 56px) 0 0;
  color: rgba(243, 239, 231, 0.76);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 350;
  letter-spacing: 0.04em;
  line-height: 1.85;
}

.disciplines {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(235, 221, 201, 0.54);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.disciplines span {
  position: relative;
}

.disciplines span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c38b49;
  content: "";
}

.personal-note {
  margin: 18px 0 0;
  color: rgba(232, 226, 214, 0.4);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-footer {
  min-height: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(231, 225, 214, 0.52);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.record-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

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

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

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.police-record img {
  width: 16px;
  height: 17px;
  object-fit: contain;
}

.divider {
  width: 1px;
  height: 12px;
  background: rgba(236, 226, 211, 0.2);
}

.render-status {
  grid-column: 3;
  justify-self: end;
  color: rgba(215, 169, 102, 0.46);
  font-size: 9px;
  letter-spacing: 0.18em;
}

@media (max-width: 760px) {
  .atmosphere {
    background: linear-gradient(180deg, rgba(4, 8, 15, 0.22), rgba(4, 8, 15, 0.56) 42%, rgba(4, 8, 15, 0.88));
  }

  .page-shell {
    padding-bottom: 18px;
  }

  .hero {
    width: 100%;
    align-self: end;
    padding: 190px 0 42px;
  }

  h1 {
    font-size: clamp(52px, 18vw, 84px);
  }

  h1 span {
    margin-left: 0.35em;
  }

  .site-footer {
    display: flex;
    justify-content: center;
  }

  .record-links {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .render-status {
    display: none;
  }
}

@media (max-width: 440px) {
  .record-links {
    flex-direction: column;
    gap: 7px;
  }

  .divider {
    display: none;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .hero {
    padding-block: 38px;
  }

  h1 {
    font-size: clamp(54px, 8vw, 100px);
  }

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

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

  .site-footer a {
    transition: none;
  }
}
