:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #070911;
  color: #f0f2fb;
  --muted: #a2acc5;
  --line: #262c42;
  --accent: #aaabff;
  --gutter: clamp(1rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background: radial-gradient(ellipse at 50% 45%, #1a172b 0%, #0b0d1a 46%, #070911 76%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#9d9bff15 1px, transparent 1px), linear-gradient(90deg, #9d9bff15 1px, transparent 1px);
  background-size: 54px 54px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #0000 14%, #0009 52%, #0000 79%);
}

.hero-frame {
  position: absolute;
  inset: var(--gutter);
  pointer-events: none;
  border: 1px solid #a8b4fa1c;
  --tick: #a8b4fa57;
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 16px 1px,
    linear-gradient(var(--tick), var(--tick)) top left / 1px 16px,
    linear-gradient(var(--tick), var(--tick)) top right / 16px 1px,
    linear-gradient(var(--tick), var(--tick)) top right / 1px 16px,
    linear-gradient(var(--tick), var(--tick)) bottom left / 16px 1px,
    linear-gradient(var(--tick), var(--tick)) bottom left / 1px 16px,
    linear-gradient(var(--tick), var(--tick)) bottom right / 16px 1px,
    linear-gradient(var(--tick), var(--tick)) bottom right / 1px 16px;
  background-repeat: no-repeat;
}

.site-menu {
  position: absolute;
  inset-block-start: calc(var(--gutter) + .65rem);
  inset-inline-end: calc(var(--gutter) + .65rem);
  z-index: 1;
}

.site-menu summary {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #0c0e1a;
  color: #f0f2fb;
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::before, .site-menu summary::after { content: ""; }
.site-menu summary::before, .site-menu summary::after, .site-menu summary span {
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.site-menu[open] summary, .site-menu summary:hover { border-color: var(--accent); }

.site-menu nav {
  position: absolute;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  width: min(16rem, calc(100vw - 3.5rem));
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #0c0e1a;
  box-shadow: 0 .8rem 2rem #0008;
}

.site-menu ul { margin: 0; padding: 0; list-style: none; }

.site-menu a {
  display: block;
  padding: .7rem .75rem;
  border-radius: .35rem;
  color: #f0f2fb;
  font-size: .925rem;
  font-weight: 600;
  text-decoration: none;
}

.site-menu a:hover { background: #191c2e; }

.error-hero {
  --accent: #ff767e;
  --line: #573036;
  --muted: #f5c7c9;
  background: radial-gradient(ellipse at 50% 43%, #251421 0%, #0c0c18 49%, #070911 78%);
}

.error-hero::before {
  background-image: linear-gradient(#ff727315 1px, transparent 1px),
    linear-gradient(90deg, #ff727315 1px, transparent 1px);
}

.error-hero .hero-frame {
  --tick: #fd737364;
  border-color: #ff6b722b;
}

.error-content {
  display: grid;
  justify-items: center;
  text-align: center;
  width: 100%;
  padding: calc(var(--gutter) + .75rem) var(--gutter) calc(var(--gutter) + 4.5rem);
}

.error-logo {
  display: block;
  width: clamp(3.65rem, 9svh, 5rem);
  height: auto;
}

.error-art {
  display: block;
  width: min(92vw, 46rem, 81svh);
  margin-block: -1rem;
  mix-blend-mode: screen;
  filter: hue-rotate(123deg) saturate(1.2);
}

.error-art img { display: block; width: 100%; height: auto; }

.error-title {
  margin: 0;
  color: #fff3f1;
  font: italic 900 clamp(1.6rem, 5.8vw, 3.25rem) / 1.02 "Arial Black", system-ui, sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 2px 3px #9e172d;
}

.error-home {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  margin-top: clamp(1.25rem, 3svh, 1.75rem);
  padding: .5rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: .35rem;
  color: #fff3f1;
  background: #32121c;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.error-home:hover { background: #571928; }

.hero-content {
  display: grid;
  justify-items: center;
  gap: clamp(.65rem, 2svh, 1.25rem);
  padding: calc(var(--gutter) + 1rem) 0 calc(var(--gutter) + 5.5rem);
}

.brand-logo {
  margin: 0;
  width: min(78vw, 26rem, 53svh);
}

.brand-logo img { display: block; width: 100%; height: auto; }

.platform-links {
  display: flex;
  gap: .75rem;
}

.platform-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  width: clamp(7rem, 37vw, 8rem);
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #0c0e1a;
  color: #f0f2fb;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.platform-links a:hover { border-color: var(--accent); }
.platform-links img { display: block; object-fit: contain; }

.contact-link, .motion-control {
  position: absolute;
  bottom: calc(var(--gutter) + clamp(.65rem, 2vh, 1.35rem));
}

.contact-link {
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  color: #e1e5fa;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.down-arrow {
  position: relative;
  display: block;
  width: 1px;
  height: 21px;
  background: currentColor;
  color: var(--accent);
  transition: transform 160ms ease;
}

.down-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.contact-link:hover .down-arrow { transform: translateY(4px); }

.motion-control {
  right: calc(var(--gutter) + .65rem);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: #0c0e1a;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.motion-control:hover { color: white; border-color: var(--accent); }
.playback-icon { width: 9px; height: 12px; border-inline: 2px solid currentColor; }
.motion-control[data-paused="true"] .playback-icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}

.contact {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 12vh, 8rem) max(var(--gutter), 1.5rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 18% 8%, #15172b 0%, #0b0d18 39%, #070911 78%);
}

.contact:focus { outline: none; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100%, 67rem);
}

h2 {
  margin: 0;
  font-size: clamp(3.35rem, 8vw, 6.25rem);
  font-weight: 650;
  line-height: .92;
  letter-spacing: -.085em;
}

h2 span { color: var(--accent); }
.contact-flow, form { min-width: 0; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
form label { display: grid; gap: .55rem; margin-bottom: 1.25rem; font-size: .9375rem; font-weight: 550; }

input, textarea {
  width: 100%;
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #0b0e1a;
  color: #f0f2fb;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); outline-offset: 2px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

button[type="submit"] {
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  background: #d4d7ff;
  color: #12152d;
  cursor: pointer;
  font-weight: 650;
}

button[type="submit"]:hover { background: #eef0ff; }
button[type="submit"]:disabled { cursor: default; opacity: .65; }
.form-status { margin: 0; color: var(--muted); font-size: .9375rem; }
.form-status:not(:empty) { margin-top: .75rem; }
.form-status[data-kind="error"] { color: #ffb7c3; }
.form-status[data-kind="success"] { color: #abe5c8; }
#contact-challenge:not(:empty) { margin-bottom: .75rem; }
.verify-instructions { margin: 0 0 1.25rem; color: var(--muted); }
.start-over {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: .8rem .25rem;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-link, .site-footer a { color: var(--accent); text-underline-offset: .2em; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

.privacy-page {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: clamp(2rem, 7vw, 5rem) max(var(--gutter), 1.5rem);
}

.privacy-page h1 {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -.04em;
}

.privacy-page h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: normal;
}

.privacy-page p { margin: .5rem 0 1rem; line-height: 1.65; }

@media (max-width: 46rem) {
  .contact-layout { grid-template-columns: 1fr; max-width: 35rem; }
}

@media (max-width: 31rem) {
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .down-arrow { transition: none; }
}
