.portrait-figure, .inline-figure { margin:0 }
.index { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px 24px }
.case { padding-block:64px; }
.case-head { display:block; margin:0 0 28px }
.case-label { margin-bottom:12px }
.step { display:grid; grid-template-columns:minmax(0, 0.36fr) minmax(0, 0.64fr); gap:32px; align-items:center; margin-bottom:52px }
.step:last-child { margin-bottom:0 }
.step:not(:has(.media)) { display:block; max-width:64ch }
.step p,.leadership p { line-height:1.55 }
.story-block { margin:0 }
.media,.passage { min-width:0 }
.media.pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.media img,.media video { display:block; width:100%; height:auto }
.enlarge { display:block; cursor:zoom-in; width:100%; aspect-ratio:8/5; padding:0; background:transparent; border:0; color:inherit }
button:focus-visible { outline:2px solid currentColor; outline-offset:3px }
.inline-figure figcaption.eyebrow { margin:8px 0 0;text-align:center; line-height:1.4 }
.leadership p { max-width:64ch }.leadership h3 { margin:32px 0 8px;font-size:24px }.leadership h3+p { margin-top:0 }
header .email { text-decoration:none; font-size:clamp(14px, 2vw, 18px) }
footer { font-size:14px }
dialog { border:0; padding:0; width:min(96vw,1540px); height:fit-content; max-width:96vw; max-height:96dvh;
  background:var(--paper); color:var(--ink); margin:auto; }
dialog[open] { display:grid; place-items:center; padding:44px; }
dialog::backdrop { background:#17241fe6 }
dialog figure { width:100%; max-width:1500px; max-height:100%; display:flex; flex-direction:column; align-items:center; }
#zoom { min-height:0; width:100%; display:flex; justify-content:center }
#zoom img { display:block; max-width:100%; max-height:70dvh; object-fit:contain; width:auto; height:auto }
.tools button { position:absolute; z-index:1; width:44px; height:44px; padding:0; border:0;
 background:transparent; color:inherit; font:400 28px/1 system-ui,sans-serif; cursor:pointer; }
#close { top:4px; right:4px }
#prev,#next { top:50%; transform:translateY(-50%); }
#prev {left:0} #next {right:0}
html:has(dialog[open]) {overflow:hidden}
@media(max-width:800px){
main {padding-inline:18px}.case {padding-block:32px}.step {display:block;margin-bottom:24px}.media {margin-top:14px}
.index { display:grid;grid-template-columns:1fr;gap:6px;padding:14px 0 20px }.index a {line-height:1.4}
}
@media(max-width:767px){
header { padding:16px 18px 0 }header .brand {font-size:26px}
.hero {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 12px;padding:20px 0;align-items:center}
.hero-copy {display:contents}.hero-copy>.eyebrow {flex:0 0 100%;margin:0}.hero h1 {flex:0 0 auto;max-width:100%;font-size:clamp(28px,7.3vw,44px);margin:0}.portrait-figure {flex:0 0 98px}.portrait {width:98px;aspect-ratio:1;border-radius:50%}
.hero .leadership-intro,.hero .intro-review {flex:0 0 100%;margin:2px 0;font-size:16px}.intro-review blockquote {font-size:17px}
}

@media (min-width:801px) {
  .case.has-stage { display:grid; grid-template-columns:minmax(0,.36fr) minmax(0,.64fr); gap:32px; align-items:start; padding-block:0; }
  .has-stage .step { display:flex; flex-direction:column; align-items:stretch; justify-content:center; min-height:65vh; padding:32px 0; margin:0; }
  .visual-stage { position:sticky; top:0; height:100vh; height:100dvh; display:grid; align-items:center; }
  .visual-stage > .media { grid-area:1/1; width:100%; opacity:0; visibility:hidden; transition:opacity .35s, visibility 0s .35s; }
  .visual-stage > .media.visible { opacity:1; visibility:visible; transition-delay:0s; z-index:1; }
  .visual-stage img,.visual-stage video { max-height:80vh; object-fit:contain; }
  @media(prefers-reduced-motion:reduce) { .visual-stage > .media { transition:none; } }
}
.visual-stage .media[inert] { pointer-events:none; }

@media (min-width:801px) {
  .has-stage .step:last-child p:last-child { margin-bottom:0 }
}
dialog[open] { grid-template-columns:minmax(0,1fr) }
dialog .tools { position:absolute; inset:0; pointer-events:none }
dialog .tools button { pointer-events:auto }

@media (min-width:801px) {
  .visual-stage { margin-top:var(--stage-start,0px) }
}
@media (max-width:800px) {
  .case.has-stage { display:flex; flex-direction:column; padding-block:0; gap:0 }
  .has-stage .steps { width:100% }
  .has-stage .steps { padding-block:24px }
  .has-stage .step { display:flex; flex-direction:column; justify-content:flex-start;
    min-height:0; padding:0; margin:0; gap:0 }
  .has-stage .step + .step { margin-top:24px }
  .has-stage .step p { margin:0 }
  .has-stage .step p + p { margin-top:24px }
  .has-stage .step h3.eyebrow { margin:0 0 8px }
  .has-stage .case-head { margin-bottom:24px }
  .visual-stage { position:sticky; top:env(safe-area-inset-top,0px); order:-1; z-index:2;
    width:100%; display:grid; align-items:center; background:var(--paper); box-shadow:0 1px var(--line) }
  .visual-stage > .media { grid-area:1/1; margin:0; width:100%; padding:4px 0;
    opacity:0; visibility:hidden; transition:opacity 400ms ease,visibility 0s 400ms }
  .visual-stage > .visible { opacity:1; visibility:visible; transition-delay:0s; z-index:1 }
  .visual-stage .inline-figure { min-width:0; display:flex; flex-direction:column; align-items:center }
  .visual-stage .enlarge,.visual-stage video { width:100%; height:min(30vh,62.5vw); height:min(30dvh,62.5vw); max-width:100% }
  .visual-stage img,.visual-stage video { height:100%; object-fit:contain }
  .visual-stage video { height:min(30dvh,62.5vw) }
  .visual-stage .pair .enlarge { height:auto }
  @media(prefers-reduced-motion:reduce) { .visual-stage > .media { transition:none } }
}
@media (max-width:767px) {
  .hero {
    display:grid;
    grid-template-columns:clamp(64px,20vw,98px) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr) auto auto;
    gap:0 8px;
    padding-block:16px;
  }
  header { display:grid; grid-template-columns:minmax(0,1fr) max-content; gap:8px }
  header .email { justify-self:start }
  .hero-copy > .eyebrow { grid-column:2; grid-row:2; margin:0 0 10px }
  .hero h1 { grid-column:2; grid-row:3; font-size:clamp(23px,6.6vw,44px); white-space:nowrap; margin:0 }
  .hero .portrait-figure { grid-column:1; grid-row:1/5; width:clamp(64px,20vw,98px); justify-self:start; align-self:center; margin-block:0 }
  .hero .portrait { width:100% }
  .hero .leadership-intro { grid-column:1/-1; grid-row:5; margin:16px 0 0 }
  .hero .intro-review { grid-column:1/-1; grid-row:6; margin:10px 0 0 }
}

/* End each desktop story with the final visual and paragraph sharing a top edge. */
@media (min-width:801px) {
  .case.has-stage { padding-block:64px }
  .has-stage .step:first-child { padding-top:0; justify-content:flex-start }
  .has-stage .step:last-child { justify-content:flex-start; padding:0; min-height:var(--last-step-height,0px) }
  .has-stage .step:last-child p:first-child { margin-top:0 }
  .visual-stage { height:var(--stage-height,480px); top:max(0px,calc((100dvh - var(--stage-height,480px))/2)); align-items:start }
  .visual-stage > .media { align-self:start }
}
@media (max-width:359px) {
  header .email { max-width:108px; overflow-wrap:anywhere; text-align:left }
}

@media (min-width:768px) {
  .hero { grid-template-columns:clamp(230px,24vw,280px) minmax(0,1fr) }
  .hero .portrait-figure { grid-column:1; grid-row:1 }
  .hero-copy { grid-column:2; grid-row:1 }
}

.hero-sun {
  display: inline-block;
  line-height: 1;
  color: inherit;
}
@keyframes turn-sun {
  to { transform: rotate(1turn); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-sun { animation: turn-sun 12s linear infinite paused; }
  .hero h1:hover .hero-sun { animation-play-state: running; }
}
