:root {
  --ink: #080a08;
  --paper: #e7ece5;
  --acid: #caff45;
}

* { box-sizing: border-box; }

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

body {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

.experience {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 69% 50%, rgba(93, 107, 77, 0.11), transparent 29%),
    linear-gradient(115deg, #0a0c0a 0%, #070807 58%, #090b08 100%);
}

.noise {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.hero {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 56% 44%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0 clamp(40px, 7vw, 112px);
  pointer-events: none;
}

.identity {
  position: absolute;
  bottom: clamp(24px, 3.5vw, 48px);
  left: clamp(28px, 7vw, 112px);
  z-index: 3;
  display: inline-flex;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.identity:hover { color: var(--paper); }

.identity:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--acid);
  outline-offset: 6px;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6.35vw, 102px);
  font-weight: 430;
  line-height: 0.9;
  letter-spacing: -0.068em;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 236, 229, 0.52);
}

.cube-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cube-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

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

@media (max-width: 760px) {
  .hero { display: block; }
  .hero-copy { position: absolute; top: 12%; left: 0; padding: 0 28px; }
  .identity { bottom: 24px; left: 28px; }
  h1 { font-size: clamp(42px, 13vw, 68px); }
  .cube-stage { top: 19%; }
}

@media (max-height: 620px) and (min-width: 761px) {
  .hero-copy { padding-left: 44px; }
}
