.sensor-story-module {
  --sensor-story-height-desktop: 780px;
  --sensor-story-height-mobile: 520px;
  --sensor-story-visual-width: 620px;
  --sensor-story-accent: #82c11f;
  --sensor-active-color: var(--sensor-story-accent);
  --sensor-visible-height: var(--sensor-story-height-desktop);
  --sensor-visual-top-offset: 96px;
  --sensor-scroll-segment: clamp(14rem, 32vh, 22rem);
  --sensor-scroll-tail: clamp(14rem, 30vh, 22rem);
  overflow: visible !important;
}

.sensor-story-module .container {
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.8rem);
  overflow: visible;
}

.sensor-story-module__header {
  max-width: 46rem;
  display: grid;
  gap: 0.9rem;
}

.sensor-story-module__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(209, 228, 184, 0.55);
  color: #4b6f26;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sensor-story-module__header h2 {
  margin: 0;
  color: #202020;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.sensor-story-module__description {
  color: #616161;
  font-size: 1rem;
  line-height: 1.9;
}

.sensor-story-module__description > *:last-child {
  margin-bottom: 0;
}

.sensor-story-module__shell {
  display: block;
}

.sensor-story-module__visual-column {
  position: relative;
  width: min(100%, 76rem);
  margin-inline: auto;
}

.sensor-story-module__visual-column,
.sensor-story-module__visual-sticky,
.sensor-story-module__shell {
  overflow: visible;
}

.sensor-story-module__journey {
  position: relative;
}

.sensor-story-module__visual-sticky {
  position: sticky;
  top: var(--sensor-visual-top-offset);
  z-index: 2;
}

.sensor-story-module__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sensor-visible-height);
  height: var(--sensor-visible-height);
  padding: 4.5rem 1.5rem 5.5rem;
  box-sizing: border-box;
  border-radius: 2rem;
  border: 1px solid rgba(223, 223, 223, 0.95);
  background: linear-gradient(180deg, rgba(248, 249, 244, 0.96), rgba(255, 255, 255, 0.94));
  overflow: hidden;
  contain: layout paint;
}

.sensor-story-module__visual::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(130, 193, 31, 0.12);
  pointer-events: none;
}

.sensor-story-module__device-frame {
  --sensor-active-x: 50%;
  --sensor-active-y: 50%;
  --sensor-active-zoom: 1;
  position: relative;
  width: min(100%, var(--sensor-story-visual-width));
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sensor-story-module__device-frame::after {
  content: "";
  position: absolute;
  left: calc(var(--sensor-active-x) - 8rem);
  top: calc(var(--sensor-active-y) - 8rem);
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sensor-active-color) 20%, transparent), transparent 68%);
  transform: translate(-50%, -50%);
  transition: left 600ms cubic-bezier(0.22, 1, 0.36, 1), top 600ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms ease;
  pointer-events: none;
}

.sensor-story-module__device-image {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: var(--sensor-active-x) var(--sensor-active-y);
  transform: scale(var(--sensor-active-zoom));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sensor-story-module__hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sensor-story-module__hotspot {
  position: absolute;
  left: var(--sensor-x);
  top: var(--sensor-y);
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--sensor-pulse-color, var(--sensor-story-accent));
  box-shadow: 0 0 0 0 rgba(130, 193, 31, 0.3);
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  pointer-events: auto;
}

.sensor-story-module__hotspot::before,
.sensor-story-module__hotspot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.sensor-story-module__hotspot::before {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--sensor-pulse-color, var(--sensor-story-accent)) 35%, transparent);
}

.sensor-story-module__hotspot::after {
  width: 0.42rem;
  height: 0.42rem;
  background: #ffffff;
}

.sensor-story-module__hotspot.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--sensor-pulse-color, var(--sensor-story-accent)) 20%, transparent);
}

.sensor-story-module__visual-meta {
  position: absolute;
  inset: 1.4rem 1.4rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2;
}

.sensor-story-module__active-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(25, 37, 18, 0.92);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sensor-story-module__progress {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #202020;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sensor-story-module__overlay-stack {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  min-height: 18rem;
  z-index: 2;
  pointer-events: none;
}

.sensor-story-module__overlay-card {
  position: absolute;
  inset: auto 0 0;
  opacity: 0;
  transform: translateY(1.1rem) scale(0.98);
  transition: opacity 340ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.sensor-story-module__overlay-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sensor-story-module__overlay-card-shell {
  width: min(30rem, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.3rem;
  max-height: min(24rem, calc(var(--sensor-visible-height) - 7rem));
  overflow-y: auto;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(24, 30, 21, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.sensor-story-module__overlay-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sensor-story-module__overlay-index,
.sensor-story-module__overlay-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sensor-story-module__overlay-index {
  background: color-mix(in srgb, var(--sensor-active-color) 28%, rgba(255, 255, 255, 0.16));
  color: #ffffff;
}

.sensor-story-module__overlay-label {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.96);
}

.sensor-story-module__overlay-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.sensor-story-module__overlay-description {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.8;
}

.sensor-story-module__overlay-description > *:last-child {
  margin-bottom: 0;
}

.sensor-story-module__overlay-features {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sensor-story-module__overlay-features li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.65;
}

.sensor-story-module__overlay-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--sensor-active-color);
}

.sensor-story-module__track {
  display: grid;
  gap: 0;
  margin-top: calc(var(--sensor-visible-height) * -1);
  padding-top: var(--sensor-visible-height);
  padding-bottom: var(--sensor-scroll-tail);
}

.sensor-story-module__trigger {
  position: relative;
  min-height: var(--sensor-scroll-segment);
  opacity: 0;
  pointer-events: none;
}

.sensor-story-module__trigger:first-child {
  min-height: 1px;
}

@media (max-width: 991.98px) {
  .sensor-story-module {
    --sensor-visible-height: var(--sensor-story-height-mobile);
    --sensor-scroll-segment: clamp(11rem, 26vh, 16rem);
    --sensor-scroll-tail: clamp(10rem, 22vh, 14rem);
  }

  .sensor-story-module__visual {
    min-height: var(--sensor-story-height-mobile);
    height: var(--sensor-story-height-mobile);
    padding: 3rem 1.2rem 4.2rem;
  }

  .sensor-story-module__device-frame {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .sensor-story-module__header h2 {
    font-size: 2.2rem;
  }

  .sensor-story-module__description {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .sensor-story-module__visual {
    min-height: var(--sensor-story-height-mobile);
    border-radius: 1.5rem;
    padding: 2.8rem 1rem 4rem;
  }

  .sensor-story-module__visual::before {
    inset: 0.9rem;
    border-radius: 1.15rem;
  }

  .sensor-story-module__visual-meta {
    inset: 1rem 1rem auto;
    gap: 0.6rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .sensor-story-module__device-frame {
    min-height: 0;
    padding: 0;
  }

  .sensor-story-module__device-frame::after {
    width: 11rem;
    height: 11rem;
  }

  .sensor-story-module__overlay-stack {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    min-height: 15rem;
  }

  .sensor-story-module__overlay-card-shell {
    width: 100%;
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.2rem;
  }

  .sensor-story-module__overlay-card h3 {
    font-size: 1.45rem;
  }

  .sensor-story-module__overlay-description {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .sensor-story-module__overlay-features li {
    font-size: 0.88rem;
    line-height: 1.6;
  }
}
