:root {
  --bg-top: #06070d;
  --bg-bottom: #0d0c10;
  --ink: #ece4d3;
  --card: rgba(13, 16, 18, 0.84);
  --panel: rgba(18, 17, 14, 0.72);
  --line: rgba(236, 228, 211, 0.2);
  --soft-line: rgba(236, 228, 211, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  --cube-glow: rgba(198, 173, 109, 0.22);
  --cube-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #081325;
  color: var(--ink);
  font-family: "VT323", monospace;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.hero {
  min-height: 5vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
  padding: 250px 0 32px;
}

.hero__name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
}

.hero__headline {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.25rem, 5vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1;
}

.content-block{
  margin-top: 200px;
}
.contact {
  margin-top: 100px;
}

.section-title {
  margin: 0 0 -10px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.7rem);
  letter-spacing: 0.08em;
}

.cube-browser {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.cube-browser__viewport {
  --cube-size: clamp(240px, 33vw, 360px);
  position: relative;
  width: 100%;
  min-height: clamp(320px, 46vw, 470px);
  display: grid;
  place-items: center;
  padding: 18px 0 26px;
  perspective: 1800px;
  perspective-origin: 50% 45%;
}

.cube-browser__cube {
  --cube-depth: calc(var(--cube-size) / 2);
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
}

.cube-browser__cube.is-snapping {
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cube-browser__cube.is-dragging {
  cursor: grabbing;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: stretch;
  padding: 18px;
  overflow: hidden;
  border: 2px solid rgba(236, 228, 211, 0.48);
  background:
    linear-gradient(160deg, rgba(23, 24, 28, 0.84), rgba(8, 8, 10, 0.94)),
    var(--card);
  box-shadow:
    var(--cube-shadow),
    inset 0 0 0 1px rgba(236, 228, 211, 0.06);
  color: inherit;
  backface-visibility: hidden;
}

.cube-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(236, 228, 211, 0.08);
  pointer-events: none;
  z-index: 1;
}

.cube-face.is-front {
  border-color: rgba(245, 236, 211, 0.84);
  box-shadow:
    0 0 0 1px rgba(245, 236, 211, 0.1),
    0 38px 90px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(198, 173, 109, 0.12);
}

.cube-face.is-clickable {
  cursor: pointer;
}

.cube-face:focus-visible {
  outline: none;
  border-color: rgba(255, 244, 212, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 244, 212, 0.14),
    0 38px 90px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(198, 173, 109, 0.16);
}

.cube-face__media,
.cube-face__placeholder,
.cube-face__preview,
.cube-face__gif,
.cube-face__scrim {
  position: absolute;
  inset: 0;
}

.cube-face__placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(52, 70, 58, 0.22), rgba(121, 92, 54, 0.12)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      rgba(236, 228, 211, 0.05) 28px,
      rgba(236, 228, 211, 0.05) 29px
    );
  color: rgba(243, 237, 227, 0.72);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.cube-face__preview,
.cube-face__gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cube-face__gif {
  opacity: 0;
  transition: opacity 350ms ease;
}

.cube-face.is-front.has-gif:is(:hover, :focus-visible) .cube-face__gif {
  opacity: 1;
}

.cube-face__scrim {
  background:
    linear-gradient(180deg, rgba(2, 3, 5, 0.18) 0%, rgba(4, 4, 6, 0.4) 44%, rgba(4, 4, 6, 0.95) 100%);
}

.cube-face__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px 5px;
  border: 2px solid rgba(236, 228, 211, 0.78);
  background: rgba(14, 14, 12, 0.86);
  color: var(--ink);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cube-face[data-stage="prototype"] .cube-face__badge {
  border-color: rgba(143, 169, 156, 0.8);
  color: rgba(214, 230, 222, 0.92);
}

.cube-face[data-stage="soon"] .cube-face__badge {
  border-color: rgba(236, 228, 211, 0.34);
  color: rgba(236, 228, 211, 0.72);
}

.cube-face__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  align-content: end;
  justify-items: center;
  padding-bottom: 30px;
  text-align: center;
}

.cube-face__title {
  margin: 0;
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  letter-spacing: 0.06em;
  line-height: 0.98;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.cube-browser__counter {
  margin: 0;
  text-align: center;
}

.cube-browser__counter {
  min-height: 1.2em;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
}

.contact {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact__blurb {
  margin: 0 auto 20px;
  max-width: 620px;
  font-size: 0rem;
  line-height: 1.3;
}

.contact__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact__item {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact__item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.62);
}

.contact__item:focus-visible {
  outline: none;
  transform: translate(-2px, -2px);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.62);
}

.contact__icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(92%) sepia(15%) saturate(285%) hue-rotate(357deg) brightness(101%) contrast(90%);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .cube-browser__viewport {
    --cube-size: clamp(230px, 46vw, 320px);
    min-height: clamp(320px, 58vw, 440px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 28px;
  }

  .hero {
    min-height: 34vh;
  }

  .cube-browser__viewport {
    --cube-size: min(78vw, 290px);
    min-height: clamp(300px, 84vw, 380px);
    padding-bottom: 20px;
  }

  .cube-face {
    padding: 14px;
  }

  .cube-face__badge {
    top: 12px;
    right: 12px;
  }

  .cube-face__content {
    padding-bottom: 24px;
  }

  .contact__list {
    flex-direction: column;
  }

  .contact__item {
    justify-content: center;
  }
}
