/* Section 4, the storm (ADR 0239, HOMEPAGE-PLAN.md): one full-screen 3D scene (scenes/desk/desk.mjs,
   played by storm.mjs). The owner's desk at night in a storm of paper; one sentence; every page into the
   app; one approval; the screen ends on the signature. Its still, that end frame, stands until the scene
   is ready, and stays with reduced motion or without WebGL. The captions sit over the scene. */
.storm {
  position: relative;
  height: max(100svh, 560px);
  overflow: hidden;
  background: #060c0a;
}

.storm :is(canvas, .storm-still) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.storm-still {
  object-fit: cover;
}

.storm[data-scene=ready] .storm-still {
  display: none;
}

.storm-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The foot darkens a little, so the words read over the scene. */
.storm::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(6, 12, 10, .72));
  pointer-events: none;
}

.storm-say {
  position: absolute;
  inset: auto 16px 6.5%;
  z-index: 1;
  margin: 0;
  color: #eaf3cf;
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  text-align: center;
  text-shadow: 0 2px 30px rgba(6, 12, 10, .9);
}

/* What the owner says, as a message. */
.storm-you {
  position: absolute;
  top: 14%;
  left: 50%;
  z-index: 1;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: .7em 1.25em;
  border-radius: 1.5em 1.5em .35em 1.5em;
  background: rgba(251, 252, 248, .97);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .45);
  color: #19372d;
  font-size: clamp(16px, 1.7vw, 26px);
  font-weight: 500;
  opacity: 0;
  translate: -50% 0;
}

.storm-you small {
  position: absolute;
  top: -1.8em;
  right: .7em;
  color: #b1c1b5;
  font: 500 10px var(--font-brand-mono);
  letter-spacing: .08em;
}
