:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f4f0e8;
  --muted: rgba(244, 240, 232, .68);
  --line: rgba(244, 240, 232, .18);
  --amber: #e7b35a;
  --mineral: #7cc7bd;
  --rose: #c56d77;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 7200px;
  background:
    radial-gradient(circle at 18% 22%, rgba(199, 109, 119, .16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(124, 199, 189, .12), transparent 24rem),
    linear-gradient(130deg, #050505, #11100e 46%, #07090a);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .36), transparent 25%, transparent 70%, rgba(0, 0, 0, .48)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.experience {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 3vw, 34px);
  pointer-events: auto;
}

.brand,
.nav-actions a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--amber), var(--mineral), var(--rose), var(--amber));
  box-shadow: 0 0 24px rgba(231, 179, 90, .8);
}

.nav-actions {
  display: flex;
  gap: clamp(12px, 2vw, 30px);
  font-size: 13px;
  color: var(--muted);
}

.nav-actions a {
  opacity: .72;
  transition: opacity .2s ease;
}

.nav-actions a:hover {
  opacity: 1;
}

.panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: clamp(76px, 9vw, 126px) clamp(20px, 6vw, 96px);
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(.985);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

.panel.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.hero {
  grid-template-columns: minmax(280px, 760px) 1fr;
  gap: 32px;
}

.split {
  grid-template-columns: minmax(280px, 620px) minmax(240px, 420px);
  justify-content: space-between;
  gap: clamp(28px, 8vw, 120px);
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.compact {
  align-items: end;
  padding-bottom: clamp(70px, 13vw, 150px);
}

.copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 640;
  line-height: .92;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(54px, 11vw, 138px);
}

h2 {
  font-size: clamp(42px, 7vw, 92px);
}

.copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.55;
}

.metrics,
.spec-grid,
.control-readout {
  width: min(100%, 420px);
  justify-self: end;
  align-self: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08));
  backdrop-filter: blur(16px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics div,
.spec-grid div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child,
.spec-grid div:nth-child(even) {
  border-right: 0;
}

.metrics strong,
.spec-grid strong,
.control-readout strong {
  display: block;
  font-size: clamp(24px, 3.3vw, 42px);
  line-height: 1;
}

.metrics span,
.spec-grid span,
.control-readout span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.control-readout {
  padding: 22px;
}

.control-readout strong {
  margin-top: 12px;
  font-size: clamp(56px, 8vw, 86px);
}

.bar {
  height: 3px;
  margin-top: 24px;
  background: rgba(244, 240, 232, .14);
  overflow: hidden;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--mineral), var(--rose));
}

.scroll-space {
  height: 7200px;
}

@media (max-width: 760px) {
  body {
    min-height: 6000px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .panel {
    padding: 92px 18px 34px;
  }

  h1,
  h2 {
    max-width: 10ch;
  }

  .metrics,
  .spec-grid,
  .control-readout {
    justify-self: stretch;
  }

  .metrics div,
  .spec-grid div {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    transition: none;
  }
}
