/* Processing composition: a 1440 x 720 scene, reflowed for narrow screens. */
.triangle-hero { min-height: 0; background: #fafafa; }
.triangle-hero [hidden] { display: none !important; }
.triangle-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2;
  margin-block: 8px;
  isolation: isolate;
}
.triangle-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.triangle-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30px, 13vw, 230px);
  line-height: 1.15;
  letter-spacing: -.07em;
  pointer-events: none;
}
.triangle-stage.is-ready .triangle-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .triangle-stage { aspect-ratio: 4 / 5; }
  .triangle-fallback { flex-direction: column; font-size: 26vw; }
}

@media print {
  .triangle-hero .triangle-canvas { display: none !important; }
  .triangle-stage { aspect-ratio: 2; }
  .triangle-stage.is-ready .triangle-fallback {
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    flex-direction: row;
    font-size: 13vw;
  }
}
