/* Loaded on both gate and landing: authentication reveals the page in place. */
/* One image scale at every width; the title overlaps only the safe lower
   edge of the artwork and keeps the same translucent finish on mobile. */
.landing-page .hero > picture {
  display: block;
  width: 100%;
}

.landing-page .hero-image {
  height: auto;
  aspect-ratio: 25 / 9;
  min-height: 0;
  object-fit: cover;
}

.landing-page .hero-plate {
  position: relative;
  margin-top: max(-116px, -6vw);
}

.landing-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "launch intro" "launch actions";
  gap: 18px 56px;
  align-items: center;
  padding-top: 32px;
  margin-bottom: 38px;
}

.landing-lead .landing-intro {
  grid-area: intro;
  align-self: end;
  margin: 0;
  max-width: 490px;
}

.landing-lead .demo-entry-actions {
  grid-area: actions;
  align-self: start;
}

.landing-lead .demo-entry-actions .button {
  font-size: 15px;
  min-height: 40px;
  white-space: nowrap;
}

.demo-launch {
  --trace-progress: 560;
  --draw-delay: 0s;
  --terminal-color: #c3a28f;
  --halo-opacity: 0;
  --arrow-shift: 0px;
  --arrow-background: rgba(255, 255, 255, 0.5);
  --arrow-color: #a25033;
  --signal-state: paused;
  position: relative;
  isolation: isolate;
  grid-area: launch;
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-width: 0;
  width: 100%;
  max-width: 410px;
  min-height: 0;
  aspect-ratio: 41 / 16;
  align-self: center;
  justify-self: start;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 90, 55, 0.2);
  border-radius: 6% / 15%;
  background: radial-gradient(ellipse at 100% 50%, #ecd4c7 0%, #f5e7de 52%, #fffaf6 100%);
  box-shadow: 0 2px 3px rgba(92, 48, 33, 0.02), 0 14px 32px -20px rgba(92, 48, 33, 0.18);
  color: #91472f;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 350ms ease, border-color 350ms ease, transform 350ms var(--ease);
}

.demo-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.demo-launch-copy {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2.206cqw;
  margin-left: 7.353%;
}

.demo-launch-eyebrow {
  color: #866657;
  font-size: 2.451cqw;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.demo-launch-title {
  font-size: 6.127cqw;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.demo-launch-arrow {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 12.745cqw;
  width: 12.745cqw;
  height: 12.745cqw;
  margin-right: 6.373%;
  border: 1px solid rgba(180, 90, 55, 0.4);
  border-radius: 50%;
  background: var(--arrow-background);
  color: var(--arrow-color);
  transition: background 400ms ease, color 400ms ease;
}

.demo-launch-arrow svg {
  width: 5.882cqw;
  height: 5.882cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(var(--arrow-shift));
  transition: transform 400ms var(--ease);
}

.demo-launch-circuit {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  width: 117.647cqw;
  height: 39.216cqw;
  max-width: none;
  transform: translateY(-50%);
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.launch-traces-base {
  stroke: #b58062;
  opacity: 0.2;
}

.launch-traces-lit {
  stroke: #b45a37;
  stroke-width: 1.25;
}

.launch-trace {
  stroke-dasharray: 560;
  stroke-dashoffset: var(--trace-progress);
  transition: stroke-dashoffset 900ms var(--ease) var(--draw-delay);
}

.launch-terminals {
  fill: #f6e9e0;
  stroke: var(--terminal-color);
  transition: stroke 500ms ease var(--draw-delay);
}

.launch-halo {
  stroke: #b45a37;
  opacity: var(--halo-opacity);
  stroke-dasharray: 1 6;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 700ms ease var(--draw-delay);
}

.launch-signal {
  stroke: #91472f;
  stroke-width: 2;
  stroke-dasharray: 24 560;
  stroke-dashoffset: 560;
  opacity: 0;
  animation: launch-signal 2600ms linear 2400ms infinite;
  animation-play-state: var(--signal-state);
}

/* Three branches develop over 2.2 seconds. A travelling signal follows;
   all of this is decorative and never delays the native link. */
.demo-launch:focus-visible {
  --trace-progress: 0;
  --terminal-color: #b45a37;
  --halo-opacity: 0.65;
  --arrow-background: #b45a37;
  --arrow-color: #fbf5f3;
  --arrow-shift: 2px;
  --signal-state: running;
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

.demo-launch:focus-visible .launch-trace-b { --draw-delay: 450ms; }
.demo-launch:focus-visible .launch-trace-c { --draw-delay: 950ms; }
.demo-launch:focus-visible :is(.launch-terminals, .launch-halo) { --draw-delay: 1400ms; }

@media (hover: hover) and (pointer: fine) {
  .demo-launch:hover {
    --trace-progress: 0;
    --terminal-color: #b45a37;
    --halo-opacity: 0.65;
    --arrow-background: #b45a37;
    --arrow-color: #fbf5f3;
    --arrow-shift: 2px;
    --signal-state: running;
    border-color: rgba(180, 90, 55, 0.4);
    box-shadow: 0 3px 8px rgba(92, 48, 33, 0.03), 0 20px 36px -20px rgba(92, 48, 33, 0.24);
    transform: translateY(-2px);
  }

  .demo-launch:hover .launch-trace-b { --draw-delay: 450ms; }
  .demo-launch:hover .launch-trace-c { --draw-delay: 950ms; }
  .demo-launch:hover :is(.launch-terminals, .launch-halo) { --draw-delay: 1400ms; }
  .demo-launch:hover .launch-halo {
    animation: launch-halo-turn 8s linear 1400ms infinite;
  }
}

@keyframes launch-halo-turn {
  to { transform: rotate(360deg); }
}

/* Reset the signal on exit, so a fresh hover always starts at the source. */
.demo-launch:not(:hover):not(:focus-visible) .launch-signal {
  animation-name: none;
}

.demo-launch:active {
  transform: translateY(0);
}

@keyframes launch-signal {
  0% { stroke-dashoffset: 560; opacity: 0; }
  12%, 65% { opacity: 0.9; }
  85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (max-width: 900px) {
  .landing-lead { column-gap: 28px; }
}

@media (max-width: 760px) {
  .landing-lead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "launch" "intro" "actions";
    gap: 22px;
    padding-top: 24px;
    margin-bottom: 32px;
  }
  .landing-lead .landing-intro { max-width: 600px; font-size: 16px; }
}

@media (max-width: 620px) {
  .landing-lead .demo-action-divider { display: none; }
  .landing-lead .data-room-entry { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-launch, .demo-launch *, .demo-launch::after {
    transition: none !important;
    animation: none !important;
  }
  .demo-launch:hover { transform: none; }
  .launch-signal { display: none; }
}

@media (forced-colors: active) {
  .demo-launch { border: 2px solid LinkText; }
  .demo-launch-circuit { display: none; }
  .demo-launch-arrow { border-color: LinkText; }
}
