.lab-page .lab-workspace>.lab-preview-column{align-self:stretch;display:flex;flex-direction:column}
.lab-page .xf3-preview-benefits{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:230px;margin-top:14px;padding:24px 28px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--paper) 76%,transparent);color:var(--ink)}
.lab-page .xf3-preview-benefits .xf3-story__eyebrow{margin-bottom:8px;font-size:.78em}
.lab-page .xf3-preview-benefits h2{margin:0 0 10px;font-size:clamp(1.5em,2vw,2em);font-weight:650;letter-spacing:-.03em;line-height:1.08}
.lab-page .xf3-preview-benefits__intro{max-width:58ch;margin:0 0 16px;font-size:1em;line-height:1.5}
.lab-page .xf3-preview-benefits ul{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px;margin:0;padding:0;list-style:none}
.lab-page .xf3-preview-benefits li{min-width:0;padding:2px 0;color:var(--muted);font-size:.9em;line-height:1.3}
.lab-page .xf3-preview-benefits li::before{content:"✓";margin-right:6px;color:var(--ink)}
.lab-page .xf3-story{margin:34px 0 72px;color:var(--ink)}
.lab-page .xf3-story__lead{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:stretch;gap:clamp(24px,4vw,72px);padding:clamp(22px,3.4vw,54px) 0;border-top:1px solid var(--line)}
.lab-page .xf3-story__copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:8px 0}
.lab-page .xf3-story__eyebrow{margin:0 0 14px;color:var(--muted);font-size:.72em;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.lab-page .xf3-story h2{max-width:14ch;margin:0 0 24px;font-size:clamp(2rem,3.5vw,4rem);font-weight:500;letter-spacing:-.045em;line-height:1.05}
.lab-page .xf3-story__copy>p:not(.xf3-story__eyebrow){max-width:52ch;margin:0 0 17px;font-size:clamp(.98em,1.1vw,1.18em);line-height:1.62}
.lab-page .xf3-story__link{display:inline-flex;align-items:center;gap:18px;margin-top:22px;border-bottom:1px solid currentColor;padding:0 0 7px;text-decoration:none;font-weight:650}
.lab-page .xf3-story a[data-story-lightbox]{display:block;cursor:zoom-in}
.lab-page .xf3-story figure{margin:0;min-width:0}
.lab-page .xf3-story img{display:block;width:100%;height:100%;object-fit:cover}
.lab-page .xf3-story__hero-photo{position:relative;min-height:420px;overflow:hidden;border-radius:12px}
.lab-page .xf3-story figcaption{font-size:.75em;color:var(--muted);padding-top:9px}
.lab-page .xf3-story__hero-photo a{height:calc(100% - 26px);max-height:600px}
.lab-page .xf3-story__hero-photo img{height:100%;max-height:600px;object-position:center 67%;border-radius:12px}
.lab-page .xf3-story__science{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);gap:clamp(25px,5vw,90px);padding:clamp(32px,4vw,64px) 0;border-top:1px solid var(--line)}
.lab-page .xf3-story__science h2{font-size:clamp(1.9rem,2.8vw,3.25rem)}
.lab-page .xf3-story__science-copy{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,48px);align-content:center}
.lab-page .xf3-story__science-copy p{margin:0;font-size:clamp(.96em,1vw,1.12em);line-height:1.65}
.lab-page .xf3-story__details{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);gap:clamp(25px,5vw,90px);padding:clamp(36px,5vw,80px) 0;border-top:1px solid var(--line)}
.lab-page .xf3-story__details h2{max-width:13ch;font-size:clamp(1.8rem,2.6vw,3rem)}
.lab-page .xf3-story__details-heading>p:last-child{max-width:40ch;color:var(--muted);line-height:1.6}
.lab-page .xf3-story__detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch;margin:0;padding:0;list-style:none}
:root .lab-page .xf3-story .xf3-story__detail-grid li{box-sizing:border-box;min-width:0;margin:0;padding:22px 24px;border:1px solid var(--line);overflow-wrap:break-word}
.lab-page .xf3-story__detail-grid strong,.lab-page .xf3-story__detail-grid span{display:block}
.lab-page .xf3-story__detail-grid strong{margin-bottom:9px;font-size:1.04em;line-height:1.3}
.lab-page .xf3-story__detail-grid span{color:var(--muted);font-size:.92em;line-height:1.6}
.lab-page .xf3-story__photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,2vw,30px);padding:0 0 36px}
.lab-page .xf3-story__photo-pair img{height:clamp(260px,32vw,480px);border-radius:12px}
.lab-page .xf3-story__gallery{padding:34px 0 44px;border-top:1px solid var(--line)}
.lab-page .xf3-story__gallery-heading{display:flex;align-items:end;gap:26px;margin-bottom:24px}
.lab-page .xf3-story__gallery-heading .xf3-story__eyebrow{align-self:start;min-width:170px;margin-top:11px}
.lab-page .xf3-story__gallery-heading h2{margin:0;font-size:clamp(1.8rem,2.6vw,3rem)}
.lab-page .xf3-story__gallery-heading>p:last-child{max-width:39ch;margin:0 0 3px 0;color:var(--muted);font-size:.9em;line-height:1.5}
.lab-page .xf3-story__gallery-grid{columns:3;column-gap:18px}
.lab-page .xf3-story__gallery-grid figure{display:inline-block;width:100%;margin:0 0 20px;break-inside:avoid}
.lab-page .xf3-story__gallery-grid a{display:block;overflow:hidden;border-radius:10px;background:color-mix(in srgb,var(--paper) 80%,var(--line))}
.lab-page .xf3-story__gallery-grid img{width:100%;height:auto;max-height:none;object-fit:contain;transition:transform .2s ease}
.lab-page .xf3-story__gallery-grid a:hover img{transform:scale(1.025)}
.lab-page .xf3-story__gallery-grid a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.lab-page .xf3-story__gallery-grid figcaption{padding:8px 2px 0}
.lab-page .xf3-story__how-it-works{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:clamp(25px,5vw,90px);padding:40px 0 0;border-top:1px solid var(--line)}
.lab-page .xf3-story__how-it-works h2{font-size:clamp(1.8rem,2.6vw,3rem)}
.lab-page .xf3-story__how-it-works ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0 0 0 1.3em}
.lab-page .xf3-story__how-it-works li{padding-left:4px;color:var(--muted);font-size:.9em;line-height:1.55}
.lab-page .xf3-story__how-it-works li strong{display:block;margin-bottom:8px;color:var(--ink);font-size:1.04em}
.lab-page .xf3-story-lightbox{width:min(92vw,1200px);max-width:none;max-height:92dvh;margin:auto;padding:0;border:0;border-radius:12px;background:#14212a;color:#fff;overflow:visible;box-shadow:0 24px 90px rgb(0 0 0 / .45)}
.lab-page .xf3-story-lightbox::backdrop{background:rgb(9 17 25 / .87);backdrop-filter:blur(8px)}
.lab-page .xf3-story-lightbox__frame{position:relative;display:grid;place-items:center;min-height:200px;padding:40px 62px 20px}
.lab-page .xf3-story-lightbox img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(92dvh - 115px);object-fit:contain}
.lab-page .xf3-story-lightbox p{width:100%;margin:14px 0 0;color:#e3e9ed;font-size:.85em;text-align:center}
.lab-page .xf3-story-lightbox button{position:absolute;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgb(255 255 255 / .3);border-radius:50%;background:rgb(12 20 27 / .7);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.lab-page .xf3-story-lightbox button:hover{background:rgb(255 255 255 / .18)}
.lab-page .xf3-story-lightbox__close{top:10px;right:10px}
.lab-page .xf3-story-lightbox__previous{top:50%;left:10px;transform:translateY(-50%)}
.lab-page .xf3-story-lightbox__next{top:50%;right:10px;transform:translateY(-50%)}
@media(max-width:900px){.lab-page .xf3-story__lead,.lab-page .xf3-story__details,.lab-page .xf3-story__science{grid-template-columns:1fr}.lab-page .xf3-story__hero-photo{min-height:0}.lab-page .xf3-story__hero-photo a{height:auto;max-height:none}.lab-page .xf3-story__hero-photo img{height:auto;max-height:none;aspect-ratio:4/3}.lab-page .xf3-story__science-copy{gap:22px}.lab-page .xf3-story__details{gap:20px}.lab-page .xf3-story__details h2{max-width:none}.lab-page .xf3-story__detail-grid{gap:18px}}
@media(max-width:850px){.lab-page .lab-workspace>.lab-preview-column{align-self:auto}.lab-page .xf3-preview-benefits{display:none}.lab-page .xf3-story__how-it-works{grid-template-columns:1fr;gap:10px}.lab-page .xf3-story__gallery-heading{display:block}.lab-page .xf3-story__gallery-heading .xf3-story__eyebrow{margin:0 0 10px}.lab-page .xf3-story__gallery-heading h2{margin:0 0 12px}}
@media(max-width:620px){.lab-page .xf3-story{margin:24px 0 45px}.lab-page .xf3-story__lead{padding:28px 0;gap:22px}.lab-page .xf3-story h2{margin-bottom:18px}.lab-page .xf3-story__science-copy{grid-template-columns:1fr}.lab-page .xf3-story__details{padding:36px 0}.lab-page .xf3-story__detail-grid{grid-template-columns:1fr}.lab-page .xf3-story__photo-pair{grid-template-columns:1fr}.lab-page .xf3-story__photo-pair img{height:auto;aspect-ratio:4/3}.lab-page .xf3-story__gallery-grid{columns:2;column-gap:10px}.lab-page .xf3-story__gallery-grid figure{margin-bottom:14px}.lab-page .xf3-story__how-it-works ol{grid-template-columns:1fr;gap:14px}.lab-page .xf3-story-lightbox{width:96vw}.lab-page .xf3-story-lightbox__frame{padding:42px 43px 20px}.lab-page .xf3-story-lightbox button{width:34px;height:34px;font-size:23px}.lab-page .xf3-story-lightbox__previous{left:4px}.lab-page .xf3-story-lightbox__next{right:4px}}
@media(max-width:850px){.lab-page .xf3-preview-benefits{display:flex;min-height:0}}
@media(max-width:620px){.lab-page .xf3-preview-benefits{padding:22px 20px}.lab-page .xf3-preview-benefits ul{grid-template-columns:1fr;gap:5px}}

@media(max-width:620px){:root .lab-page .xf3-story .xf3-story__detail-grid li{padding:20px 22px}.lab-page .xf3-story__detail-grid{gap:12px}}

/* Keep the full story section inside its surface, not only the feature cards. */
:root .lab-page .xf3-story__details{padding:clamp(28px,4vw,56px);gap:clamp(24px,3vw,48px);border:1px solid var(--line);border-radius:14px;margin:0 0 32px;box-sizing:border-box}
:root .lab-page .xf3-story__details-heading{min-width:0}
:root .lab-page .xf3-story__details h2{font-size:clamp(30px,3.4vw,48px);max-width:12ch;overflow-wrap:normal}
@media(max-width:620px){:root .lab-page .xf3-story__details{padding:24px 20px;gap:22px}:root .lab-page .xf3-story__details h2{max-width:none}}

/* Shelf-specific illustrations keep each benefit recognizable at a glance. */
:root .lab-page .xf3-story .xf3-story__detail-grid li{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;row-gap:10px;align-content:start}
:root .lab-page .xf3-story .xf3-story__feature-icon{width:44px;height:44px;object-fit:contain;box-shadow:none;border:0;border-radius:0;grid-column:1;grid-row:1}
:root .lab-page .xf3-story .xf3-story__detail-grid li strong{grid-column:2;grid-row:1;align-self:center;margin:0}
:root .lab-page .xf3-story .xf3-story__detail-grid li>span{grid-column:1/-1}
