.story {
  --frame-h: calc(100svh - var(--mast));
  --run: 315svh;
  --opening: 75svh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  color: var(--navy);
}
.story-frame { display: contents }
.story-mark { display: block; height: 0; pointer-events: none }
.goal-mark { order: 1 }
.goals-scene { order: 2; background: white }
.founder-mark { order: 3 }
.founder-scene { order: 4; background: #e1f0fa }
.editor-mark { order: 5 }
.editor-scene { order: 6; background: #236d9c; color: white }
.story-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.98fr) minmax(0,1.02fr);
  align-items: center;
  column-gap: clamp(16px,4vw,76px);
  padding: clamp(44px,7vh,100px) var(--side);
  isolation: isolate;
}
.story-copy { grid-area: 1 / 1; z-index: 1; min-width: 0 }
.story .overline { margin-bottom: clamp(16px,3.3vh,43px); line-height: 1.5 }
.story h2 { font-size: clamp(48px,min(6.9vw,11vh),117px); line-height: .99 }
.story h2 em { color: var(--blue) }
.story-copy > p, .story-quotes p {
  margin-top: clamp(15px,3vh,34px); max-width: 46ch;
  font-size: clamp(16px,1.25vw,21px); line-height: 1.5; letter-spacing: -.012em
}
.story-image {
  grid-area: 1 / 2; position: relative;
  width: 100%; height: min(68svh,45vw,690px);
  display: grid; place-items: center; margin: 0; pointer-events: none;
}
.story-assembly canvas,.assembly-poster { grid-area:1/1; width:100%; height:100%; display:block }
.assembly-poster { object-fit:contain }
.story-assembly:not(.is-drawn) canvas,.story-assembly.is-drawn .assembly-poster { visibility:hidden }
.story-portrait img {
  height: 100%; width: 100%; display: block; object-fit: cover; object-position: 50% 32%;
}
.story-read { margin-top: clamp(16px,2.8vh,32px); max-width: 64ch }
.story-read summary {
  padding: 8px 0; display: inline-block; color: inherit; list-style: none;
  font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor;
}
.story-read summary::-webkit-details-marker { display:none }
.story-read .reading { padding: 20px 0 }
.story-read img, .story-dialog img { max-width: 220px; margin-top:18px }
.story-quotes > div + div { margin-top: 30px }
.editor-scene h2 em { color: #d0edff }
.editor-scene .story-copy { grid-column: 1/-1; max-width: 1000px }
.editor-scene .overline i { background: #bfe5ff }
.story-dialog {
  width: min(710px, calc(100% - 32px)); max-height: min(82svh,840px); padding: 0;
  background: #fbfdff; color: var(--navy); border: 1px solid #accce1;
  box-shadow: 0 25px 100px #153f6840; overscroll-behavior: contain;
}
.story-dialog::backdrop { background: #0e3558a8 }
.story-dialog header {
  position: sticky; top: 0; z-index: 1; background: #fbfdff; border-bottom: 1px solid #b7d0e1;
  padding: 18px clamp(18px,4vw,42px); display:flex; justify-content:space-between; align-items:center; gap:16px
}
.story-dialog h2 { font-size: clamp(25px,3.4vw,37px); letter-spacing: -.045em }
.story-dialog button { padding: 8px 13px; border-radius: 20px; border: 1px solid #93b6cc; background: white; color: var(--navy) }
.dialog-content { padding: 24px clamp(18px,4vw,42px) 40px }
html:has(.story-dialog[open]) { overflow: hidden }
.story.is-pinned { display:block; height: calc(var(--frame-h) + var(--run) + var(--opening)) }
.is-pinned .story-frame {
  display: block; position: sticky; top: var(--mast); height: var(--frame-h);
  isolation: isolate; overflow: clip; background: white;
}
.is-pinned .story-mark { position: absolute; left:0; top:0 }
.is-pinned .founder-mark { top: calc(var(--opening) + var(--run) * .425) }
.is-pinned .editor-mark { top: calc(var(--opening) + var(--run) * .775) }
.is-pinned .story-scene { position: absolute; inset:0; background: transparent; padding-block: 14px; pointer-events: none }
.is-pinned .story-read summary { pointer-events: auto }
.is-pinned .story-scene[inert] .story-read summary { pointer-events: none }
.is-pinned .story-frame::before,.is-pinned .story-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.is-pinned .story-frame::before { background: #e1f0fa; opacity: var(--to-founder,0) }
.is-pinned .story-frame::after { background: #236d9c; opacity: var(--to-editor,0) }
.is-pinned .goals-scene,.is-pinned .founder-scene { z-index: 1 }
.is-pinned .editor-scene { z-index: 2 }
.is-pinned .founder-scene .story-copy,.is-pinned .founder-scene .story-image,.is-pinned .editor-scene .story-copy { opacity:0 }
.is-pinned .story-quotes { display:grid; align-items:center }
.is-pinned .story-quotes > div { grid-area:1/1; margin:0 }
.is-pinned .story-confidence { opacity:0 }
@media(max-width:720px) and (orientation:portrait) {
  .story { --run: 285svh }
  .story-scene { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap: clamp(13px,2.5svh,24px); padding-inline: var(--side) }
  .story-image { flex: none; width: 100%; height: clamp(80px,30svh,315px) }
  .story-portrait img { max-width: 360px; object-position: 50% 28%; margin-inline:auto }
  .story .overline { margin-bottom: clamp(8px,1.8svh,18px) }
  .story h2 { font-size: clamp(35px,min(11.8vw,7.6svh),67px) }
  .story-copy > p, .story-quotes p { margin-top: 12px; font-size: 16px }
  .story-read { margin-top: 10px }
  .editor-scene h2 { font-size: clamp(47px,14vw,82px) }
  .is-pinned .goals-scene,.is-pinned .founder-scene { display:grid; align-content:center; grid-template-columns:1fr; grid-template-rows:clamp(80px,30svh,315px) minmax(0,auto) }
  .is-pinned .goals-scene .story-image,.is-pinned .founder-scene .story-image { grid-area:1/1 }
  .is-pinned .goals-scene .story-copy,.is-pinned .founder-scene .story-copy { grid-area:2/1; align-self:start; min-height: min(37svh,340px) }
}
@media (max-height:550px) and (orientation:landscape) {
  .story h2 { font-size: clamp(32px,7.7vh,42px) }
  .story .overline { margin-bottom:8px }
  .story-copy > p,.story-quotes p { font-size:14px; margin-top:9px }
  .story-read { margin-top:5px }
}
@media (max-width:720px) and (max-height:650px) and (orientation:portrait) {
  .is-pinned .goals-scene,.is-pinned .founder-scene { grid-template-rows: 20svh auto; gap: 10px }
  .is-pinned .story-image { height: 20svh }
  .story .overline { margin-bottom: 7px }
  .story-read { margin-top: 5px }
}

.founder-networks { width: fit-content; max-width:100%; margin: clamp(12px,2.3vh,25px) 0 0 }
.founder-networks figcaption { font-size: 12px; line-height:1.4; letter-spacing:.07em; margin-bottom:6px; color:var(--navy) }
.founder-networks img { display:block; width:clamp(240px,23vw,340px); max-width:100%; height:auto; background:#fff }
@media(max-height:650px) {
  .founder-networks { margin-top:8px }
  .founder-networks img { width:240px }
  .founder-networks figcaption { font-size:11px; margin-bottom:3px }
}
