/* Lemba type and layout system (v58). Earlier sheets sit in @layer legacy; this sheet wins.
   Content width 1200px, one left edge, fixed sizes per breakpoint, balanced headings. */
:root{--content:1200px;--gutter:20px;--ink:#172C3C;--copy:#4A6377;--muted-copy:#5D6D78;
  --t-hero:40px;--t-h1:36px;--t-h2:30px;--t-h3:22px;--t-lede:19px;--t-body:17px;--t-small:15px;--t-label:14px}
@media (min-width:760px){:root{--gutter:40px;--t-hero:56px;--t-h1:46px;--t-h2:36px;--t-h3:24px;--t-lede:20px;--t-body:18px}}
@media (min-width:1100px){:root{--gutter:48px;--t-hero:72px;--t-h1:56px;--t-h2:42px;--t-h3:26px;--t-lede:21px}}

/* The site wordmark keeps its ordinary text weight, including in links and headings. */
.mosaic-word { white-space: nowrap; }
.mosaic-word > .mosaic-ai { color: #7759D5; font-weight: normal; }

/* One content column and one left edge on every page */
.section-shell{box-sizing:border-box;width:100%;max-width:calc(var(--content) + 2 * var(--gutter));margin-inline:auto;padding-inline:var(--gutter)}
.about-page .people-section>.section-shell{padding-inline:var(--gutter)}
.about-page .leadership-grid,.about-page .people-section .section-intro{max-width:none}

/* Line breaking */
main :is(h1,h2,h3,h4){text-wrap:balance}
main :is(p,li,dd,dt,figcaption,blockquote){text-wrap:pretty}
.nw,main em{white-space:nowrap}
.person-biography p{overflow-wrap:normal}

/* Headings */
.visual-hero h1{font-size:var(--t-hero);line-height:1.06;max-width:12.5em}
:is(.editorial-hero,.science-hero,.contact-section,.publications-section) h1,.about-page .lab-copy h1,.privacy-page h1{font-size:var(--t-h1);line-height:1.08;max-width:none}
main h2{font-size:var(--t-h2);line-height:1.15;max-width:none}
.featured-story h2{font-size:var(--t-h2);max-width:24em}
.figure-subhead,.paper-group h2,.paper-group h3:not(.publication-card h3){font-size:var(--t-h3);line-height:1.25;max-width:none}
:is(.mechanism-copy,.application,.stage-caption,.discovery-card,.development-model,.audience-grid) h3,.contact-page .audience-grid h2{font-size:var(--t-h3);line-height:1.25}

/* Text tiers: lede, body, small */
:is(.hero-copy,.intro-copy,.science-hero-bottom,.lab-body,.section-copy,.chapter-copy,.platform-summary) p,.section-lede,.process-lede{font-size:var(--t-lede);line-height:1.55;max-width:34em}
:is(.figure-caption,.mechanism-copy p,.application p,.stage-caption p,.discovery-card p,.application-outlook p,.featured-story p,.audience-grid p,.person-biography p){font-size:var(--t-body);line-height:1.6}
.featured-story p,.application-outlook p{max-width:38em}
.figure-terms :is(dt,dd),.science-journals,.application-examples,.person-summary{font-size:var(--t-small);line-height:1.5}
.science-journals{max-width:none}

/* Section intros stack: heading, then copy beneath it */
.section-intro,.chapter-intro{display:block}
:is(.section-intro,.chapter-intro)>*+*{margin-top:18px}
.section-title h2,.chapter-intro h2{max-width:none}
.contact-intro{margin-bottom:28px}

/* Figure with caption: caption column never narrower than about 40 characters */
.figure-row{grid-template-columns:minmax(0,1.7fr) minmax(330px,1fr)}
.figure-row.is-reversed{grid-template-columns:minmax(330px,1fr) minmax(0,1.7fr)}
@media (max-width:1099px){.figure-row,.figure-row.is-reversed{grid-template-columns:1fr}.figure-row.is-reversed .figure-aside{order:0}}

/* Cards: wide enough to read */
.discovery-card{grid-template-columns:1fr;gap:18px}
@media (min-width:1100px){.platform-design-01 .process-panel .platform-stages{grid-template-columns:repeat(2,minmax(0,1fr))}
 .platform-design-01 .process-panel .platform-stages>li:nth-child(3){border-left:0}
 .platform-design-01 .process-panel .platform-stages>li:nth-child(n+3){border-top:1px solid #C6D8EB}}
:is(.publication-page,.science-publications) .paper-group{display:block}
:is(.publication-page,.science-publications) .paper-group>h2,:is(.publication-page,.science-publications) .paper-group>h3{margin:0 0 16px}

/* Component titles and labels on the same scale */
:root{--t-card:18px}
@media (min-width:1100px){:root{--t-card:20px}}
.publication-card :is(h3,h4),.person-caption h3,.program-name h3{font-size:var(--t-card)!important;line-height:1.3}
.discovery-faces figcaption,.person-role,.stage-label,.model-label{font-size:var(--t-label)}
.program-name p,.program-path,.progress-notes{font-size:var(--t-small)}
@media (min-width:1100px){.program-name h3{white-space:nowrap}}

/* Spacing and measure fixes from the audit */
:is(.section-intro,.chapter-intro) .section-copy{padding-top:0}
.featured-story p{max-width:34em}
.figure-terms{max-width:65ch}
@media (max-width:1099px){
 .applications-grid{grid-template-columns:1fr}
 .platform-design-01 .home-platform .platform-summary{width:auto;max-width:34em}
}
@media (max-width:999px){.mechanism-grid{grid-template-columns:1fr;max-width:560px}}

/* v59 additions */
/* Science, trained immunity: text left, the four founders right */
.ti-people{margin-top:28px;display:grid;gap:28px}
.ti-pair-label{margin:0 0 12px;font-size:var(--t-label);color:var(--muted-copy)}
.ti-faces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ti-faces figure{margin:0}
.ti-faces img{display:block;width:100%;aspect-ratio:1;object-fit:cover;object-position:50% 15%;border-radius:10px;background:#dbe7f2}
.ti-faces figcaption{margin-top:10px;display:grid;gap:2px}
.ti-name{font-size:var(--t-small);line-height:1.35;color:var(--ink)}
.ti-role{font-size:var(--t-label);line-height:1.35;color:var(--muted-copy)}
@media (min-width:760px) and (max-width:1099px){.ti-people{grid-template-columns:1fr 1fr;gap:24px;max-width:720px}}
@media (min-width:1100px){
 .chapter-intro.ti-intro{display:grid;grid-template-columns:minmax(0,calc(var(--t-lede) * 34)) minmax(0,1fr);column-gap:72px;row-gap:0;align-items:start}
 .ti-intro>div:first-child{grid-column:1/-1}
 .ti-intro>.ti-people{margin-top:24px;max-width:400px;justify-self:end;width:100%}
 .ti-intro>.chapter-copy{margin-top:24px}
}
@media (max-width:759px){.ti-faces img{aspect-ratio:1.1}}

/* MOSAIC hero on tablets: text keeps its own side, art sits to the right and fades in behind it */
@media (min-width:760px) and (max-width:1099px){
 .mosaic-page .editorial-hero .intro-content{max-width:60%}
 .mosaic-page .intro-art{inset:0 -14% 0 42%}
 .mosaic-page .intro-art img{opacity:.83;object-position:60% center;mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.25) 22%,#000 55%)}
}

/* Development model below desktop: hub across the top, outcomes beneath */
@media (max-width:1099px){
 .development-model{grid-template-columns:1fr}
 .model-connector{display:block;height:28px;justify-self:center;border-left:1.5px solid #9eb6cf}
 .model-connector::before,.model-connector::after{display:none}
 .discovery-hub{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:24px;align-items:center}
 .discovery-hub img{grid-row:1/3;margin:0;width:150px}
 .discovery-hub h3{margin-top:0}
}
@media (min-width:760px) and (max-width:1099px){.development-paths{grid-template-columns:1fr 1fr}}
@media (max-width:519px){.discovery-hub{grid-template-columns:1fr}.discovery-hub img{grid-row:auto;margin-bottom:12px;width:130px}}

/* About overview: even split, tops aligned; heading first when stacked */
@media (min-width:1100px){
 .about-page .lab-feature{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:start}
 .about-page .lab-copy{max-width:none}
 .about-page .lab-feature .lab-player,.about-page .lab-film{margin-top:0;padding-top:0}
 .about-page .lab-copy h1{margin-top:-6px}
}
@media (max-width:1099px){
 .about-page .lab-feature{display:grid;grid-template-columns:1fr;gap:32px}
 .about-page .lab-copy{order:0;max-width:none}
 .about-page .lab-film{order:1;margin:0}
 .about-page .lab-feature .lab-player{margin-top:0}
}

/* Leadership: executive founders row fills the column width, then rows of four */
@media (min-width:931px){
 .about-page .leadership-grid{grid-template-columns:repeat(12,minmax(0,1fr));max-width:none;margin-inline:0}
 .about-page .leadership-grid>article,.about-page .leadership-grid>article:nth-of-type(4){grid-column:span 3}
 .about-page .leadership-grid>article:nth-of-type(-n+3){grid-column:span 4}
}

/* Science hero: lede only, no jump links */
.science-hero-bottom{display:block}
/* Maruva card stacks its logo on tablets */
@media (max-width:1099px){.maruva-path{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.maruva-path img{width:130px;height:auto;margin:0}}
/* About heading spacing; executive row portraits match the height of the row below */
.about-page .lab-copy h1{margin-bottom:20px}
@media (min-width:931px){.about-page .leadership-grid>article:nth-of-type(-n+3) .portrait-visual{aspect-ratio:1.36}}
/* Privacy & legal */
.privacy-page .legal-heading{font-size:var(--t-h2);line-height:1.15;font-weight:400;color:var(--ink);margin:40px 0 0}
.privacy-page .privacy-copy h3{font-size:var(--t-h3);font-weight:400;line-height:1.25;color:var(--ink);margin:30px 0 12px}
.privacy-page .legal-block{margin-top:56px;padding-top:8px;border-top:1px solid #d6e2ec}
.privacy-page .privacy-copy :is(p,li){max-width:620px}
.privacy-page .privacy-intro{max-width:34em}
.figure-terms{max-width:60ch}
.privacy-page .legal-block .privacy-copy{border-top:0;padding-top:0;margin-top:20px}

/* v62: measure and spacing for restored MOSAIC and Science copy */
.application-section .section-lede{max-width:32em}
.application-outlook p{max-width:34em}
.application-outlook p+p{margin-top:.9em}
@media (max-width:1099px){.figure-caption{max-width:36em}}

/* v68: Home founders section, Learn more moved to the end */
.home-science .science-more{display:inline-flex;margin-top:28px}

/* v87: Team page opens on the leadership grid; Publications is a top-level page */
.about-page .people-section .section-title h1{font-size:var(--t-h1);line-height:1.08;margin:0;font-weight:400}
.science-page #rna-medicines .science-references{margin-top:48px}

/* v88: Home closing band */
.home-closing .closing-band{display:flex;align-items:center;justify-content:space-between;gap:24px 48px;flex-wrap:wrap}
.home-closing .closing-text h2{margin:0}
.home-closing .closing-text p{margin:10px 0 0;font-size:var(--t-lede);line-height:1.5;color:var(--copy)}
.closing-button{display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:0 26px;border-radius:10px;background:#5A37AB;color:#fff;font-size:var(--t-body);text-decoration:none;flex:none}
.closing-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.closing-button:hover{background:#4B2D94}
.closing-button--light {
  color: #432b70;
  background: #fff;
  box-shadow: inset 0 0 0 1px #7759D5;
}
.closing-button--light:hover {
  background: #faf8ff;
  box-shadow: inset 0 0 0 2px #5a37ab;
}
.closing-button:focus-visible{outline:3px solid #7357a1;outline-offset:3px}
.home-closing.section{padding-block:clamp(56px,6vw,88px)}
/* v88: Contact page, offices then a compact email strip */
.contact-page .contact-section .contact-block{margin-top:40px}
.contact-page .contact-block>h2{font-size:var(--t-h3);line-height:1.25;font-weight:400;margin:0 0 16px;color:var(--ink)}
.contact-page .office-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 48px;border-top:1px solid #cbdce7;padding-top:24px}
.contact-page .office{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start}
.contact-page .office h3{margin:0 0 6px;font-size:var(--t-body);font-weight:500;line-height:1.4;color:var(--ink)}
.contact-page .office address{font-style:normal;font-size:var(--t-body);line-height:1.55;color:var(--copy)}
.contact-page .office-phone{margin:6px 0 0;font-size:var(--t-body)}
.contact-page .office-phone a{color:#315f83;text-underline-offset:4px}
.contact-page .office-map{display:inline-block;margin-top:10px;font-size:var(--t-small);color:#315f83;text-decoration:underline;text-underline-offset:4px}
.contact-page .email-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #cbdce7}
.contact-page .email-grid li{padding:22px 24px 4px 0;min-width:0}
.contact-page .email-grid li+li{padding-left:24px;border-left:1px solid #dbe5ee}
.contact-page .email-grid h3{margin:0 0 8px;font-size:var(--t-label);font-weight:500;letter-spacing:.01em;color:#3C6C97;line-height:1.4}
.contact-page .email-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;font-size:var(--t-body);line-height:1.4}
.contact-page .email-line a,
.contact-page .email-line a:visited {
  color:#50318b;
  text-decoration:underline;
  text-underline-offset:4px;
  overflow-wrap:anywhere;
}
.contact-page .email-line a:is(:hover,:focus-visible) {
  color:#39216b;
  text-decoration-thickness:2px;
}
.contact-page .email-line a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.contact-page .copy-email{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;flex:none;border:1px solid #c9d9e8;border-radius:7px;background:#fff;color:#3C6C97;font:inherit;font-size:13px;cursor:pointer}
.contact-page .copy-email svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}
.contact-page .copy-email:hover{border-color:#3C6C97}
.contact-page .copy-email:focus-visible{outline:3px solid #7357a1;outline-offset:2px}
.contact-page .copy-email.is-copied{color:#1f7a5a;border-color:#8cc7b0}
.contact-page .copy-email .copied-icon,.contact-page .copy-email.is-copied svg:first-child{display:none}
.contact-page .copy-email.is-copied .copied-icon{display:block}
.contact-page .email-line{flex-wrap:nowrap}
.contact-page .office-phone a{font-size:var(--t-body);text-decoration-thickness:1px}
.contact-page .contact-section{min-height:0}
.contact-page .email-purpose{margin:8px 0 0;font-size:var(--t-small);line-height:1.5;color:var(--muted-copy)}
@media (max-width:1219px){
  .contact-page .email-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-page .email-grid li,.contact-page .email-grid li+li{padding:20px 20px 18px 0;border-left:0;border-bottom:1px solid #dbe5ee}
  .contact-page .email-grid li:nth-child(even){padding-left:20px;border-left:1px solid #dbe5ee}
}
@media (max-width:640px){
  .contact-page .office-grid,.contact-page .email-grid{grid-template-columns:1fr}
  .contact-page .email-grid li:nth-child(even){padding-left:0;border-left:0}
  .home-closing .closing-button{width:100%;justify-content:center}
}

/* v89: Pipeline table, centered development path, Maruva logo under the planned spinout */
.program-path .path-logo{display:block;width:112px;height:auto;margin:8px auto 0}
@media (min-width:791px){
  .program-head>span:last-child,.program-path{text-align:center}
}
@media (max-width:790px){
  .program-path .path-logo{margin:8px 0 0}
}

/* v90: Home pipeline shows the development model with programs and stages */
.home-model{position:relative;z-index:1;margin-top:clamp(30px,3.6vw,48px)}
.home-model .discovery-hub h3{margin:0}
.home-model .lemba-path{border-style:solid}
.home-model .maruva-path{grid-template-columns:minmax(110px,.5fr) 1fr}
.model-programs{list-style:none;margin:10px 0 0;padding:0}
.model-programs li{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #e1e9f0}
.model-programs li:first-child{border-top:0;padding-top:6px}
.mp-prog{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap}
.mp-title{font-size:var(--t-h3);line-height:1.2;color:var(--ink)}
.mp-ind{font-size:var(--t-small);color:var(--muted-copy)}
.stage-pill{display:inline-block;padding:5px 11px;border-radius:999px;font-size:var(--t-label);line-height:1.3;color:#263e5a;white-space:nowrap}
.stage-pill.is-dc{background:#dfd6ec}
.stage-pill.is-poc{background:#cfe1f2}
.home-model .model-note{margin:6px 0 0;padding-top:12px;border-top:1px solid #e1e9f0;font-size:var(--t-small) !important;color:var(--muted-copy)}
@media (min-width:1100px) and (max-width:1279px){.home-model .maruva-path{grid-template-columns:minmax(90px,.32fr) 1fr}}
@media (max-width:1099px){.home-model .maruva-path{display:flex}}

/* v91: Home development model, Lemba box with retained programs, labeled arrow to Maruva; link below the diagram */
.spin-model{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(170px,.55fr) minmax(0,1fr);align-items:center;margin-top:clamp(30px,3.6vw,48px);padding:clamp(18px,2.5vw,34px);border:1px solid #cddced;border-radius:16px;background:linear-gradient(120deg,#e8f2f9,#f2eff9)}
.spin-lemba,.spin-maruva{background:rgba(255,255,255,.94);border:1px solid #d4dfeb;border-radius:12px;padding:clamp(20px,2vw,28px)}
.spin-maruva{border-color:#d9ceec;container:maruva-card / inline-size}
.spin-lemba .spin-logo{display:block;width:160px;height:auto}
.spin-maruva .spin-logo{display:block;width:170px;max-width:100%;height:auto}
.spin-hub{margin:10px 0 0;font-size:var(--t-h3);line-height:1.25;color:var(--ink)}
.spin-lemba .model-programs{margin-top:16px;border-top:1px solid #e1e9f0}
.spin-lemba .model-programs li:first-child{padding-top:12px}
.spin-lemba .model-note{margin:0;padding-top:12px;border-top:1px solid #e1e9f0;font-size:var(--t-small);line-height:1.5;color:var(--muted-copy)}
.spin-arrow{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0 14px}
.spin-label{margin:0;font-size:var(--t-h3);line-height:1.2;color:#654899;text-align:center;text-wrap:balance}
.spin-direction-icon{display:block;width:118px;height:12px;flex:none;color:#8c6bc0}
.spin-arrow-stacked{display:none}
.spin-maruva-content {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.spin-prog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.spin-prog .stage-pill { margin-top: 5px; }
@container maruva-card (min-width: 30rem) {
  .spin-maruva-content {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: 28px;
  }
  .spin-prog {
    align-items: flex-start;
    padding-inline-start: 28px;
    border-inline-start: 1px solid #d9ceec;
    text-align: start;
  }
}
.model-more{position:relative;z-index:1;margin-top:28px}
@media (max-width:999px){
  .spin-model{grid-template-columns:1fr}
  .spin-arrow{flex-direction:row-reverse;justify-content:center;gap:18px;padding:24px 0}
  .spin-direction-icon{width:12px;height:42px}
  .spin-arrow-wide{display:none}
  .spin-arrow-stacked{display:block}
  .spin-label{text-align:left}
}

/* v92: "Discovery hub" sits above the Lemba box, centered; both logos centered */
.spin-model{grid-template-rows:auto auto;row-gap:12px}
.spin-model>.spin-hub{grid-column:1;grid-row:1;margin:0;text-align:center}
.spin-lemba{grid-column:1;grid-row:2}
.spin-arrow{grid-column:2;grid-row:2}
.spin-maruva{grid-column:3;grid-row:2}
.spin-lemba .spin-logo,.spin-maruva .spin-logo{margin-inline:auto}
@media (max-width:999px){
  .spin-model{grid-template-rows:none;row-gap:0}
  .spin-model>.spin-hub{grid-row:1;margin-bottom:12px}
  .spin-lemba{grid-column:1;grid-row:2}
  .spin-arrow{grid-column:1;grid-row:3}
  .spin-maruva{grid-column:1;grid-row:4}
}


/* v95: Home founders, paper card beside the portraits (narrow cards: paper after the text) */
.discovery-card{container-type:inline-size}
.discovery-top{display:contents}
.discovery-paper{order:1;display:flex;flex-direction:column;max-width:360px;background:#fff;border:1px solid #D9E2EB;border-radius:9px;padding:16px 18px 14px;text-decoration:none;color:var(--ink);transition:background .2s}
.discovery-paper:hover{background:#FBFCFE}
.discovery-paper:focus-visible{outline-offset:3px}
.dp-logo{display:flex;align-items:center;height:52px;margin:0 0 10px}
.dp-logo img{display:block;height:100%;width:auto;max-width:100%;object-fit:contain;object-position:left center}
.dp-title{flex:1;font-size:var(--t-small);line-height:1.4;color:var(--ink);margin:0 0 14px}
.dp-title>span:first-child{background-image:linear-gradient(var(--blue),var(--blue));background-repeat:no-repeat;background-position:0 100%;background-size:0 1px;transition:background-size .2s}
.discovery-paper:hover .dp-title>span:first-child{background-size:100% 1px}
.dp-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #E6ECF2;padding-top:11px;font-size:13px;line-height:1.4;letter-spacing:.02em;color:#718595}
.dp-arrow{display:flex;align-items:center;justify-content:center;width:26px;height:26px;flex:none;border:1px solid #C6D5E3;border-radius:50%;color:var(--blue)}
.dp-arrow svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5}
@container (min-width:430px){
  .discovery-top{display:flex;align-items:flex-start;gap:22px}
  .discovery-paper{flex:1;min-width:0;max-width:none}
}
@media (prefers-reduced-motion:reduce){.discovery-paper,.dp-title>span:first-child{transition:none}}

/* v104: end-of-page next-step bands (Science, MOSAIC, Pipeline, Team) reuse the Home closing band */
.home-closing.page-next .closing-text p{margin:0;font-size:var(--t-h3);line-height:1.35;color:#172C3C;max-width:34em}


/* The founder thumbnail and leadership portrait share Musa's blue studio backdrop. */
.musa-portrait {
  position:relative;
  display:block;
  isolation:isolate;
  overflow:hidden;
  background:#5288b8;
}
.musa-portrait .musa-backdrop {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 42%,rgba(255,255,255,.05) 65%,rgba(255,255,255,.16) 100%),url('../assets/people/portrait-backdrop.webp') 50% 5% / cover;
  filter:saturate(.82);
}
.musa-portrait > img {
  position:relative;
  display:block;
  background:transparent;
  object-fit:cover;
  object-position:50% 8%;
  filter:saturate(.80) brightness(1.025) contrast(.965);
}
.discovery-faces .musa-portrait { border-radius:10px; }

/* Keep the selected artwork aligned with the centered content on wide screens. */
@media screen {
  .contact-page {
    --contact-art-fade:50%;
    --contact-text-backing:0%;
    display:flex;
    flex-direction:column;
    min-height:100vh;
    min-height:100dvh;
  }
  .contact-page #main {
    display:flex;
    flex:1 0 auto;
    flex-direction:column;
    min-height:0;
    padding-top:0;
  }
  .contact-page .contact-section {
    --copy:#1a3043;
    --muted-copy:#1d3346;
    flex:1 0 auto;
    background:linear-gradient(108deg,#ebf1f6 17%,#e5eef7 53%,#dce8f6 80%,#e6edf7);
  }
  .contact-page .contact-section > .section-shell::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:calc(var(--sticky-header-height,104px) + 1rem) -2rem -1rem;
    background:rgb(239 245 250 / var(--contact-text-backing));
    filter:blur(28px);
    pointer-events:none;
  }
  .contact-page .email-grid h3 {
    color:#193753;
  }
  .contact-page .office-map,
  .contact-page .office-phone a {
    color:#193955;
  }
  .contact-page .site-footer {
    flex:none;
  }
  .science-page .science-hero {
    background:linear-gradient(105deg,#e8eff6 20%,#e4edf7 52%,#dbe7f6 78%,#e5ecf7);
  }
  .science-page .science-hero h1 {
    width:fit-content;
  }
  .science-page .science-hero h1 span {
    color:#315d82;
  }
  .science-page .science-hero-bottom p {
    color:#36546c;
  }
  .science-page .science-hero h1,
  .science-page .science-hero-bottom p {
    position:relative;
    isolation:isolate;
  }
  .science-page .science-hero h1::before,
  .science-page .science-hero-bottom p::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:-.4rem -1.25rem;
    background:rgba(235,242,248,.58);
    filter:blur(16px);
    pointer-events:none;
  }
  .science-page .science-hero-art {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
    opacity:1;
    pointer-events:none;
    container-type:size;
    -webkit-mask:none;
    mask:none;
  }
  .science-page .science-hero-art img {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center;
  }
}
@media screen and (min-width:761px) {
  .science-page .science-hero-art img {
    --focal-x:.48;
    --subject-position:clamp(74cqw,calc(50cqw + 38.5rem),84cqw);
    --art-width:max(300cqh,calc((100cqw - var(--subject-position)) / .52 + 2px));
    object-position:center 45%;
  }
  .science-page .science-hero-art img {
    /* Position the subject relative to the copy and let the photographic scene run past the right edge. */
    left:calc(var(--subject-position) - var(--focal-x) * var(--art-width));
    right:auto;
    width:var(--art-width);
    -webkit-mask-image:linear-gradient(to right,transparent,#000 22%);
    mask-image:linear-gradient(to right,transparent,#000 22%);
  }
}
@media screen and (min-width:761px) and (max-width:1000px) {
  .science-page .science-hero-art img { --subject-position:74cqw; }
}
@media screen and (max-width:760px) {
  .science-page .science-hero-art img {
    object-position:60% center;
    opacity:.8;
    -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.22),#000 85%);
    mask-image:linear-gradient(to right,rgba(0,0,0,.22),#000 85%);
  }
}

/* Share the offices row with the wave and place its reflection behind Email. */
@media screen {
  .contact-page .contact-section {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto 1fr;
    padding-block:0;
    container-type:inline-size;
  }
  .contact-page .contact-section > .section-shell {
    grid-area:1 / 1 / 3 / 2;
    display:grid;
    grid-template-rows:subgrid;
    padding-block:0;
  }
  .contact-page .contact-offices {
    display:flow-root;
    grid-row:1;
    padding-top:calc(var(--sticky-header-height,104px) + 64px);
  }
  .contact-page #email {
    grid-row:2;
    margin-bottom:74px;
  }
  .contact-page .contact-art {
    grid-area:1 / 1 / 4 / 2;
    position:relative;
    inset:auto;
    z-index:0;
    display:grid;
    grid-template-rows:subgrid;
    min-width:0;
    min-height:0;
    width:auto;
    height:auto;
    overflow:hidden;
    pointer-events:none;
    opacity:calc(100% - var(--contact-art-fade));
    -webkit-mask:none;
    mask:none;
  }
  .contact-wave, .contact-reflection {
    --subject-position:clamp(70cqw,calc(50cqw + 31.5rem),75cqw);
    --photo-width:max(132rem,calc((100cqw - var(--subject-position)) / .49 + 3px));
    --photo-aspect:3;
    position:relative;
    overflow:hidden;
    min-width:0;
    min-height:0;
  }
  .contact-wave { grid-row:1; }
  .contact-reflection {
    grid-row:2 / 4;
    display:grid;
    grid-template-rows:minmax(0,min(100%,calc(var(--photo-width) / var(--photo-aspect) * .12))) minmax(0,1fr);
  }
  .contact-glints, .contact-floor { position:relative; min-height:0; overflow:hidden; }
  .contact-page .contact-art img {
    /* Each part uses the same horizontal scale and the same original photograph. */
    display:block;
    position:absolute;
    right:auto;
    top:auto;
    bottom:0;
    left:calc(var(--subject-position) - .51 * var(--photo-width));
    width:var(--photo-width);
    max-width:none;
    height:auto;
    object-fit:fill;
    -webkit-mask-image:linear-gradient(to right,transparent,#000 22%);
    mask-image:linear-gradient(to right,transparent,#000 22%);
  }
  .contact-wave img {
    /* Row 78% of the photograph lies just below the glass, in its reflection. */
    transform:translateY(22%);
  }
  .contact-page .contact-glints img {
    /* Preserve the scale of the reflected highlights as they cross the offices row. */
    top:0;
    bottom:auto;
    transform:translateY(-78%);
  }
  .contact-page .contact-floor img {
    /* Only the quiet floor below the highlights expands on tall screens. */
    height:calc(100% / .10);
  }
}
@media screen and (max-width:760px) {
  .contact-page .contact-offices { padding-top:calc(var(--sticky-header-height,104px) + 40px); }
  .contact-page #email { margin-bottom:55px; }
}
@media screen and (min-width:641px) and (max-width:900px) {
  .contact-wave, .contact-reflection { --photo-width:120rem; }
}
@media screen and (max-width:640px) {
  .contact-wave, .contact-reflection {
    --photo-width:max(100cqw,43rem);
    --photo-aspect:calc(1000 / 1158);
  }
  .contact-page .contact-art img {
    left:clamp(calc(100cqw - var(--photo-width)),calc(70cqw - .65 * var(--photo-width)),0px);
    -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.32),#000 83%);
    mask-image:linear-gradient(to right,rgba(0,0,0,.32),#000 83%);
  }
}
@media print {
  .contact-page .contact-reflection { display:none; }
}

/* The diagram shares a row with the development text on desktop. */
.home-portfolio .hub-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(24px,3vw,44px);
  align-items:center;
}
.hub-layout > .section-intro { min-width:0; }
.hub-layout .model-more { margin-top:1.35em; }
.hub-diagram { position:relative; margin:0; min-width:0; width:100%; }
.hub-diagram .detail-image {
  font:inherit;
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:#355a76;
  cursor:zoom-in;
}
.hub-diagram picture, .hub-enlargement picture { display:block; }
.hub-diagram img { display:block; width:100%; height:auto; }
.hub-diagram .enlarge-label {
  position:absolute;
  inset:4px 4px auto auto;
  font-size:14px;
  line-height:1.35;
  text-decoration:underline;
  text-underline-offset:3px;
}
.hub-diagram .detail-image:focus-visible { outline:none; }
.hub-diagram .detail-image:focus-visible .enlarge-label { outline:2px solid currentColor; outline-offset:3px; }
@media (min-width:960px) {
  .home-portfolio .hub-layout { grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr); }
}
.hub-enlargement {
  width: min(960px, 95vw);
  max-width: 95vw;
  max-height: 92dvh;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #c8d8e6;
  border-radius: 12px;
  color: #172c3c;
  background: #f7fafd;
}
.hub-enlargement::backdrop { background: rgb(18 39 61 / 62%); }
.hub-enlargement form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  margin: 0;
  border-bottom: 1px solid #d3e0ea;
  background: #fff;
}
.hub-enlargement strong { font-size: 18px; font-weight: 300; }
.hub-enlargement button {
  padding: 6px 12px;
  border: 1px solid #bbcddd;
  border-radius: 6px;
  background: #f7fafd;
  color: #294d6a;
  cursor: pointer;
  font: inherit;
}
.hub-enlargement .hub-scroll { max-height: calc(90dvh - 60px); overflow: auto; overscroll-behavior: contain; }
.hub-enlargement img { display: block; width: 100%; min-width: 760px; max-width: none; height: auto; }
@media (max-width:680px) {
  .hub-diagram { max-width:430px; justify-self:center; }
  .hub-enlargement img { min-width:0; }
}
@media (max-width:600px) {
  .hub-diagram .enlarge-label { font-size:13px; }
}
