/* model: openai; role: user-authorized-website-editor
   UI01 only: align with kovelta.com, inspected 2026-10-12.
   Loaded last to isolate this revision from historical demo overrides. */
.hero.hero-live {
  /* The local-only ribbon overlays the hero, so its text uses the same
     viewport origin as production. 11px * 1.6 + 16px padding + 1px border. */
  --preview-ribbon-height: 34.6px;
  margin-top: calc(-1 * var(--preview-ribbon-height));
  height: 100svh;
  min-height: 720px;
  max-height: none;
}
.hero.hero-live .hero-content {
  /* Keep the existing text width, anchored to the lower-left hero gutter. */
  position: absolute !important;
  top: auto !important;
  bottom: 8% !important;
  left: 0;
  right: auto;
  margin-inline: 0;
  padding-block: 0;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, max-content);
}
.hero.hero-live #hero-title {
  width: max-content;
  max-width: 100%;
  /* Keep the approved first line intact within the existing container. */
  font-size: min(90px, 6cqw);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.hero.hero-live .hero-copy {
  /* Let the heading set the shared column width, not the paragraph. */
  contain: inline-size;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-top: 44px;
  font-size: 22px;
  line-height: 1.55;
}
@media (max-width: 1200px) {
  .hero.hero-live .hero-copy { font-size: clamp(16px, 1.5vw, 22px); }
}
@media (max-width: 760px) {
  .hero.hero-live .hero-content {
    position: absolute !important;
    top: auto !important;
    bottom: max(12%, 160px) !important;
    left: 0;
    right: 0;
    margin-inline: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero.hero-live #hero-title {
    line-height: 1.08;
  }
  .hero.hero-live .hero-copy { margin-top: 26px; font-size: 16px; }
}
@media (max-width: 370px) {
  .hero.hero-live { min-height: 690px; }
}
@media (max-width: 560px) {
  .hero.hero-live { --preview-ribbon-height: 31px; }
}

/* V021: a clear next step and direct control of background motion. */
.hero.hero-live .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
}
.hero.hero-live .hero-actions .button { min-height: 48px; font-size: 15px; }
.hero-contact-link { color: #fff; font-size: 15px; text-underline-offset: 5px; }
.hero-contact-link:hover { text-decoration: underline; }
.hero-motion-control {
  position: absolute;
  z-index: 3;
  right: max(24px, 4vw);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #ffffff80;
  border-radius: 4px;
  background: #101a2dde;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.hero-motion-control[hidden] { display: none; }
.hero-motion-control svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-motion-control[data-state="playing"] .hero-icon-play,
.hero-motion-control[data-state="paused"] .hero-icon-pause { display: none; }
.hero-motion-control:hover { border-color: #8de0d3; color: #8de0d3; }
.hero-motion-control:focus-visible,
.hero-actions a:focus-visible { outline: 3px solid #8de0d3; outline-offset: 4px; }
@media (max-width: 760px) {
  .hero.hero-live .hero-content { bottom: 120px !important; }
  .hero.hero-live .hero-actions { gap: 16px 20px; margin-top: 24px; }
  .hero.hero-live .hero-actions .button { padding-inline: 18px; }
  .hero-contact-link { font-size: 14px; }
  .hero-motion-control { right: 24px; bottom: 26px; }
}

.hero.hero-live [data-hero-media][data-motion="running"] .hero-video { display: block; }
