/* Final performance pass: preserve the chrome-and-blue presentation while
   dropping decorative paint work that does not add content. */
html { scroll-behavior: auto; }

.noise,
.portal-noise {
  display: none !important;
}

/* The journey canvas was left behind by an earlier hero version but has no
   active renderer. Keeping it out of the paint tree avoids needless layout
   and compositing work on every viewport size. */
.hero #hero-canvas {
  display: none !important;
}

/* Isolate the short hero opening moment so it never repaints the page. */
.signature-pen-stage,
.hero .cinematic-hardware-bg {
  contain: paint;
}

/* The pen moves once; a permanent GPU layer would waste mobile memory after
   the animation is complete. */
.signature-pen-rig {
  will-change: auto;
}

/* Keep the signature pen refined and secondary to the hero message. */
.signature-pen-rig {
  /* Deliberately compact: the writing pen is an accent, not the hero focal point. */
  width: min(22vw, 270px) !important;
}

@media (max-width: 760px) {
  .portal-sidebar {
    backdrop-filter: none;
  }

  .signature-pen-rig {
    width: min(42vw, 190px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-hero .signature-pen-rig,
  .signature-hero .signature-ink-trace,
  .signature-hero .hero-copy .script {
    animation: none !important;
  }
}
