/* Why Lorryto — full-bleed cinematic sticky story */

.wl-section {
  --wl-blue: #2a67fd;
  --wl-ink: #101828;
  --wl-muted: #667085;
  --wl-line: #e5e7eb;
  --wl-surface: #ffffff;
  position: relative;
  isolation: isolate;
  background: var(--wl-surface);
}

.wl-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.wl-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wl-bg-wash {
  position: absolute;
  inset: 0;
  background: #0b1220;
}

/* Chapter intro */
.wl-chapter {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.5rem 3rem;
  pointer-events: none;
  will-change: opacity, transform;
  transform-origin: center 42%;
  background:
    radial-gradient(ellipse 55% 45% at 30% 40%, rgba(42, 103, 253, 0.08), transparent 60%),
    #fff;
}

.wl-chapter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 42rem;
}

.wl-chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(42, 103, 253, 0.1);
  color: var(--wl-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wl-badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--wl-blue);
  box-shadow: 0 0 0 3px rgba(42, 103, 253, 0.16);
}

.wl-chapter-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--wl-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.wl-chapter-title-line {
  display: block;
  white-space: nowrap;
}

.wl-chapter-title-accent {
  display: block;
  margin-top: 0.2rem;
  color: var(--wl-blue);
  white-space: nowrap;
}

.wl-brand-word {
  font-family: var(--font-footer-watermark);
  font-style: italic;
  font-weight: 400;
  color: var(--wl-blue);
  letter-spacing: -0.02em;
}

.wl-chapter-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--wl-muted);
}

.wl-chapter-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}

.wl-chapter-scroll-arrow {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: wl-chapter-bounce 1.4s ease-in-out infinite;
}

@keyframes wl-chapter-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}

/* Full-stage story: image ~65% of viewport, copy in remaining white column */
.wl-story {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  will-change: opacity;
}

.wl-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
}

.wl-stage-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 70% 30%;
}

.wl-stage[data-side='right'] .wl-stage-inner {
  grid-template-columns: 30% 70%;
}

.wl-stage[data-side='right'] .wl-visual-wrap {
  order: 2;
}

.wl-stage[data-side='right'] .wl-copy-panel {
  order: 1;
}

.wl-visual-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #dbe3f0;
  will-change: transform;
}

.wl-visual-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.wl-stage[data-side='left'] .wl-visual-fade {
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 58%,
    rgba(255, 255, 255, 0.35) 78%,
    rgba(255, 255, 255, 0.82) 92%,
    #ffffff 100%
  );
}

.wl-stage[data-side='right'] .wl-visual-fade {
  background: linear-gradient(
    270deg,
    transparent 0%,
    transparent 58%,
    rgba(255, 255, 255, 0.35) 78%,
    rgba(255, 255, 255, 0.82) 92%,
    #ffffff 100%
  );
}

.wl-visual {
  position: absolute;
  inset: 0;
  background: #dbe3f0;
}

.wl-visual-layer {
  position: absolute;
  /* Clear sticky site header on all 9 story images */
  inset: 3.85rem 0 0;
}

.wl-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Success banner — keep left branding/text in frame */
.wl-visual-img[src*='grow-business'] {
  object-position: left top;
}

.wl-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 2.5rem;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(42, 103, 253, 0.4), transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #172554 100%);
}

.wl-visual-placeholder-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.wl-visual-placeholder strong {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.wl-visual-placeholder em {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

.wl-visual-placeholder-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.wl-copy-panel {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
  height: 100%;
  padding: 5.5rem 3.25rem 5rem 1.25rem;
  background: #ffffff;
  pointer-events: none;
  will-change: transform;
}

.wl-stage[data-side='right'] .wl-copy-panel {
  align-items: flex-start;
  padding: 5.5rem 1.25rem 5rem 3.25rem;
}

.wl-copy-stack {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 28.5rem;
  width: 100%;
  overflow: visible;
}

.wl-stage[data-side='left'] .wl-copy-stack {
  margin-left: auto;
  margin-right: 0;
}

.wl-stage[data-side='right'] .wl-copy-stack {
  margin-right: auto;
  margin-left: 0;
}

.wl-copy {
  width: 100%;
}

.wl-copy-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wl-step-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wl-blue);
}

.wl-step-label-mark {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--wl-blue);
  box-shadow: 0 0 0 3px rgba(42, 103, 253, 0.14);
}

.wl-step-label span {
  color: #98a2b3;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wl-step-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--wl-ink);
  text-wrap: balance;
}

.wl-copy .wl-brand-word {
  font-family: var(--font-footer-watermark);
  font-style: italic;
  font-weight: 400;
  color: var(--wl-blue);
  letter-spacing: -0.02em;
}

.wl-step-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--wl-muted);
  max-width: 27rem;
}

.wl-feature-grid {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--wl-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.wl-feature-tile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  height: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid #e8edf5;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.wl-feature-tile.has-badge {
  background: linear-gradient(105deg, #f8fbff 0%, #eef4ff 100%);
  border-color: #d7e3ff;
}

.wl-feature-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wl-blue);
  background: rgba(42, 103, 253, 0.1);
  border: 1px solid rgba(42, 103, 253, 0.12);
}

.wl-feature-tile.has-badge .wl-feature-icon {
  background: rgba(42, 103, 253, 0.14);
  border-color: rgba(42, 103, 253, 0.18);
}

.wl-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.18rem;
  min-width: 0;
}

.wl-feature-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #1f2937;
  line-height: 1.25;
}

.wl-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--wl-blue);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .wl-stage-inner {
    grid-template-columns: 68% 32%;
  }

  .wl-stage[data-side='right'] .wl-stage-inner {
    grid-template-columns: 32% 68%;
  }

  .wl-copy-panel {
    padding: 5.25rem 2.25rem 4.75rem 1rem;
  }

  .wl-stage[data-side='right'] .wl-copy-panel {
    padding: 5.25rem 1rem 4.75rem 2.25rem;
  }

  .wl-step-title {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  }

  .wl-feature-label {
    font-size: 0.74rem;
  }
}

/* Mobile / tablet gallery slider */
.wl-section-shell {
  min-height: 12rem;
  background: #fff;
}

/* Matches the desktop StickyScroll runway so anchors below do not shift on hydrate */
@media (min-width: 981px) and (orientation: landscape), (min-width: 1181px) {
  .wl-section-shell {
    min-height: calc(var(--wl-shell-vh, 12) * 1vh);
  }
}

.wl-gallery {
  --wl-blue: #2a67fd;
  --wl-ink: #101828;
  --wl-muted: #667085;
  --wl-line: #e5e7eb;
  position: relative;
  isolation: isolate;
  background: #fff;
  padding: 4.5rem 0 5.5rem;
}

.wl-gallery-head {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.wl-gallery-title {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--wl-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.wl-gallery-sub {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--wl-muted);
}

.wl-gallery-frame {
  width: min(920px, 100%);
  margin: 0 auto;
  position: relative;
}

.wl-gallery-stage {
  position: relative;
  padding: 0 1.15rem;
}

.wl-gallery-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
  border-radius: 1.15rem;
}

.wl-gallery-track::-webkit-scrollbar {
  display: none;
}

.wl-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.wl-gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(48vh, 26rem);
  border-radius: 1.15rem;
  overflow: hidden;
  background: #e8eef7;
  box-shadow:
    0 16px 36px rgba(16, 24, 40, 0.1),
    0 2px 8px rgba(16, 24, 40, 0.04);
}

.wl-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.wl-gallery-media img[src*='grow-business'] {
  object-position: left top;
}

.wl-gallery-media .wl-visual-placeholder {
  position: absolute;
  inset: 0;
}

.wl-gallery-controls {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wl-gallery-nav {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: var(--wl-ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.wl-gallery-nav:hover:not(:disabled) {
  border-color: #c7d2fe;
  background: #f8fafc;
}

.wl-gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.wl-gallery-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: min(100%, 12rem);
}

.wl-gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.wl-gallery-dot.is-active {
  width: 1.2rem;
  background: var(--wl-blue);
}

.wl-gallery-step-meta {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}

.wl-gallery-copy {
  margin-top: 0.85rem;
  padding: 0 1.15rem;
}

.wl-gallery-copy .wl-copy-inner,
.wl-gallery-copy .wl-copy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.wl-gallery-copy .wl-step-title {
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
}

.wl-gallery-copy .wl-step-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: none;
}

.wl-gallery-copy .wl-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding-top: 0.75rem;
}

.wl-gallery-copy .wl-feature-tile {
  min-height: 2.65rem;
  padding: 0.5rem 0.55rem;
}

.wl-gallery-copy .wl-feature-label {
  font-size: 0.72rem;
}

.wl-gallery-copy .wl-feature-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
}

.wl-gallery .story-skip {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(100% - 2.3rem, 22rem);
  margin: 1.5rem auto 0;
  justify-content: space-between;
}

@media (min-width: 700px) and (max-width: 1180px) {
  .wl-gallery-stage {
    padding: 0 1.75rem;
  }

  .wl-gallery-media {
    aspect-ratio: 16 / 10;
    max-height: min(52vh, 30rem);
  }

  .wl-gallery-copy {
    padding: 0 1.75rem;
  }

  .wl-gallery-copy .wl-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wl-gallery-controls {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-chapter-scroll-arrow {
    animation: none;
  }

  .wl-chapter,
  .wl-story,
  .wl-visual-wrap,
  .wl-copy-panel {
    will-change: auto;
  }

  .wl-gallery-track {
    scroll-behavior: auto;
  }
}
