/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero .glow {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 110vmin;
  height: 110vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 34%, transparent) 0%,
    transparent 60%
  );
  z-index: -1;
}
.hero .gridlines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 20%, transparent 70%);
}
.bignum-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bignum {
  position: absolute;
  left: 56%;
  top: 54%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--f-name);
  font-size: clamp(380px, 60vw, 980px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(
    180deg,
    var(--hot) 0%,
    var(--accent) 45%,
    color-mix(in srgb, var(--accent) 22%, var(--bg)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.92;
}
.portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: min(84svh, 880px);
  aspect-ratio: 1000/973;
  max-width: 118vw;
  z-index: 2;
}
.portrait img,
.portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#lens {
  mix-blend-mode: normal;
}
.portrait #orbitBack {
  inset: auto;
  left: -32%;
  top: -6%;
  width: 164%;
  height: 106%;
  pointer-events: none;
}
#xray {
  z-index: 3;
}
.hud {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.hud .lbl {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 4px;
}
.hud .lbl b {
  color: var(--accent);
  font-weight: 500;
}
.hud svg {
  position: absolute;
  overflow: visible;
}
.hud line,
.hud polyline {
  stroke: var(--accent);
  stroke-width: 1;
  fill: none;
}
.hud circle {
  fill: var(--accent);
}
.hud-lens {
  left: 74%;
  top: 26%;
}
.hud-lens[hidden],
#lens[hidden] {
  display: none;
}
.hud-lens svg {
  left: -110px;
  top: 16px;
  width: 110px;
  height: 60px;
}
.hud-body {
  left: 72%;
  top: 76%;
}
.hud-body svg {
  left: -90px;
  top: -14px;
  width: 90px;
  height: 30px;
}
.hname {
  position: absolute;
  z-index: 6;
  left: var(--gl);
  top: calc(env(safe-area-inset-top, 0px) + 88px);
  pointer-events: none;
}
.hname .pre {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}
.hname h1 {
  margin: 0;
  font-family: var(--f-name);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 156px);
  line-height: 0.84;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hname h1 .line {
  display: block;
  overflow: hidden;
  padding-top: 0.05em;
}
.hname h1 .ch {
  display: inline-block;
  will-change: transform;
}
.hname h1 .l2 {
  color: var(--accent);
}
.hname .meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hname .meta b {
  color: var(--ink);
  font-weight: 500;
}
.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 22px;
}
.hero-ui a {
  pointer-events: auto;
}
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-row p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 30ch;
}
.signcue {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.signcue svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  animation: nib 1.8s ease-in-out infinite;
}
@keyframes nib {
  50% {
    transform: translate(4px, -4px) rotate(-8deg);
  }
}
.hint {
  position: absolute;
  z-index: 6;
  right: var(--gr);
  top: calc(env(safe-area-inset-top, 0px) + 90px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.hint i {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.hint i::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(0.4);
    opacity: 0.4;
  }
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
}
.avail b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
/* signature, written on scroll */
.sign {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 11%;
  width: min(84vw, 1060px);
  transform: translateX(-50%) rotate(-5deg);
  pointer-events: none;
}
.sign svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 60%, transparent));
}
.sign path {
  fill: var(--hot);
  fill-opacity: 1;
  stroke: var(--hot);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js-sign .sign path {
  fill-opacity: 0;
  stroke-dashoffset: 1;
}
.sign .stamp {
  position: absolute;
  right: 6%;
  bottom: -8%;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--accent);
  padding-top: 8px;
  transform: rotate(5deg);
}
.js-sign .sign .stamp {
  opacity: 0;
}
@media (max-width: 820px) {
  .portrait {
    height: min(64svh, 600px);
  }
  .hud-body {
    display: none;
  }
  .hud-lens {
    left: 62%;
    top: 4%;
  }
  .hud-lens svg {
    display: none;
  }
  .hint {
    display: none;
  }
  .bignum {
    top: 62%;
  }
  .sign {
    bottom: 24%;
    width: 96vw;
  }
  .hero-row p {
    display: none;
  }
}
