/* Explicit phrase boundaries provide a WebKit fallback without changing copy. */
.ptop-head h1,
.ptop-head h2,
.photo-step figcaption,
.ptop-loop-node > span {
  word-break: auto-phrase;
  overflow-wrap: normal;
}
.word-unit {
  display: inline-block;
  white-space: nowrap;
}
.scene-video,
.scene-poster,
.scene-video-player,
.scene-background,
.scene-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-poster,
.scene-video-player,
.scene-background > .ptop-backdrop {
  object-fit: cover;
  object-position: center;
}
.scene-video-player {
  opacity: 0;
}
.scene-video[data-playing="true"] .scene-video-player {
  opacity: 1;
}
.scene-video-toggle {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: 70px;
  color: #fff;
  background: #08100de6;
  border: 1px solid #ffffff99;
  border-radius: 2px;
  padding: 7px 13px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.scene-video-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.scene-video-toggle:hover {
  background: #16231f;
}
body[data-page="top"] .ptop-hero .wv-button {
  background: #ffffff1f;
  color: #fff;
  border: 1px solid #ffffffd9;
  padding: 18px 30px;
  font-size: 20px;
}
/* Keep sufficient shade at the lightest edge of any video frame. */
.ptop-hero:has(.scene-video) .ptop-hero-shade,
.pchapter-hero:has(.scene-video) .ptop-hero-shade {
  background: linear-gradient(90deg, #06100cdb, #06100ca3 80%);
}
.scene-background {
  z-index: -1;
  background: #080a09;
}
.scene-shade {
  background: linear-gradient(90deg, #080a09e0, #080a09c9 55%, #080a09a3);
}
.shade-uniform {
  background: #080a09c7;
}
.ptop-scene.on-media {
  color: #fff;
  --wv-ink: #fff;
  --wv-muted: #dedfd9;
  --wv-line: #ffffff52;
  --wv-soft: #ffffff29;
  --wv-copper: #e0c4a3;
  --wv-bg: #101713;
}
.on-media > .media-label {
  position: absolute;
  right: 3%;
  top: 24px;
}
.on-media .wv-button {
  color: #fff;
  border-color: #ffffffc9;
  background: #ffffff12;
}
.on-media .wv-link {
  color: #fff;
}
.on-media .source-content {
  color: #fff;
  background: #18231e;
}
.on-media .ptop-segment > i {
  background: #ffffff54;
}
.on-media .ptop-segment.accent > i {
  background: var(--wv-copper);
}
/* A photo process occupies the full width, with its return path below. */
body[data-page="top"] .ptop-photo-flow,
.pchapter-photo-flow {
  grid-template: "head" auto "visual" auto "sentence" auto "actions" auto / minmax(
      0,
      1fr
    );
  gap: 28px;
  padding-top: 120px;
  padding-bottom: 60px;
}
.photo-flow {
  grid-area: visual;
  position: relative;
  padding: 28px 0 0;
}
.photo-steps {
  display: grid;
  grid-template-columns: repeat(var(--photo-count), minmax(0, 1fr));
  gap: 38px;
}
.photo-step {
  position: relative;
  min-width: 0;
}
.photo-step img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.photo-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -29px;
  top: 35%;
  color: var(--wv-muted);
  font-size: 22px;
}
.photo-step > .media-label,
.photo-tiles .media-label,
.column-photo .media-label {
  position: absolute;
  right: 8px;
  top: 8px;
  margin: 0;
  padding: 3px 7px;
  color: #fff;
  background: #07110de0;
  border: 0;
  font-size: 10px;
}
.photo-step figcaption {
  font-size: 19px;
  margin-top: 14px;
  text-align: center;
  line-height: 1.7;
}
.photo-flow .ptop-return {
  height: 50px;
  margin-top: 18px;
}
.photo-flow .ptop-return-caption {
  text-align: center;
  margin: 8px 0 0;
}
.pchapter-records li[id] {
  scroll-margin-top: 110px;
}
.photo-flow-label,
.photo-step-number {
  display: none;
}
/* Preserve complete 4:3 framing around the worker and machine details. */
.pchapter-mosaic {
  grid-template:
    "head visual" auto "sentence visual" auto "actions visual" auto / minmax(
      0,
      0.95fr
    )
    minmax(0, 1.05fr);
  gap: 34px 56px;
}
.photo-tiles {
  grid-area: visual;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-tiles figure {
  position: relative;
  overflow: hidden;
}
.photo-tiles a {
  display: block;
  position: relative;
  height: 100%;
}
.photo-tiles img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.photo-tiles figure:has(.photo-tile-word)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #060807df, #06080700 62%);
}
.photo-tile-word {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 12px;
  right: 8px;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
}
.photo-tiles .media-label {
  z-index: 2;
}
.photo-tiles a:focus-visible {
  outline: 3px solid var(--wv-copper);
  outline-offset: -3px;
}
body[data-page="top"] .ptop-chain {
  grid-template-areas: "head" "visual" "sentence" "actions";
}
.photo-chain {
  grid-template-columns: repeat(var(--photo-count), minmax(0, 1fr));
  gap: 32px;
}
.photo-chain img {
  aspect-ratio: 3/4;
}
.photo-chain figure {
  overflow: visible;
}
.photo-chain figure:not(:last-child)::before {
  content: "→";
  position: absolute;
  right: -25px;
  top: 45%;
  color: var(--wv-muted);
  font-size: 22px;
}
.photo-chain .photo-tile-word {
  font-size: 36px;
}
.photo-chain figure:last-child .photo-tile-word {
  color: #e0c4a3;
}
.column-photo {
  position: relative;
  margin: 0 0 22px !important;
}
.column-photo img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.pchapter.has-column-photos {
  padding-top: 110px;
  gap: 24px;
}
.has-column-photos .pchapter-columns {
  gap: 36px;
  margin-top: 0;
}
.has-column-photos .pchapter-columns article {
  border: 0;
  padding: 0;
}
.has-column-photos .pchapter-columns h3 {
  margin-bottom: 12px;
}
.has-column-photos .pchapter-columns p {
  font-size: 18px;
  margin: 8px 0;
}
.pchapter[data-page-scene="R4"] .column-photo img {
  aspect-ratio: 1.8;
}
.scene-aside {
  grid-area: aside;
  position: relative;
  width: 100%;
  max-width: 400px;
}
.scene-aside img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.scene-aside .media-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: #fff;
  background: #07110de0;
}
.pchapter-growth:has(.scene-aside) {
  grid-template-areas: "head visual" "sentence visual" "aside visual" "actions visual";
}
.material-badge {
  display: block;
  color: var(--wv-copper);
  font-size: 11px;
  margin-top: 5px;
}
.pchapter-evidence-photo:has(img[src*="vis-v4-bench"]) {
  max-width: 420px;
  justify-self: end;
}
.pchapter-evidence-photo img[src*="vis-v4-bench"] {
  aspect-ratio: 3/4;
  object-fit: cover;
}
.pchapter-evidence-photo figcaption:empty {
  display: none;
}
body[data-page="top"] .ptop-now img[src*="top-05-hands"] {
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
}
@media (max-width: 700px) {
  body[data-page="top"] .ptop-photo-flow,
  .pchapter-photo-flow {
    padding: 115px 5% 72px;
    gap: 26px;
  }
  .photo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .photo-step:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .photo-step:not(:last-child)::after,
  .photo-step > .media-label {
    display: none;
  }
  .photo-step-number {
    display: inline;
    color: var(--wv-copper);
    margin-right: 4px;
  }
  .photo-step figcaption {
    font-size: 14px;
    text-align: left;
    margin-top: 8px;
  }
  .photo-flow-label {
    display: block;
    text-align: right;
    margin: -20px 0 12px;
  }
  .photo-flow-label .media-label {
    font-size: 10px;
  }
  .photo-flow .ptop-return-caption {
    font-size: 13px;
    line-height: 1.8;
  }
  .pchapter-mosaic {
    grid-template: "head" "visual" "sentence" "actions" / minmax(0, 1fr);
  }
  .photo-tiles {
    gap: 8px;
  }
  .photo-tiles .media-label {
    top: 5px;
    right: 5px;
    font-size: 9px;
    padding: 2px 4px;
  }
  .photo-tile-word {
    font-size: 14px;
    left: 8px;
    bottom: 8px;
  }
  .photo-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .photo-chain figure:not(:last-child)::before {
    display: none;
  }
  .photo-chain .photo-tile-word {
    font-size: 26px;
  }
  .has-column-photos .pchapter-columns {
    gap: 34px;
  }
  .column-photo img,
  .pchapter[data-page-scene="R4"] .column-photo img {
    aspect-ratio: 4/3;
  }
  .has-column-photos .pchapter-columns p {
    font-size: 17px;
  }
  .pchapter-growth:has(.scene-aside) {
    grid-template-areas: "head" "visual" "sentence" "aside" "actions";
  }
  .pchapter-evidence-photo:has(img[src*="vis-v4-bench"]) {
    width: 100%;
    max-width: none;
  }
  .pchapter-evidence-photo img[src*="vis-v4-bench"] {
    aspect-ratio: 3/4;
    max-height: 450px;
    object-fit: contain;
  }
  .scene-video-toggle {
    bottom: 70px;
    right: 5%;
    min-height: 32px;
  }
  body[data-page="top"] .ptop-hero .wv-button {
    font-size: 16px;
    padding: 16px 22px;
  }
  .ptop-scene.on-media .ptop-head {
    padding-top: 10px;
  }
  .pchapter[data-page-scene="L2"] .ptop-loop-node {
    font-size: 12px;
  }
  .pchapter[data-page-scene="L2"] .ptop-loop-nodes {
    gap: 3px;
  }
  .pchapter[data-page-scene="L2"] .ptop-loop-arrow {
    font-size: 15px;
  }
}
@media (min-width: 701px) {
  .column-photo img,
  .pchapter[data-page-scene="R4"] .column-photo img {
    height: 240px;
    aspect-ratio: auto;
  }
  .pchapter[data-page-scene="T2"] .ptop-inputs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body[data-page="top"] .ptop-photo-flow {
    padding-top: 110px;
    padding-bottom: 50px;
    gap: 24px;
  }
  body[data-page="top"] .ptop-chain {
    padding-top: 110px;
    padding-bottom: 50px;
    gap: 20px;
  }
}

body[data-page="research"] .pchapter-hero .ptop-hero-shade {
  background: linear-gradient(90deg, #06100cdb, #06100ca3 80%);
}
/* Alias anchors must not create implicit rows or gaps in scene grids. */
.ptop-scene > .section-anchor {
  position: absolute;
  left: 0;
  top: -110px;
}
@media (min-width: 701px) {
  .pchapter-photo-flow {
    padding-top: 105px;
    padding-bottom: 45px;
    gap: 22px;
  }
  .photo-steps:has(> .photo-step:nth-child(3):last-child) {
    max-width: 1060px;
    margin-inline: auto;
  }
  .pchapter[data-page-scene="I3"] {
    padding-bottom: 36px;
    gap: 20px;
  }
  .pchapter[data-page-scene="I3"] .column-photo img {
    height: 200px;
  }
}

.photo-flow-state {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--wv-copper);
}

.ptop-context {
  padding-right: 74px;
}
