.bp-home-main {
  background: #241812;
}

@keyframes bpFlow {
  to { stroke-dashoffset: -28; }
}

.bp-hero {
  --bp-hero-cream: #f2e7d4;
  --bp-hero-ivory: #e8dccb;
  --bp-hero-bronze: #e4c6a0;
  --bp-hero-espresso: #221711;
  position: relative;
  height: max(680px, 100svh);
  min-height: 680px;
  color: var(--bp-hero-cream);
  background: var(--bp-hero-espresso);
}

.bp-hero__stage {
  position: relative;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.bp-hero__background,
.bp-hero__background img,
.bp-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bp-hero__background { z-index: -3; }
.bp-hero__background img {
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
}

.bp-hero__overlay {
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(34, 23, 17, 0.96) 0%, rgba(70, 45, 30, 0.84) 51%, rgba(30, 22, 18, 0.91) 100%),
    linear-gradient(180deg, rgba(15, 10, 8, 0.18), rgba(20, 13, 10, 0.36));
}

.bp-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(242, 231, 212, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 231, 212, 0.11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}

.bp-hero__technical {
  position: absolute;
  z-index: 3;
  top: calc(var(--bp-header-height, 76px) + 24px);
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(232, 220, 203, 0.67);
  font: 500 10px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bp-hero__content {
  position: absolute;
  z-index: 3;
  top: calc(var(--bp-header-height, 76px) + clamp(62px, 9vh, 106px));
  left: clamp(20px, 4vw, 64px);
  width: min(48vw, 680px);
}

.bp-hero__title {
  margin: 0;
  color: var(--bp-hero-cream);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(64px, 8.3vw, 144px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: nowrap;
}

.bp-hero__title span,
.bp-hero__title em { display: block; }
.bp-hero__title em {
  padding-left: clamp(20px, 5vw, 76px);
  color: var(--bp-hero-bronze);
  font-weight: 500;
}

.bp-hero__copy {
  width: min(100%, 410px);
  margin-top: clamp(28px, 4vh, 52px);
}

.bp-hero__copy p {
  margin: 0;
  color: var(--bp-hero-ivory);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  text-wrap: pretty;
}

.bp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 28px;
}

.bp-hero__primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 21px;
  color: var(--bp-hero-espresso);
  background: var(--bp-hero-cream);
  border: 1px solid var(--bp-hero-cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.bp-hero__primary:hover {
  color: #21160f;
  background: var(--bp-hero-bronze);
  border-color: var(--bp-hero-bronze);
}

.bp-hero__secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--bp-hero-cream);
  border-bottom: 1px solid var(--bp-hero-bronze);
  font-size: 14px;
  font-weight: 600;
}

.bp-hero__secondary.is-pending { opacity: 0.7; cursor: not-allowed; }
.bp-hero__primary:focus-visible {
  outline: 3px solid var(--bp-hero-bronze);
  outline-offset: 4px;
}

.bp-hero__horse {
  --graphite: #f2e7d4;
  --accent: #d2a66f;
  --paper: rgba(65, 43, 30, 0.34);
  position: absolute;
  z-index: 2;
  right: 1vw;
  bottom: clamp(-12px, -0.8vh, -2px);
  width: min(49vw, 820px);
  aspect-ratio: 9 / 8;
  pointer-events: none;
  will-change: transform;
}

.bp-hero__horse svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 26px rgba(8, 5, 4, 0.22));
}

.bp-hero:not(.is-in-view) .bp-hero__horse [style*="animation"] {
  animation-play-state: paused !important;
}

@media (max-width: 1100px) {
  .bp-hero__content { width: min(54vw, 600px); }
  .bp-hero__title { font-size: clamp(60px, 9.8vw, 108px); }
  .bp-hero__horse { right: -2vw; width: min(56vw, 690px); }
}

@media (max-width: 782px) {
  .bp-hero {
    height: auto;
    min-height: 0;
  }
  .bp-hero__stage {
    position: relative;
    height: max(760px, 100svh);
    min-height: 760px;
  }
  .bp-hero__background img { object-position: 58% 50%; }
  .bp-hero__overlay {
    background: linear-gradient(165deg, rgba(34, 23, 17, 0.97) 0%, rgba(66, 43, 29, 0.88) 56%, rgba(26, 18, 14, 0.94) 100%);
  }
  .bp-hero__technical {
    top: calc(var(--bp-header-height, 68px) + 20px);
  }
  .bp-hero__technical span:last-child { display: none; }
  .bp-hero__content {
    top: calc(var(--bp-header-height, 68px) + 62px);
    right: 20px;
    width: auto;
  }
  .bp-hero__title {
    font-size: clamp(54px, 14vw, 90px);
    line-height: 0.91;
  }
  .bp-hero__title em { padding-left: 5vw; }
  .bp-hero__copy { width: min(88vw, 430px); margin-top: 24px; }
  .bp-hero__copy p { font-size: 15px; }
  .bp-hero__actions { margin-top: 22px; }
  .bp-hero__horse {
    right: -5vw;
    bottom: 12px;
    width: min(86vw, 620px);
    will-change: auto;
  }
  .bp-hero__horse svg text { display: none; }
}

@media (max-width: 480px) {
  .bp-hero__stage { height: max(720px, 100svh); min-height: 720px; }
  .bp-hero__technical { font-size: 9px; }
  .bp-hero__content { top: calc(var(--bp-header-height, 68px) + 48px); }
  .bp-hero__title { font-size: clamp(49px, 15vw, 70px); }
  .bp-hero__copy { width: min(100%, 350px); }
  .bp-hero__actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .bp-hero__primary { min-height: 46px; padding-inline: 18px; }
  .bp-hero__secondary { min-height: 34px; }
  .bp-hero__horse { right: -7vw; bottom: -2px; width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-hero {
    height: auto;
    min-height: 0;
  }
  .bp-hero__stage {
    position: relative;
    height: max(720px, 100svh);
  }
  .bp-hero__horse {
    transform: none !important;
    will-change: auto;
  }
  .bp-hero__horse * {
    animation: none !important;
    transition: none !important;
  }
  .bp-hero__primary { transition: none; }
}
