.brand-emblem {
  flex: 0 0 auto;
  width: 280px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-emblem img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74px;
  object-fit: contain;
  filter: none;
}

.brand-emblem:focus-visible {
  outline: 3px solid #f7f1e8;
  outline-offset: 4px;
}

.road-story {
  --story-deep: #061510;
  --story-panel: rgba(6, 24, 18, 0.76);
  position: relative;
  overflow: clip;
  background: var(--story-deep);
  color: #fff;
}

.story-intro {
  position: relative;
  z-index: 4;
  padding: 138px 24px 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(216, 137, 28, 0.13), transparent 30%),
    linear-gradient(180deg, #e6eee7 0%, #cad7ce 67%, #496c5d 86%, var(--story-deep) 100%);
  color: #10221a;
}

.story-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 19%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 21, 16, 0.92));
}

.story-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 70px;
  align-items: end;
}

.story-intro .section-kicker {
  color: #173b2c;
}

.story-intro .section-copy {
  margin: 0;
  color: rgba(16, 34, 26, 0.76);
}

.story-scroll {
  position: relative;
  min-height: 500vh;
  isolation: isolate;
}

.story-stage-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--story-deep);
}

.story-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--story-deep);
}

.story-stage::before,
.story-stage::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.story-stage::before {
  background:
    linear-gradient(90deg, rgba(3, 13, 10, 0.22), transparent 34%, transparent 62%, rgba(3, 13, 10, 0.58)),
    linear-gradient(180deg, rgba(3, 13, 10, 0.08), transparent 50%, rgba(3, 13, 10, 0.64));
}

.story-stage::after {
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.44);
}

.story-scene-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 900ms ease, transform 7s cubic-bezier(0.2, 0.72, 0.2, 1);
  will-change: opacity, transform;
}

.story-scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.04) brightness(0.86);
}

.story-scene-media[data-media-scene="1"] img {
  object-position: center 49%;
}

.story-scene-media[data-media-scene="2"] img {
  object-position: center 50%;
}

.story-scene-media[data-media-scene="3"] img,
.story-scene-media[data-media-scene="4"] img {
  object-position: center 48%;
}

.story-scene-media[data-media-scene="5"] img {
  object-position: center 52%;
}

.story-stage[data-scene="0"] [data-media-scene="1"],
.story-stage[data-scene="1"] [data-media-scene="2"],
.story-stage[data-scene="2"] [data-media-scene="3"],
.story-stage[data-scene="3"] [data-media-scene="4"],
.story-stage[data-scene="4"] [data-media-scene="5"] {
  opacity: 1;
  transform: scale(1);
}

.story-status,
.story-product-panel,
.story-community-layer {
  position: absolute;
  z-index: 18;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.story-status {
  top: 124px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  transform: translate(-50%, 12px);
  background: rgba(5, 25, 18, 0.78);
  color: #f7f1e8;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #76d59b;
  box-shadow: 0 0 0 6px rgba(118, 213, 155, 0.15);
}

.story-stage[data-scene="1"] .story-status,
.story-stage[data-scene="2"] .story-status,
.story-stage[data-scene="3"] .story-status {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story-product-panel {
  top: 15%;
  left: clamp(24px, 6vw, 96px);
  width: min(310px, 31vw);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  transform: translateY(24px) scale(0.96);
  background: rgba(247, 241, 232, 0.93);
  color: #10221a;
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.story-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(16, 34, 26, 0.14);
  font-weight: 900;
}

.story-product-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2f6b50;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-product-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45a675;
}

.story-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 61, 46, 0.07);
  color: #33483f;
  font-size: 12px;
  font-weight: 760;
}

.story-form-row::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d9f1e2;
  color: #173b2c;
  font-size: 11px;
  font-weight: 900;
}

.story-submit-state {
  margin-top: 12px;
  padding: 12px;
  border-radius: 13px;
  background: #173b2c;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.story-product-panel[data-product-state="report"] .story-success-mark,
.story-product-panel[data-product-state="success"] .story-report-form {
  display: none;
}

.story-success-mark {
  padding: 18px 6px 6px;
  text-align: center;
}

.story-success-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #173b2c;
  color: #fff;
  box-shadow: 0 0 0 10px rgba(47, 107, 80, 0.12);
  font-size: 25px;
  font-weight: 900;
}

.story-success-mark strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.story-success-mark span {
  display: block;
  margin-top: 6px;
  color: #56685f;
  font-size: 12px;
  line-height: 1.5;
}

.story-stage[data-scene="2"] .story-product-panel[data-product-state="report"],
.story-stage[data-scene="3"] .story-product-panel[data-product-state="success"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-community-layer {
  inset: 0;
  transform: translateY(14px);
}

.story-community-pin {
  position: absolute;
  left: 58%;
  top: 48%;
  width: 54px;
  height: 54px;
  border: 4px solid #f7f1e8;
  border-radius: 50% 50% 50% 12px;
  transform: rotate(-45deg);
  background: #173b2c;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.story-community-pin::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #d8891c;
}

.story-alert-ring {
  position: absolute;
  left: calc(58% - 48px);
  top: calc(48% - 48px);
  width: 150px;
  height: 150px;
  border: 2px solid rgba(216, 137, 28, 0.84);
  border-radius: 50%;
  animation: communityPulse 2.4s ease-out infinite;
}

.story-alert-ring.second {
  animation-delay: 0.9s;
}

.story-driver-alert {
  position: absolute;
  top: 18%;
  left: 38%;
  width: min(330px, calc(100% - 48px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  transform: translateX(-50%);
  background: rgba(5, 25, 18, 0.82);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.story-driver-alert small {
  display: block;
  margin-bottom: 5px;
  color: #bdeacc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.story-driver-alert strong {
  font-size: 14px;
  line-height: 1.45;
}

.story-stage[data-scene="4"] .story-community-layer {
  opacity: 1;
  transform: translateY(0);
}

@keyframes communityPulse {
  0% { transform: scale(0.34); opacity: 0.9; }
  100% { transform: scale(1.42); opacity: 0; }
}

.story-scroll:not(.is-in-view) .story-alert-ring {
  animation-play-state: paused;
}

.story-progress {
  position: absolute;
  z-index: 30;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(4, 20, 15, 0.68);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.story-progress-track {
  width: 100px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.story-progress-fill {
  display: block;
  width: calc(var(--story-progress, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #d8891c;
  transition: width 150ms linear;
}

.story-dots {
  position: absolute;
  z-index: 31;
  right: 24px;
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.story-dots a {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(4, 20, 15, 0.38);
  transition: transform 250ms ease, background 250ms ease;
}

.story-dots a:focus-visible {
  outline: 3px solid #f7f1e8;
  outline-offset: 4px;
}

.story-dots a[aria-current="step"] {
  transform: scale(1.38);
  border-color: #d8891c;
  background: #d8891c;
}

.story-steps {
  position: relative;
  z-index: 22;
  width: min(470px, calc(100% - 48px));
  margin: -100svh clamp(54px, 7vw, 120px) 0 auto;
  padding: 8svh 0;
  pointer-events: none;
}

.story-step {
  display: flex;
  align-items: center;
  min-height: 96svh;
  opacity: 1;
  pointer-events: auto;
}

.story-ready .story-step {
  opacity: 0.22;
  transition: opacity 450ms ease, transform 450ms ease;
}

.story-ready .story-step.is-active {
  opacity: 1;
  transform: translate3d(-10px, 0, 0);
}

.story-step-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: var(--story-panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34);
}

.story-step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #bdeacc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.story-step-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8891c;
}

.story-step h3 {
  margin: 0;
  max-width: 420px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.story-step p {
  margin: 16px 0 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.story-step .story-safety-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid #d8891c;
  border-radius: 4px 12px 12px 4px;
  background: rgba(216, 137, 28, 0.12);
  color: #fff0d6;
  font-size: 14px;
  font-weight: 760;
}

.story-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.story-final-actions .button {
  min-height: 46px;
  padding-inline: 15px;
  border-radius: 14px;
  font-size: 13px;
}

.story-mobile-alert {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(189, 234, 204, 0.24);
  border-radius: 14px;
  background: rgba(47, 107, 80, 0.28);
  color: #d9f6e3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .brand-emblem {
    width: 220px;
  }

  .brand-emblem img {
    max-height: 58px;
  }

  .story-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-scroll {
    min-height: 475vh;
  }

  .story-steps {
    width: min(430px, calc(100% - 48px));
    margin-right: 54px;
  }

  .story-product-panel {
    left: 24px;
    width: 280px;
  }
}

@media (max-width: 768px) {
  .brand-emblem {
    width: 170px;
  }

  .brand-emblem img {
    max-height: 46px;
  }

  .story-intro {
    padding: 104px 20px 110px;
    background:
      radial-gradient(circle at 78% 8%, rgba(216, 137, 28, 0.13), transparent 30%),
      linear-gradient(180deg, #e6eee7 0%, #cad7ce 84%, #496c5d 95%, var(--story-deep) 100%);
  }

  .story-intro::after {
    height: 8%;
  }

  .story-scroll {
    min-height: auto;
  }

  .story-stage-wrap {
    display: none;
  }

  .story-steps {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--story-deep);
  }

  .story-step,
  .story-ready .story-step,
  .story-ready .story-step.is-active {
    position: relative;
    isolation: isolate;
    min-height: min(88svh, 760px);
    padding: clamp(300px, 48svh, 470px) 20px 28px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    background-position: center;
    background-size: cover;
  }

  .story-step::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 18, 13, 0.04) 16%, rgba(4, 18, 13, 0.38) 49%, rgba(4, 18, 13, 0.96) 78%);
  }

  #story-scene-1 {
    background-image: url("01-wildlife-ahead.webp");
    background-position: 56% center;
  }

  #story-scene-2 {
    background-image: url("02-safe-pull-over.webp");
    background-position: 59% center;
  }

  #story-scene-3 {
    background-image: url("03-report-sighting.webp");
    background-position: 52% center;
  }

  #story-scene-4 {
    background-image: url("04-confirm-submit.webp");
    background-position: 52% center;
  }

  #story-scene-5 {
    background-image: url("05-community-awareness.webp");
    background-position: 59% center;
  }

  .story-step-card {
    position: relative;
    z-index: 1;
    padding: 24px;
    background: rgba(12, 43, 32, 0.94);
  }

  .story-progress,
  .story-dots {
    display: none;
  }

  .story-mobile-alert {
    display: block;
  }
}

@media (max-width: 430px) {
  .brand-emblem {
    width: 150px;
  }

  .brand-emblem img {
    max-height: 42px;
  }

  .story-step h3 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .story-step p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-scene-media,
  .story-status,
  .story-product-panel,
  .story-community-layer,
  .story-step,
  .story-progress-fill {
    transition: none !important;
  }

  .story-alert-ring {
    animation: none !important;
  }

  .story-scroll {
    min-height: auto;
  }

  .story-stage-wrap {
    display: none;
  }

  .story-steps {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .story-step,
  .story-ready .story-step,
  .story-ready .story-step.is-active {
    position: relative;
    isolation: isolate;
    min-height: min(88svh, 760px);
    padding: clamp(300px, 48svh, 470px) 24px 28px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    background-position: center;
    background-size: cover;
  }

  .story-step::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 18, 13, 0.04) 16%, rgba(4, 18, 13, 0.38) 49%, rgba(4, 18, 13, 0.96) 78%);
  }

  #story-scene-1 { background-image: url("01-wildlife-ahead.webp"); }
  #story-scene-2 { background-image: url("02-safe-pull-over.webp"); }
  #story-scene-3 { background-image: url("03-report-sighting.webp"); }
  #story-scene-4 { background-image: url("04-confirm-submit.webp"); }
  #story-scene-5 { background-image: url("05-community-awareness.webp"); }

  .story-step-card {
    position: relative;
    z-index: 1;
  }

  .story-progress,
  .story-dots {
    display: none;
  }
}
