/* Vertical HTML is the baseline. Spatial scenes are a progressive enhancement. */
.service-journey {
  position: relative;
}
.journey-bar,
.journey-world,
.journey-atmosphere {
  display: none;
}
.journey-panel > section {
  position: relative;
  isolation: isolate;
}
.journey-fallback-nav {
  position: relative !important;
}
.journey-panel .inner-opening {
  overflow: clip;
}
.service-horizontal-page .journey-panel p {
  font-size: 16px;
  line-height: 1.75;
}
.service-horizontal-page .journey-panel .principle {
  font-size: 14px;
  line-height: 1.65;
}
.service-horizontal-page .journey-panel .offer-children p {
  font-size: 14px;
}

html[data-service-horizontal] {
  scroll-padding-top: 0;
}
html[data-service-horizontal] .service-journey {
  height: var(--journey-height);
  overflow-anchor: none;
}
html[data-service-horizontal] .journey-fallback-nav {
  display: none;
}
html[data-service-horizontal] .journey-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  isolation: isolate;
  --motion-play: paused;
}
html[data-service-horizontal] .journey-pin.is-awake {
  --motion-play: running;
}
html[data-service-horizontal] .journey-viewport {
  position: relative;
  z-index: 2;
  height: calc(100svh - 90px);
  overflow: clip;
}
html[data-service-horizontal] .journey-track {
  position: relative;
  height: 100%;
}
html[data-service-horizontal] .journey-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  transform: var(--scene-matrix, none) translateY(var(--panel-y, 0px));
  transform-origin: 0 0;
  opacity: var(--scene-opacity, 0);
  pointer-events: var(--scene-pointer, none);
  filter: var(--scene-filter, none);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html[data-service-horizontal] [data-scene-layer] {
  transform: translateY(
    calc((1 - var(--scene-entry, 1)) * var(--layer-distance, 20px))
  );
  opacity: clamp(
    0,
    calc(var(--scene-entry, 1) * 1.5 - var(--layer-delay, 0)),
    1
  );
  animation: none;
}
html[data-service-horizontal] .journey-panel > section {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 68px var(--pad) 70px;
  border: 0;
  background: none;
}
html[data-service-horizontal] .journey-panel > .inner-opening {
  padding-top: 125px;
  padding-bottom: 24px;
  min-height: 0;
}
html[data-service-horizontal] .breadcrumb {
  margin-bottom: 28px;
}
html[data-service-horizontal] .inner-copy h1 {
  font-size: clamp(58px, min(6.3vw, 8.5svh), 96px);
}
html[data-service-horizontal] .inner-copy > p {
  font-size: 16px;
  line-height: 1.7;
}
html[data-service-horizontal] .inner-copy .tags {
  margin: 20px 0 25px;
}
html[data-service-horizontal] .service-stats {
  margin-top: 30px;
}
html[data-service-horizontal] .service-stats dt {
  font-size: 12px;
}
html[data-service-horizontal] .service-stats dd {
  font-size: 14px;
  max-width: 330px;
}
html[data-service-horizontal] .journey-panel .section-heading {
  margin-bottom: 42px;
}
html[data-service-horizontal] .journey-panel .section-heading h2 {
  font-size: clamp(46px, 5.3vw, 80px);
  line-height: 1.02;
}
html[data-service-horizontal] .journey-panel .section-heading > .eyebrow {
  font-size: 12px;
}
html[data-service-horizontal] .journey-panel .section-heading p {
  font-size: 16px;
  line-height: 1.75;
}
html[data-service-horizontal] .journey-panel p {
  font-size: 16px;
  line-height: 1.7;
}
/* Capabilities open as a readable catalogue; expanded copy adds reading space. */
html[data-service-horizontal] [data-service-map] {
  display: grid;
  grid-template-columns: 0.72fr 1.6fr;
  align-items: start;
  gap: 7%;
}
html[data-service-horizontal] [data-service-map] > .section-heading {
  display: block;
  margin: 0;
}
html[data-service-horizontal] [data-service-map] .section-heading h2 {
  margin: 25px 0;
  font-size: clamp(46px, 5vw, 74px);
}
html[data-service-horizontal] .offer > summary {
  grid-template-columns: 90px 1fr 34px;
  gap: 18px;
  padding: 23px 0;
}
html[data-service-horizontal] .offer > summary .eyebrow {
  font-size: 11px;
}
html[data-service-horizontal] .offer summary h3 {
  font-size: clamp(24px, 2.15vw, 32px);
}
html[data-service-horizontal] .offer-body {
  display: block;
  padding: 22px 0 29px;
}
html[data-service-horizontal] .offer-intro > p {
  max-width: 100%;
}
html[data-service-horizontal] .offer-intro .eyebrow {
  margin-top: 16px;
  font-size: 12px;
  color: var(--discipline);
}
html[data-service-horizontal] .offer-children {
  margin-top: 24px;
  gap: 22px 35px;
}
html[data-service-horizontal] .offer-children h4 {
  font: 400 16px/1.45 var(--body);
  color: var(--ink);
}
html[data-service-horizontal] .offer-children p {
  font-size: 14px;
  line-height: 1.7;
}
/* Outcome reads as one headline beside the deliverables, not a row of cards. */
html[data-service-horizontal] .journey-panel > .outcome {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 8%;
  align-items: center;
}
html[data-service-horizontal] .outcome .section-heading {
  display: block;
  margin: 0;
}
html[data-service-horizontal] .outcome .section-heading h2 {
  margin: 28px 0;
  color: var(--discipline);
}
html[data-service-horizontal] .outcome .section-heading p {
  max-width: 420px;
}
html[data-service-horizontal] .benefit-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 33px 42px;
}
html[data-service-horizontal] .benefit-list h3 {
  font-size: 30px;
  margin: 18px 0 15px;
}
html[data-service-horizontal] .benefit-list article > .eyebrow {
  font-size: 12px;
  color: var(--discipline);
}
html[data-service-horizontal] .team .section-heading {
  display: block;
  max-width: 900px;
}
html[data-service-horizontal] .team .section-heading h2 {
  margin-top: 22px;
}
html[data-service-horizontal] .team-grid {
  gap: 5%;
}
html[data-service-horizontal] .team-grid h3 {
  font-size: 32px;
}
html[data-service-horizontal] .role-no {
  font-size: 66px;
  margin-bottom: 22px;
  opacity: 0.7;
}
html[data-service-horizontal] .principle {
  font-size: 14px;
  line-height: 1.65;
}
html[data-service-horizontal] .team-grid .eyebrow {
  font-size: 12px;
}
html[data-service-horizontal] [id="advantages"] .section-heading {
  display: block;
}
html[data-service-horizontal] [id="advantages"] .section-heading h2 {
  margin-top: 25px;
}
html[data-service-horizontal] .assurance-grid {
  gap: 34px 7%;
}
html[data-service-horizontal] .assurance-grid h3 {
  font-size: 32px;
}
html[data-service-horizontal] .assurance-grid .eyebrow {
  font-size: 12px;
}
html[data-service-horizontal] .journey-panel > .inner-process {
  display: grid;
  grid-template-columns: 0.75fr 1.4fr;
  gap: 8%;
  align-items: center;
}
html[data-service-horizontal] .inner-process .section-heading {
  display: block;
  margin: 0;
}
html[data-service-horizontal] .inner-process .section-heading h2 {
  margin-top: 25px;
}
html[data-service-horizontal] .project-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 40px;
}
html[data-service-horizontal] .project-step {
  display: block;
  padding: 22px 0 0;
}
html[data-service-horizontal] .project-step > .step-no {
  font-size: 42px;
}
html[data-service-horizontal] .project-step > div {
  margin-top: 22px;
}
html[data-service-horizontal] .project-step .eyebrow {
  font-size: 12px;
}
html[data-service-horizontal] .project-step h3 {
  font-size: 28px;
  margin: 15px 0;
}
html[data-service-horizontal] .journey-world {
  display: block;
  position: absolute;
  inset: 0 0 90px;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
  isolation: isolate;
}
html[data-service-horizontal] .journey-world::before {
  content: "";
  position: absolute;
  inset: -15%;
  opacity: calc(0.18 + var(--world-pulse, 0) * 0.6);
  background:
    radial-gradient(
      ellipse at var(--world-light-x, 70%) var(--world-light-y, 50%),
      color-mix(in srgb, var(--light-colour), transparent 65%),
      transparent 58%
    ),
    radial-gradient(
      ellipse at 24% 64%,
      color-mix(in srgb, var(--light-secondary), transparent 80%),
      transparent 56%
    );
}
html[data-service-horizontal] .journey-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse, transparent 45%, #090d0c55 100%);
}
html[data-service-horizontal] .journey-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, var(--world-edge, 0.12)),
    black 48%
  );
}
html[data-service-horizontal] .journey-atmosphere {
  display: block;
  position: absolute;
  inset: 0;
  opacity: calc(0.18 + var(--world-pulse, 0) * 0.7);
  transform: scale(var(--world-scale, 1)) rotate(var(--world-angle, 0deg));
}
html[data-service-horizontal] .journey-atmosphere .silk {
  position: absolute;
  width: 85%;
  height: 95%;
  top: -8%;
  right: -15%;
  mask-image: radial-gradient(ellipse, black 25%, transparent 70%);
}
html[data-service-horizontal] .has-world .journey-atmosphere {
  display: none;
}
html[data-service-horizontal] .has-world .inner-art .silk {
  opacity: 0;
}
html[data-service-horizontal] .has-world .inner-opening::before {
  opacity: 0.35;
}
.journey-bar {
  height: 90px;
  margin: 0 var(--pad);
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
}
html[data-service-horizontal] .journey-bar {
  display: flex;
}
.journey-position {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}
.journey-counter {
  font-size: 18px;
  color: var(--discipline);
}
.journey-chapters {
  display: flex;
  gap: 23px;
  flex: 1;
}
.journey-chapters a {
  font-size: 14px;
  color: var(--muted);
  padding: 15px 0;
  transition: color 0.25s;
}
.journey-chapters a[aria-current],
.journey-chapters a:hover {
  color: var(--discipline);
}
.journey-controls {
  display: flex;
  gap: 8px;
}
.journey-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  color: var(--discipline);
}
.journey-controls button:disabled {
  opacity: 0.25;
  cursor: default;
}
.journey-controls button:hover:not(:disabled) {
  border-color: var(--discipline);
}
.journey-contact {
  display: flex;
  gap: 25px;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
}
.journey-contact > span {
  font-size: 22px;
  color: var(--discipline);
}
.journey-progress {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}
.journey-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--discipline);
  transform: scaleX(var(--journey-progress, 0));
  transform-origin: left;
}
@media (min-width: 901px) and (max-width: 1180px) {
  .journey-bar {
    gap: 20px;
  }
  .journey-position {
    display: none;
  }
  .journey-chapters {
    gap: 18px;
  }
  .journey-chapters a,
  .journey-contact {
    font-size: 12px;
  }
  .journey-contact {
    gap: 14px;
  }
  html[data-service-horizontal] [data-service-map] {
    grid-template-columns: 0.72fr 1.5fr;
    gap: 6%;
  }
  html[data-service-horizontal] .offer > summary {
    grid-template-columns: 1fr 30px;
  }
  html[data-service-horizontal] .offer > summary > .eyebrow {
    grid-column: 1/-1;
    margin-bottom: -9px;
  }
  html[data-service-horizontal] .journey-panel > .outcome,
  html[data-service-horizontal] .journey-panel > .inner-process {
    grid-template-columns: 0.75fr 1.5fr;
    gap: 6%;
  }
  html[data-service-horizontal] .benefit-list,
  html[data-service-horizontal] .project-steps {
    gap: 28px;
  }
  html[data-service-horizontal] .benefit-list h3,
  html[data-service-horizontal] .project-step h3 {
    font-size: 25px;
  }
  html[data-service-horizontal] .team-grid h3 {
    font-size: 28px;
  }
}
@media print {
  html[data-service-horizontal] .service-journey {
    height: auto;
  }
  html[data-service-horizontal] .journey-pin {
    position: static;
    height: auto;
  }
  html[data-service-horizontal] .journey-viewport {
    height: auto;
    overflow: visible;
  }
  html[data-service-horizontal] .journey-track {
    display: block;
    transform: none;
  }
  html[data-service-horizontal] .journey-panel {
    position: relative;
    display: block;
    transform: none;
    opacity: 1;
    filter: none;
  }
  html[data-service-horizontal] [data-scene-layer] {
    transform: none;
    opacity: 1;
  }
  html[data-service-horizontal] .journey-bar,
  html[data-service-horizontal] .journey-world,
  html[data-service-horizontal] .journey-atmosphere {
    display: none;
  }
}
