:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f8f4ec;
  --muted: rgba(248, 244, 236, 0.72);
  --quiet: rgba(248, 244, 236, 0.48);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body {
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
}

body,
canvas {
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background:
    radial-gradient(circle at 58% 58%, rgba(66, 114, 64, 0.12), transparent 29rem),
    radial-gradient(circle at 36% 40%, rgba(178, 36, 44, 0.1), transparent 25rem),
    #030303;
}

.stage::before,
.stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.stage::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.9), transparent 24%, transparent 76%, rgba(3, 3, 3, 0.86)),
    linear-gradient(180deg, rgba(3, 3, 3, 0.62), transparent 22%, transparent 70%, rgba(3, 3, 3, 0.8));
}

.stage::after {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle at 53% 55%, black 0 34rem, transparent 53rem);
}

#ixoraCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.masthead {
  position: absolute;
  top: clamp(1rem, 2.4vw, 2rem);
  left: clamp(1rem, 3vw, 2.6rem);
  right: clamp(1rem, 3vw, 2.6rem);
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  font-weight: 850;
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: 0 0 1.4rem rgba(255, 248, 230, 0.1);
}

.masthead p {
  width: min(22rem, 40vw);
  margin: 0.25rem 0 0;
  font-size: clamp(0.68rem, 0.86vw, 0.96rem);
  font-weight: 700;
  line-height: 1.18;
  text-align: right;
  text-transform: uppercase;
  color: var(--muted);
}

.side-note {
  position: absolute;
  top: 39%;
  left: clamp(0.9rem, 2.1vw, 1.75rem);
  z-index: 2;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--quiet);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
}

.brand-mark {
  position: absolute;
  left: clamp(1rem, 3vw, 2.6rem);
  bottom: clamp(1.2rem, 3vw, 2.2rem);
  z-index: 2;
  width: clamp(3.8rem, 6.6vw, 6.2rem);
  aspect-ratio: 1;
  color: rgba(248, 244, 236, 0.82);
  pointer-events: none;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 1.1rem rgba(248, 244, 236, 0.1));
}

.brand-mark path,
.brand-mark circle {
  fill: currentColor;
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .stage {
    min-height: 640px;
  }

  .masthead {
    display: grid;
    gap: 0.9rem;
  }

  .masthead p {
    width: min(16rem, 76vw);
    text-align: left;
  }

  h1 {
    font-size: clamp(4.2rem, 19vw, 6.6rem);
  }

  .side-note {
    top: auto;
    bottom: 7.6rem;
  }

  .brand-mark {
    width: 4.25rem;
  }
}
