/* The home opening, isolated from the rest of the Collaborazione page.
   collaboration-intro.js owns its five-second timing, acceleration and dismissal. */
html.intro-pending {
  overflow: hidden;
}

.collaboration-page .brand-intro[hidden] {
  display: none !important;
}

html.intro-pending .collaboration-page .brand-intro[hidden] {
  display: flex !important;
}

.collaboration-page .brand-intro {
  --charge: 0;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #06151d;
  color: #e4dac5;
  font-family: "VELNIS Manrope", Arial, sans-serif;
  line-height: 1.7;
}

.collaboration-page .brand-intro .electric-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(78vw, 920px);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: calc(.35 + var(--charge) * .5);
  pointer-events: none;
}

.collaboration-page .brand-intro .electric-art svg {
  display: block;
  width: 100%;
  overflow: visible;
}

/* prospect.css keeps UI icon strokes fixed; this scene scales as on home. */
.collaboration-page .brand-intro .electric-art svg path {
  vector-effect: none;
}

.collaboration-page .brand-intro .electric-model {
  animation: electrical-drift 9s ease-in-out infinite;
  transform-origin: center;
}

.collaboration-page .brand-intro .electric-plane {
  fill: #a7c9c403;
  stroke: #ddcfaa;
  stroke-opacity: .2;
  stroke-width: .8;
}

.collaboration-page .brand-intro .electric-track {
  fill: none;
  stroke: #a7d9d4;
  stroke-opacity: .55;
  stroke-width: 1.4;
}

.collaboration-page .brand-intro .electric-flow {
  fill: none;
  stroke: #b9fff4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 32 170;
  filter: url(#electric-glow);
  animation: electric-stream 3.5s linear infinite;
}

.collaboration-page .brand-intro .electric-flow.second {
  stroke: #e9d7a7;
  animation-delay: -1.8s;
  animation-duration: 4.8s;
}

.collaboration-page .brand-intro .electric-flow.bridge {
  animation-duration: 3s;
}

.collaboration-page .brand-intro .electric-nodes {
  fill: #e1fff4;
  opacity: .7;
  filter: url(#electric-glow);
}

.collaboration-page .brand-intro .electric-pulse {
  fill: none;
  stroke: #bcf5e9;
  stroke-width: 1;
  filter: url(#electric-glow);
  animation: electric-pulse 3.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.collaboration-page .brand-intro .electric-pulse.second {
  stroke: #e9d7a7;
  animation-delay: -1.9s;
}

.collaboration-page .brand-intro .intro-wordmark {
  z-index: 2;
  padding-left: .35em;
  font-family: "VELNIS Manrope", Arial, sans-serif;
  font-size: clamp(44px, 7.3vw, 112px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .35em;
  text-align: center;
  text-shadow: 0 0 40px #071923;
  animation: wordmark-arrive 1.6s ease both;
}

.collaboration-page .brand-intro .intro-wordmark span {
  display: block;
  margin-top: 30px;
  padding-right: .35em;
  font-family: "VELNIS Manrope", Arial, sans-serif;
  font-size: clamp(8px, .7vw, 11px);
  letter-spacing: .4em;
  color: #b5a687;
}

.collaboration-page .brand-intro .intro-halo {
  position: absolute;
  width: 85vmin;
  height: 85vmin;
  border-radius: 50%;
  background: radial-gradient(ellipse, #5dafa022, transparent 67%);
  transform: scale(calc(.6 + var(--charge) * .6));
  opacity: calc(.2 + var(--charge) * .8);
}

.collaboration-page .brand-intro .intro-flash {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e8fff04d, transparent 68%);
  opacity: 0;
  pointer-events: none;
  animation: charge-flashes 4.3s linear both;
  mix-blend-mode: screen;
}

.collaboration-page .brand-intro .intro-skip {
  position: absolute;
  bottom: 38px;
  right: 6%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #c8b89180;
  border-radius: 0;
  background: transparent;
  color: #e4d9bd;
  font: inherit;
  font-size: 12px;
  letter-spacing: 1.4px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.collaboration-page .brand-intro .intro-skip kbd {
  padding: 2px 7px;
  border: 1px solid #c8b89155;
  border-radius: 2px;
  color: #c6b995;
  font: inherit;
  font-size: 11px;
  letter-spacing: 1px;
}

.collaboration-page .brand-intro .intro-skip:hover {
  color: #fff;
  border-bottom-color: #e4d9bd;
}

.collaboration-page .brand-intro .intro-skip:focus-visible {
  outline: 2px solid #f3ead2;
  outline-offset: 6px;
  color: #fff;
  border-bottom-color: #f3ead2;
}

.collaboration-page .brand-intro.intro-leaving {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}

.collaboration-page.motion-paused .brand-intro .electric-model,
.collaboration-page.motion-paused .brand-intro .electric-model *,
.collaboration-page .brand-intro.motion-paused .electric-model,
.collaboration-page .brand-intro.motion-paused .electric-model * {
  animation-play-state: paused !important;
}

/* Keep these names: the opening controller accelerates electric-stream by name. */
@keyframes electric-stream {
  to { stroke-dashoffset: -460; }
}

@keyframes electrical-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes electric-pulse {
  0% { opacity: .85; transform: scale(.4); }
  85%, 100% { opacity: 0; transform: scale(2.3); }
}

@keyframes wordmark-arrive {
  from { opacity: 0; filter: blur(10px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes charge-flashes {
  0%, 72% { opacity: 0; }
  78% { opacity: .5; }
  85% { opacity: 0; }
  93% { opacity: .75; }
  100% { opacity: 0; }
}

@media (max-width: 650px) {
  .collaboration-page .brand-intro .electric-art { width: 130vw; }
  .collaboration-page .brand-intro .intro-wordmark {
    font-size: 48px;
    letter-spacing: .24em;
    padding-left: .24em;
  }
  .collaboration-page .brand-intro .intro-wordmark span {
    font-size: 8px;
    letter-spacing: .2em;
    margin-top: 22px;
  }
  .collaboration-page .brand-intro .intro-skip { bottom: 28px; }
}

@media (hover: none) {
  .collaboration-page .brand-intro .intro-skip kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.intro-pending { overflow: auto; }
  .collaboration-page .brand-intro,
  html.intro-pending .collaboration-page .brand-intro[hidden] {
    display: none !important;
  }
  .collaboration-page .brand-intro,
  .collaboration-page .brand-intro * {
    animation: none !important;
    transition: none !important;
  }
}
