:root {
  color-scheme: dark;
  --bg: #14101b;
  --panel: #1b1523;
  --line: #3b2d43;
  --paper: #fff5e8;
  --muted: #c6b8c9;
  --accent: #ffae63;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 96px, 1230px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { min-height: 71px; }
.wordmark { display: inline-flex; gap: 8px; align-items: center; font-size: 1.17rem; font-weight: 750; letter-spacing: -.045em; }
.topbar nav { display: flex; gap: clamp(16px, 4vw, 44px); align-items: center; }
.topbar nav a, .footer-inner > a:last-child { color: var(--muted); font-size: .88rem; }
.topbar nav a:hover, .footer-inner > a:last-child:hover { color: var(--accent); }

.hero { padding: clamp(56px, 8vw, 112px) 0; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(32px, 5.4vw, 86px); }
.eyebrow { margin: 0 0 22px; font-size: .75rem; text-transform: uppercase; letter-spacing: .17em; font-weight: 700; color: var(--accent); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(3.1rem, 5.8vw, 6.25rem); line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--accent); }
.lede { max-width: 31ch; margin: 27px 0 31px; font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.65; color: var(--muted); }
.button { min-height: 48px; width: fit-content; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 17px; border: 1px solid transparent; border-radius: 5px; font-size: .91rem; font-weight: 750; }
.primary { background: var(--accent); color: #261026; }
.primary:hover { background: #ffd0a1; }
.secondary { border-color: var(--line); color: var(--paper); }
.secondary:hover { border-color: var(--accent); color: var(--accent); }

.demo { margin: 0; scroll-margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 70px #09060e80; }
.demo-stage { position: relative; display: grid; aspect-ratio: 4 / 3; min-height: 260px; background: #130c1c; }
.demo-poster, .demo-stage > .splat-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-poster { object-fit: cover; }
.demo-stage > .splat-viewer { min-height: 0; max-height: none; border-radius: 0; }
.demo-play { position: absolute; z-index: 1; place-self: center; min-width: 64px; min-height: 64px; padding: 9px; color: var(--paper); background: #24162aca; border: 1px solid #ffc389; border-radius: 999px; cursor: pointer; }
.demo-play:hover { background: #442241; }
.demo-play span { display: block; transform: translateX(2px); font-size: 1.2rem; }
.demo-play:disabled { cursor: wait; }
.js-message { position: absolute; bottom: 8px; justify-self: center; margin: 8px; padding: 8px 12px; background: var(--bg); }
figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 13px 17px; }
figcaption strong { display: block; margin-bottom: 4px; font-size: .96rem; }
figcaption span { font-size: .77rem; color: var(--muted); }
.caption-tag { white-space: nowrap; }
.caption-tag span { color: var(--accent); }

.workflow { padding: 36px 0 58px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
h2 { margin: 0 0 25px; font-size: clamp(2.02rem, 3.3vw, 3.4rem); letter-spacing: -.043em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: clamp(17px, 2.3vw, 29px); }
.step-label { color: var(--accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.steps h3 { font-size: 1.15rem; margin: 13px 0 7px; }
.steps p, .project p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 55ch; }
.project { padding: 37px 0 56px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.project h2 { margin-bottom: 10px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 69px; }

@media (max-width: 880px) {
  .wrap { width: min(100% - 48px, 680px); }
  .hero { grid-template-columns: 1fr; padding: 58px 0 48px; }
  h1 { font-size: clamp(3.05rem, 9vw, 5.5rem); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 34px); }
  .topbar-inner { min-height: 60px; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: .78rem; }
  .steps { grid-template-columns: 1fr; }
  .workflow { padding-bottom: 38px; }
}
