* {
  box-sizing: border-box;
}

:root {
  --cream: #eee7dc;
  --paper: #f7f3ec;
  --ink: #181614;
  --muted: #6e675f;
  --dark: #151311;
  --line: rgba(24, 22, 20, 0.14);
  --accent: #a86f42;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

body.interactive-model #webgi-canvas {
  pointer-events: auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 18px;
  background: var(--dark);
  color: white;
  padding: 32px;
}

.loader__brand {
  letter-spacing: .22em;
  font-size: 12px;
  text-align: center;
}

.loader__bar {
  width: min(360px, 70vw);
  height: 2px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}

.loader p {
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.loader--error {
  background: #2b1914;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  mix-blend-mode: difference;
  color: white;
}

.logo {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 42px);
}

.nav a,
.header__cta {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .04em;
}

.header__cta {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.section {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hero {
  display: flex;
  align-items: center;
  padding: 120px 8vw;
}

.content {
  position: relative;
  z-index: 5;
  max-width: 620px;
}

.hero__content {
  margin-top: -4vh;
}

.eyebrow {
  display: block;
  margin-bottom: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(58px, 8.5vw, 132px);
}

h2 {
  font-size: clamp(52px, 7vw, 106px);
}

h1 em,
h2 em {
  font-style: italic;
}

p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.button {
  display: inline-flex;
  margin-top: 24px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: .25s ease;
}

.button:hover {
  background: var(--ink);
  color: white;
}

.button--outline {
  background: transparent;
}

.section--dark {
  background: var(--dark);
  color: white;
}

.section--dark p,
.section--cream p {
  color: rgba(255,255,255,.62);
}

.section--cream {
  background: var(--cream);
}

.story {
  display: flex;
  align-items: center;
  padding: 10vw;
}

.story__content {
  max-width: 580px;
}

.content--right {
  margin-left: auto;
  margin-right: 4vw;
}

.spec {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 34px;
}

.spec b {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 500;
}

.spec span {
  font-size: 10px;
  letter-spacing: .15em;
}

.explore {
  display: flex;
  align-items: flex-end;
  padding: 9vw;
}

.explore__content {
  margin-bottom: 8vh;
}

.buy {
  display: grid;
  place-items: center;
  text-align: center;
}

.buy__content {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.buy__content p {
  text-align: center;
}

#webgi-canvas-container {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#webgi-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.model-help {
  position: fixed;
  z-index: 10;
  left: 32px;
  bottom: 30px;
  display: grid;
  gap: 4px;
  font-size: 10px;
  letter-spacing: .14em;
  pointer-events: none;
}

.model-help span {
  opacity: .45;
}

.model-help b {
  font-size: 12px;
  letter-spacing: .04em;
}

.scroll-hint {
  position: absolute;
  z-index: 5;
  left: 8vw;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
}

.scroll-hint span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

@media (max-width: 800px) {
  .header {
    height: 64px;
  }

  .nav {
    display: none;
  }

  .hero,
  .story,
  .explore {
    padding: 100px 7vw;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 15vh;
  }

  .content--right {
    margin-left: 0;
    margin-right: 0;
  }

  .model-help {
    left: 18px;
    bottom: 18px;
  }

  .scroll-hint {
    left: 7vw;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
