/* Sample 2 — S02b asphalt journey rails (Layout A on third-screen) */

body.tz-s2-hero-on {
  --tz-s2-asphalt-paper: #f7f5f1;
  --tz-s2-asphalt-ink: #0a3d3d; /* dark teal headings (was near-black) */
  --tz-s2-asphalt-muted: #5c6b67;
}

/*
 * Sample 1 pattern: second-screen = Our Services (leave alone).
 * Desktop right column = phone images only — hide legacy text whenever asphalt
 * is mounted on the sub-wrap (attribute set by s2-asphalt.js). List stays in
 * DOM for scroll budget. Also keep owns-pin hide as a safety net.
 */
.home-service-sub-wrap[data-tz-s2-asphalt] .home-service-sub-content .home-service-title.sub,
.home-service-sub-wrap[data-tz-s2-asphalt] .home-service-sub-content .home-service-desc.sub,
.home-service-sub-wrap[data-tz-s2-asphalt] .home-service-sub-list,
html.tz-s2-asphalt-owns .home-service-sub-content .home-service-title.sub,
html.tz-s2-asphalt-owns .home-service-sub-content .home-service-desc.sub,
html.tz-s2-asphalt-owns .home-service-sub-list {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.tz-s2-hero-on .home-service-stick.third-screen {
  isolation: isolate;
}

body.tz-s2-hero-on .home-service-sub-wrap {
  isolation: isolate;
  position: relative;
}

.tz-s2-asphalt {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tz-s2-asphalt.is-live {
  opacity: 1;
  visibility: visible;
}

/* Left copy — sticky third-screen stick */
.tz-s2-asphalt-left {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 8.8rem 2.4rem 3.2rem 0;
}

.tz-s2-asphalt-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.tz-s2-asphalt-rail.is-left {
  max-width: 34rem;
}

.tz-s2-asphalt-beats {
  display: grid;
  width: 100%;
}

.tz-s2-asphalt-beat {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2rem);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.tz-s2-asphalt-beat.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1;
}

.tz-s2-asphalt-kicker {
  margin: 0 0 0.8rem;
  font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff6b35;
}

.tz-s2-asphalt-headline {
  margin: 0 0 1.1rem;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--tz-s2-asphalt-ink);
  max-width: 12ch;
}

.tz-s2-asphalt-support {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.45;
  color: var(--tz-s2-asphalt-muted);
  max-width: 30ch;
}

/*
 * Right column — scroll stack over the theme sub-list box.
 * Moves with the page exactly like :8080 titles (no sticky image swap).
 */
.tz-s2-asphalt-right {
  position: absolute;
  inset: 0;
  z-index: 6;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.tz-s2-asphalt-scroll {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0;
  box-sizing: border-box;
}

.tz-s2-asphalt-card {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
  opacity: 0.42;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  filter: saturate(0.85);
}

.tz-s2-asphalt-card.is-active {
  opacity: 1;
  transform: scale(1.02);
  filter: none;
  z-index: 1;
}

.tz-s2-asphalt-phone {
  position: relative;
  height: clamp(16rem, 32vh, 28rem);
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: min(16rem, 80%);
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.22));
}

.tz-s2-asphalt-card.is-active .tz-s2-asphalt-phone {
  filter: drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.28));
}

.tz-s2-asphalt-phone .tz-s2-phone-bezel {
  width: 100%;
  height: 100%;
}

.tz-s2-asphalt-phone .tz-s2-phone-screen {
  overflow: hidden;
}

.tz-s2-asphalt-phone .tz-s2-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Mobile / tablet: text-only stage story — no trip-stage phone images */
@media screen and (max-width: 991px) {
  .tz-s2-asphalt-right {
    display: none !important;
  }

  .tz-s2-asphalt-left {
    position: relative;
    inset: auto;
    z-index: 6;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 5.6rem 1.25rem 2.4rem;
    align-items: stretch;
    pointer-events: none;
  }

  .tz-s2-asphalt-rail.is-left {
    max-width: none;
  }

  .tz-s2-asphalt-beats {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }

  .tz-s2-asphalt-beat {
    grid-area: auto;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .tz-s2-asphalt-headline {
    max-width: 16ch;
    font-size: clamp(26px, 7vw, 36px);
  }

  .tz-s2-asphalt-support {
    max-width: none;
    font-size: clamp(15px, 4vw, 17px);
  }
}
