/* Composition-only override. Load after thesis-dives.css.
   Existing picture, copy, process controls and discovery remain in DOM order.
   Grid gives top compositions an intrinsic copy row and a bounded image stage. */
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene {
  --scene-height: clamp(320px, 32vw, 460px);
  --scene-position: 50% 65%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto var(--scene-height) auto;
  align-content: start;
  justify-content: normal;
  min-height: 0;
  height: auto;
  padding: 32px 0 20px;
  overflow: visible;
  background: #030405;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-hero-editorial {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  align-self: start;
  width: calc(100% - 2 * var(--edge));
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 0 12px;
  background: #030405;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-heading {
  max-width: 1050px;
  font-size: clamp(48px, 4.5vw, 64px);
  line-height: 1.06;
  overflow-wrap: break-word;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-hero-editorial .thesis-paragraphs {
  max-width: 60ch;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.55;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-picture {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  background: #030405;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--scene-position);
  /* Keep decoded artwork painted after a tall page returns to this scroller. */
  transform: translateZ(0);
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-mask {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: stretch;
  pointer-events: none;
  background: linear-gradient(180deg, #030405 0%, transparent 16%, transparent 76%, #030405 100%), linear-gradient(90deg, #030405 0%, transparent 5%, transparent 95%, #030405 100%);
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-process-nav {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  margin: -64px 0 0;
  padding: 16px var(--edge) 0;
  background: #030405;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-process-nav::before {
  content: '';
  position: absolute;
  inset: -36px 0 auto;
  height: 36px;
  background: linear-gradient(180deg, transparent, #030405);
  pointer-events: none;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-process-labels {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-process-labels button {
  min-height: 44px;
  min-width: 44px;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-hero-discovery {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  z-index: 3;
  margin: 8px 0 0;
  padding-inline: var(--edge);
  background: #030405;
}
/* Buildout: remove surplus source headroom, not the bright upper wafer face.
   Copy cannot enter this separate image row, even with enlarged text. */
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-buildout {
  --scene-height: clamp(340px, 33vw, 480px);
  --scene-position: 50% 100%;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-buildout .thesis-picture img {
  top: auto;
  bottom: 0;
  height: 130%;
}
/* Wide city and continent retain their lower/right illumination. */
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-capital {
  --scene-height: clamp(340px, 34vw, 490px);
  --scene-position: 50% 75%;
}
body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-america {
  --scene-height: clamp(340px, 34vw, 490px);
  --scene-position: 50% 40%;
}
/* Wide left-field scenes are deliberately not top-header slides.
   The opaque copy field grows with the paragraph; its fade ends before
   the machine/worker region. Image height also grows intrinsically. */
@media (min-width: 1100px) {
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) {
    grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
    grid-template-rows: minmax(480px, auto) auto;
    padding-top: 0;
    --scene-position: 50% 50%;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-picture,
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-mask {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-mask {
    background: linear-gradient(90deg, #030405 0%, #030405 39%, transparent 46%), linear-gradient(180deg, #030405, transparent 12%, transparent 80%, #030405);
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-hero-editorial {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px 16px 100px var(--edge);
    background: #030405;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-heading {
    font-size: clamp(48px, 4vw, 60px);
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-process-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) .thesis-hero-discovery {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Normal-width panes use intrinsic top copy rather than squeeze a left
   paragraph into the worker or machine. The original art sources remain. */
@media (min-width: 601px) and (max-width: 1099px) {
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene {
    --scene-height: clamp(340px, 45vw, 470px);
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero:is(.thesis-scene-economics, .thesis-scene-physical) {
    --scene-position: 65% 50%;
  }
}
/* Existing 1200 x 2133 mobile sources: text first, substantial scene next.
   No viewport-height hero cap and no image above the heading. */
@media (max-width: 600px) {
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene {
    --scene-height: clamp(300px, 84vw, 400px);
    --scene-position: 50% 56%;
    padding-top: 24px;
    padding-bottom: 16px;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-heading {
    font-size: clamp(34px, 9.6vw, 40px);
    line-height: 1.08;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-hero-editorial .thesis-paragraphs {
    max-width: 39ch;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.55;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-picture img {
    inset: 0;
    height: 100%;
    object-position: var(--scene-position);
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-mask {
    background: linear-gradient(180deg, #030405 0%, transparent 17%, transparent 75%, #030405 100%), linear-gradient(90deg, #030405, transparent 5%, transparent 95%, #030405);
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-process-nav {
    margin-top: -52px;
    padding-top: 12px;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene .thesis-process-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
  }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-buildout { --scene-position: 50% 62%; }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-capital { --scene-position: 50% 65%; }
  body[data-view='thesis'] .thesis-shell .thesis-hero.thesis-scene-america { --scene-position: 50% 42%; }
}
