:root {
  color-scheme: dark;
  --bg: #231f20;
  --paper: #fff;
  --text: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: Montserrat, Arial, sans-serif;
}

.temporary-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--paper);
}

#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  transform: translateY(var(--home-y, 0px));
}

#world:active {
  cursor: grabbing;
}

#cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.temporary-header {
  position: absolute;
  left: clamp(24px, 4.2vw, 82px);
  right: clamp(24px, 4.2vw, 82px);
  top: clamp(6px, 1.55vw, 20px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  opacity: var(--intro-progress, 0);
  transform: translateY(var(--header-y, -16px));
  pointer-events: none;
  transition:
    opacity 1500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.temporary-hero.is-revealed .temporary-header {
  pointer-events: auto;
}

.temporary-logo {
  display: block;
  width: clamp(108px, 14.5vw, 165px);
  line-height: 0;
}

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

.temporary-contact {
  position: relative;
  display: inline-grid;
  width: clamp(104px, 7.8vw, 130px);
  min-width: 104px;
  place-items: center;
  color: var(--text);
  font-family: "PT Sans", Arial, sans-serif;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.temporary-contact img,
.temporary-contact span {
  grid-area: 1 / 1;
}

.temporary-contact img {
  display: block;
  width: 100%;
  height: auto;
}

.temporary-contact span {
  padding: 0 13px 1px 7px;
  font-size: clamp(12px, 1.02vw, 19px);
}

.temporary-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(850px, calc(100vw - 40px));
  transform:
    translate(
      -50%,
      calc(-50% + var(--home-y, 0px) + var(--copy-shift, 0px))
    );
  pointer-events: none;
  text-align: center;
  transition: transform 1700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.temporary-copy h1 {
  margin: 0;
  color: var(--text);
  font-family: "Alumni Sans", "AlumniSansRoman-Medium", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.temporary-copy p {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(15px, 1.55vw, 24px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  opacity: var(--intro-progress, 0);
  transform: translateY(var(--subcopy-y, 12px));
  transition:
    opacity 1700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-missing-engine .temporary-hero::after {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(520px, calc(100vw - 40px));
  transform: translateX(-50%);
  color: var(--text);
  content: "Matter.js did not load. Connect to the internet or replace the CDN script with a local Matter.js file.";
  font: 14px/1.4 Arial, sans-serif;
  text-align: center;
  opacity: 0.72;
}

@media (max-width: 760px) {
  .temporary-header {
    left: 20px;
    right: 20px;
  }

  .temporary-logo {
    width: 132px;
  }

  .temporary-contact {
    width: 132px;
    min-width: 132px;
  }

  .temporary-contact span {
    font-size: 15px;
  }
}
