/* Hero component: copy left, bridge illustration right; stacks below 1024px. */

.inc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h-top) + 40px);
  padding-bottom: 24px;
  overflow: hidden;
  background: var(--bba-paper);
  color: var(--bba-ink);
  font-family: var(--bba-font);
}

/* Faint dot grid and a soft accent glow behind the visual. */
.inc-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 72% 55%, color-mix(in srgb, var(--bba-accent) 10%, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--bba-ink) 9%, transparent) 1px, transparent 0) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 55%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 55%, #000 30%, transparent 80%);
}

.inc-hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.inc-hero__copy {
  min-width: 0;
}

.inc-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--bba-accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.inc-hero__eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--bba-accent);
}

.inc-hero__title {
  max-width: 14em;
  margin: 0;
  color: var(--bba-ink);
  font-size: clamp(2.25rem, 1.75rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* "Sales Flow": accent colour with a soft highlight stroke under it. */
.inc-hero__em {
  color: var(--bba-accent-ink);
  background: linear-gradient(color-mix(in srgb, var(--bba-accent) 22%, transparent), color-mix(in srgb, var(--bba-accent) 22%, transparent)) 0 88% / 100% 0.16em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.inc-hero__sub {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--bba-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.inc-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.inc-hero__actions .bba-btn {
  white-space: normal;
}

.inc-hero__trust {
  margin: 24px 0 0;
  color: var(--bba-muted);
  font-size: 14px;
  line-height: 1.6;
}

.inc-hero__trust strong {
  color: var(--bba-ink);
  font-weight: 600;
  white-space: nowrap;
}

.inc-hero__sep {
  margin: 0 0.4em;
  color: var(--bba-line-strong);
  font-weight: 300;
}

/* Visual: fixed aspect ratio reserves its space before anything paints (no layout shift). */
.inc-hero__visual {
  position: relative;
  width: 100%;
  max-height: 280px;
  aspect-ratio: 560 / 380;
  border: 1px solid var(--bba-line);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--bba-surface), var(--bba-paper));
  overflow: hidden;
}

/* Optional photo slot: fills the frame behind the illustration. */
.inc-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inc-bridge {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--bba-font);
}

.inc-bridge__soft { fill: color-mix(in srgb, var(--bba-accent) 7%, transparent); }
.inc-bridge__ground { stroke: var(--bba-line-strong); stroke-width: 1; stroke-linecap: round; }
.inc-bridge__block { fill: var(--bba-paper); stroke: var(--bba-line-strong); stroke-width: 1; }
.inc-bridge__mark { fill: var(--bba-accent); }
.inc-bridge__label { fill: var(--bba-ink); font-size: 15px; font-weight: 650; }
.inc-bridge__deck { stroke: var(--bba-ink); stroke-width: 1.5; stroke-linecap: round; }
.inc-bridge__arch { fill: none; stroke: var(--bba-accent); stroke-width: 2.5; stroke-linecap: round; }
.inc-bridge__hanger { stroke: var(--bba-line-strong); stroke-width: 1; }
.inc-bridge__pill { fill: var(--bba-accent-ink); }
.inc-bridge__pill-text { fill: var(--bba-on-accent); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.inc-bridge__gap { fill: var(--bba-muted); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.inc-bridge__gap-line { stroke: var(--bba-line-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.inc-bridge__dot { fill: var(--bba-accent); opacity: 0; }

/* The SVG renders at ~65% scale on phones; larger labels keep them readable (~12px). */
@media (max-width: 639px) {
  .inc-bridge__label { font-size: 19px; }
  .inc-bridge__pill-text { font-size: 16px; }
  .inc-bridge__gap { font-size: 16px; letter-spacing: 0.02em; }
}

.inc-hero__cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  min-height: 44px;
  margin-top: 32px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--bba-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease;
}

.inc-hero__cue:hover {
  color: var(--bba-ink);
}

.inc-hero__cue:focus-visible {
  outline: 2px solid var(--bba-focus);
  outline-offset: 2px;
}

.inc-hero__cue-arrow {
  display: inline-block;
  animation: inc-cue 1.8s ease-in-out 2s infinite;
}

/* Load sequence: copy rises in order, then the bridge draws left to right. */
@keyframes inc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes inc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes inc-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes inc-cue {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}

.inc-rise {
  animation: inc-rise 500ms var(--bba-ease) both;
  animation-delay: calc(var(--i, 0) * 100ms + 60ms);
}

.inc-bridge__blocks { animation: inc-fade 500ms ease 300ms both; }
.inc-bridge__deck { stroke-dasharray: 220; stroke-dashoffset: 220; animation: inc-draw 1.2s var(--bba-ease) 500ms forwards; }
.inc-bridge__arch { stroke-dasharray: 300; stroke-dashoffset: 300; animation: inc-draw 1.2s var(--bba-ease) 500ms forwards; }
.inc-bridge__hangers { animation: inc-fade 400ms ease 1.2s both; }
.inc-bridge__badge { animation: inc-fade 400ms ease 1.4s both; }
.inc-bridge__gap-group { animation: inc-fade 600ms ease 1.5s both; }

@media (min-width: 640px) {
  .inc-hero__inner {
    padding: 0 32px;
  }

  .inc-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .inc-hero__actions .bba-btn {
    white-space: nowrap;
  }

  .inc-hero__visual {
    max-height: none;
  }
}

/* Tablet: stacked, the visual centred below the copy at 80% width. */
@media (min-width: 768px) {
  .inc-hero {
    padding-top: calc(var(--nav-h-top) + 56px);
  }

  .inc-hero__inner {
    gap: 56px;
  }

  .inc-hero__visual {
    justify-self: center;
    width: 80%;
  }
}

/* Desktop: two columns filling the viewport below the nav. */
@media (min-width: 1024px) {
  .inc-hero {
    min-height: 100svh;
    padding-top: var(--nav-h-top);
  }

  .inc-hero__inner {
    flex: 1;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: clamp(40px, 4vw, 72px);
    padding: 40px 48px 0;
  }

  .inc-hero__visual {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inc-rise,
  .inc-bridge__blocks,
  .inc-bridge__hangers,
  .inc-bridge__badge,
  .inc-bridge__gap-group,
  .inc-hero__cue-arrow {
    animation: none;
  }

  .inc-bridge__deck,
  .inc-bridge__arch {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
