.pack-service {
  --service-copy: var(--muted);
  --service-rule: var(--line);
  background: var(--paper);
  max-width: 1840px;
  margin: auto;
  padding: clamp(72px, 8vw, 144px) var(--gutter) clamp(56px, 7vw, 112px);
}
.service-intro, .service-stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.65vw, 32px);
  align-items: center;
}
.service-intro { align-items: end; margin-bottom: clamp(32px, 5vw, 80px); }
.service-intro h2 {
  grid-column: 1 / 8;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4rem, 6.7vw, 6.5rem);
  font-weight: 340;
  line-height: 1.12;
  letter-spacing: -.055em;
}
.service-intro p, .service-copy p {
  max-width: 29em;
  margin: 0;
  color: var(--service-copy);
  font-size: clamp(1.0625rem, 1.32vw, 1.25rem);
  line-height: 1.8;
}
.service-intro p, .service-copy { grid-column: 9 / -1; }
.service-stages { list-style: none; padding: 0; margin: 0; }
.service-stage + .service-stage { margin-top: clamp(48px, 7vw, 112px); }
.service-photo { grid-column: 1 / 8; min-width: 0; margin: 0; }
.service-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--studio);
}
.service-photo figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--forest);
  font-size: .875rem;
  line-height: 1.5;
}
.service-photo figcaption span:last-child { color: var(--muted); }
.service-copy h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.875rem, 3.3vw, 3.5rem);
  font-weight: 390;
  line-height: 1.22;
  letter-spacing: -.045em;
}
.service-visit { position: relative; }
.service-stop { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; pointer-events: none; }
.service-index:not([hidden]) {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(4px, 1vw, 16px);
  margin-top: clamp(20px, 3.5svh, 40px);
}
.service-index a {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  padding: 4px 0 0;
  border-top: 1px solid var(--service-rule);
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color .18s var(--ease-settle);
}
.service-index a::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease-settle);
}
.service-index a[aria-current="step"], .service-index a:hover { color: var(--forest); }
.service-index a[aria-current="step"]::before,
.service-index a:focus-visible::before { transform: scaleX(1); }
.service-visit[data-scrub] { height: calc(var(--view-height) + var(--travel)); }
.service-visit[data-scrub] .service-scene {
  position: sticky;
  top: var(--nav-height);
  height: var(--view-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-visit[data-scrub] .service-stages { display: grid; }
.service-visit[data-scrub] .service-stage {
  grid-area: 1 / 1;
  margin: 0;
  pointer-events: none;
}
.service-visit[data-scrub] .service-photo {
  width: min(100%, calc((var(--view-height) - 160px) * 1.5));
  opacity: 0;
}
.service-visit[data-scrub] .service-copy > :is(h3,p) {
  opacity: 0;
}
.service-visit[data-scrub] .service-stage[data-current] { z-index: 2; pointer-events: auto; }
.service-visit[data-scrub] [data-current] .service-photo { opacity: 1; }
.service-visit[data-scrub] [data-current] .service-copy > :is(h3,p) { opacity: 1; }
.service-visit[data-switching][data-direction="forward"] { --service-reveal-right: 10%; }
.service-visit[data-switching][data-direction="backward"] { --service-reveal-left: 10%; }
.service-visit[data-switching] .service-stage[data-outgoing] { z-index: 1; }
.service-visit[data-switching] [data-outgoing] .service-photo {
  transition: opacity .32s ease-out .09s;
}
.service-visit[data-switching] [data-outgoing] figcaption { visibility: hidden; }
.service-visit[data-switching] [data-current] .service-photo {
  transition: opacity .34s var(--ease-settle);
}
.service-visit[data-switching] [data-current] .service-photo img {
  animation: service-image-in .46s var(--ease-settle) both;
}
.service-visit[data-switching] [data-current] :is(figcaption, .service-copy > h3) {
  animation: service-copy-in .32s var(--ease-settle) .075s both;
}
.service-visit[data-switching] [data-current] .service-copy > p {
  animation: service-copy-in .32s var(--ease-settle) .14s both;
}
@keyframes service-image-in {
  from { clip-path: inset(0 var(--service-reveal-right, 0%) 0 var(--service-reveal-left, 0%)); }
  to { clip-path: inset(0); }
}
@keyframes service-copy-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 740px) {
  .pack-service { padding-block: 64px 52px; }
  .service-intro, .service-stage { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .service-intro, .service-scene { max-width: 600px; margin-inline: auto; }
  .service-intro h2 { font-size: clamp(2.25rem, 7.8vw, 3.25rem); }
  .service-copy p, .service-intro p { font-size: 1.0625rem; line-height: 1.72; }
  .service-copy h3 { margin-bottom: 8px; font-size: clamp(1.5rem, 5.6vw, 2.25rem); }
  .service-visit[data-scrub] .service-photo { width: min(100%, calc(var(--view-height) * .72)); }
  .service-visit[data-scrub] .service-stage { justify-content: start; }
  .service-index a { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pack-service *, .service-index a::before { animation: none !important; transition: none !important; }
}

.pack-inspection { background:var(--surface-mist); }
.pack-inspection .service-intro h2 { font-size: clamp(2.6rem,5.7vw,5.8rem); text-wrap: balance; }
@media (min-width:741px) {
  .pack-inspection .service-photo { grid-column: 6 / -1; grid-row: 1; }
  .pack-inspection .service-copy { grid-column: 1 / 5; grid-row: 1; }
}
@media (max-width:740px) {
  .pack-inspection .service-intro h2 { font-size: clamp(2.15rem,7.8vw,3.25rem); }
}
