/* The wordmark is live typography, so it stays sharp at every size. */
.qm-brand{display:inline-flex;align-items:center;gap:16px;max-width:100%;color:#2b3554;line-height:1;vertical-align:middle}
.qm-logo{width:102px;height:62px;flex-shrink:0}
.qm-wordmark{display:flex;flex-direction:column;gap:9px}
.qm-name{font-size:34px;font-weight:700;letter-spacing:-.045em;white-space:nowrap}
.qm-brand .suite{display:flex;align-items:center;gap:9px;margin:0;color:#95783e;font-size:10px;line-height:1;font-weight:600;letter-spacing:.3em;text-transform:uppercase}
.qm-brand .suite:before{content:'';width:18px;height:1px;background:currentColor;flex-shrink:0}
.reference-project-card .qm-brand{height:75px;margin-bottom:18px;gap:12px}
.reference-project-card .qm-logo{width:80px;height:50px}
.reference-project-card .qm-name{font-size:28px}
.reference-project-card .qm-wordmark{gap:8px}
.reference-project-card>div:first-child{display:flex;flex-direction:column;align-items:flex-start;flex:1}
.reference-project-card>div:first-child>p{flex:1}
.bluegene-brand{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%;vertical-align:middle}
.bluegene-brand .bluegene-logo{display:block;width:140px;height:65px;margin:0;object-fit:contain;object-position:left center}
.platform-label{color:#55649b;font-size:9px;font-weight:600;line-height:1.2;letter-spacing:.17em;text-transform:uppercase;white-space:nowrap}
.reference-project-card .bluegene-brand{height:75px;margin-bottom:18px;justify-content:center}
.reference-project-card .bluegene-logo{width:115px;height:56px;margin:0}
.partners-row{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.partner-logos{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.quang-minh-partner{border:1px solid #ebebeb}
.quang-minh-partner img{object-fit:contain;object-position:center}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.gallery-card{margin:0;border:1px solid #e6e9ee;background:#fff;border-radius:24px;overflow:hidden}
.gallery-image-open{display:block;width:100%;padding:0;border:0;background:#f0f5f6;cursor:zoom-in}
.gallery-image-open img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center top}
.gallery-card figcaption{position:relative;padding:22px 24px 24px}
.gallery-index{display:block;font-size:10px;color:#7e86a5;margin-bottom:9px}
.gallery-card h3{font-size:23px;line-height:1.2;margin-bottom:10px}
.gallery-card p{font-size:15px;line-height:1.55}
.partners-heading h2,.about-heading h2{margin:0}
.partners-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:stretch}
.partners-photo,.about-photo{margin:0;position:relative;overflow:hidden;border-radius:28px;background:#f0f5f6}
.partners-photo img,.about-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.partners-photo figcaption{position:absolute;left:20px;right:20px;bottom:20px;background:#ffffffed;color:#2b3554;border-radius:14px;padding:12px 17px;font-size:14px;font-weight:600;line-height:1.4}
.partner-community{display:flex;flex-direction:column;justify-content:space-between;gap:22px}
.partners-layout .partner-logos{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:none}
.partners-layout .partner-logo-card{position:relative;height:130px;border:1px solid #ebebeb;border-radius:22px}
.partners-layout .partner-logo-card img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none;flex-shrink:0}
.partners-layout .partner-logo-card:not(.mec-logo-card):not(.quang-minh-partner) img{width:112%;height:auto}
.partners-layout .mec-logo-card img{height:130%;width:auto}
.partners-layout .quang-minh-partner img{height:210%;width:auto}
.about-layout{display:grid;grid-template-columns:1fr 1.45fr;gap:28px;align-items:stretch}
.about-principles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.about-principles>div{padding:22px;border-radius:22px;background:#f0f5f6}
.about-principles>div>span{display:block;color:#8089a8;font-size:10px;line-height:1.5;margin-bottom:12px}
.about-principles dt{font-size:21px;font-weight:600;line-height:1.2;color:#111;margin-bottom:10px;letter-spacing:-.025em}
.about-principles dd{margin:0;font-size:15px;line-height:1.6;color:#555}
.contact-platforms{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.contact-platforms a{display:inline-flex;gap:18px;align-items:center;border:1px solid #e0e4ee;border-radius:40px;padding:8px 15px;font-size:12px;font-weight:600;color:#2b3554;line-height:1.5}
.contact-platforms a:hover{background:#f0f5f6}
.hero-card-brand{display:flex;align-items:center;justify-content:center;height:76px;padding-bottom:12px;border-bottom:1px solid #e5e8ed}
.hero-card-brand .qm-brand{gap:8px;width:auto}
.hero-card-brand .qm-logo{width:48px;height:37px}
.hero-card-brand .qm-name{font-size:18px;letter-spacing:-.04em}
.hero-card-brand .qm-wordmark{gap:7px}
.hero-card-brand .qm-brand .suite{font-size:7px;gap:6px;letter-spacing:.23em}
.hero-card-brand .qm-brand .suite:before{width:12px}
.hero-card-brand .bluegene-brand{align-items:center;gap:2px}
.hero-card-brand .bluegene-logo{width:112px;height:55px;object-position:center}
.hero-card-brand .platform-label{font-size:6px;letter-spacing:.13em}
.hero-platform-card>p{margin-top:12px;min-height:42px;font-size:14px;text-align:center}
.hero-platform-card .hero-card-screen{height:auto;aspect-ratio:3/2;object-fit:contain;object-position:center;border-radius:14px;margin-top:12px}
.project-illustration .screen-open{background:#c6dcf0}
.project-illustration .screen-open img{object-position:center;object-fit:contain}

/* Keep the homepage introduction balanced and the platform cards at the bottom. */
@media(min-width:1001px){
 #home .reference-hero .hero-left-block{justify-content:center;gap:28px}
 #home .reference-hero .hero-right-block{justify-content:flex-end}
}

/* Desktop sections form full viewport panels; proximity snapping remains gentle. */
@media(min-width:1001px){
 :root{--screen-space:calc(100svh - var(--menu-height));--panel-padding:clamp(24px,4svh,40px)}
 html{scroll-padding-top:var(--menu-height);scroll-snap-type:y proximity}
 section[id]{scroll-margin-top:0}
 .screen-section{position:relative;display:flex;align-items:center;min-height:var(--screen-space);padding-block:var(--panel-padding);scroll-snap-align:start;scroll-margin-top:0}
 .screen-section>.container{width:min(1340px,calc(100% - 48px))}
 .home-hero.screen-section{padding:0 0 12px}
 .reference-hero{height:calc(var(--screen-space) - 12px);min-height:0}
 .reference-section>.container{padding-bottom:0;border-bottom:0}
 .reference-section:not(.projects-section):after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:min(1340px,calc(100% - 48px));height:1px;background:var(--line)}
 .screen-section h2{font-size:clamp(34px,5.4svh,50px);line-height:1.14}
 .reference-section h2{margin-bottom:clamp(22px,3.6svh,36px)}
 .partners-row{align-items:center}
 .partners-heading,.about-heading{margin-bottom:clamp(22px,3.5svh,34px);grid-template-columns:1.3fr 1fr}
 .partners-layout{gap:32px}
 .partners-photo{min-height:clamp(300px,45svh,430px)}
 .partners-layout .partner-logo-card{height:clamp(105px,15svh,140px)}
 .partners-layout .mec-logo-card img{height:130%;width:auto}
 .about-layout{gap:24px}
 .about-photo{min-height:clamp(250px,38svh,360px)}
 .about-principles>div{padding:clamp(16px,2.4svh,24px)}
 .about-principles dt{font-size:clamp(18px,2.5svh,22px)}
 .about-principles dd{font-size:clamp(13px,1.85svh,16px)}
 .about-principles>div>span{margin-bottom:10px}
 .reference-about .about-banner{margin-top:clamp(20px,3.5svh,32px)}
 .reference-about .about-content>p,.reference-about .about-content dt,.reference-about .about-content dd{font-size:clamp(15px,2.05svh,18px);line-height:1.7}
 .reference-about .about-content dl>div{margin-top:8px}
 .about-banner{margin-top:clamp(24px,5svh,48px);font-size:clamp(13px,1.9svh,16px)}
 .projects-section h2{margin-bottom:0}
 .reference-project-grid{margin-top:clamp(18px,3svh,28px);gap:22px}
 .reference-project-card{padding:clamp(20px,3svh,28px);border-radius:30px;gap:clamp(12px,2svh,18px)}
 .reference-project-card .qm-brand{height:clamp(44px,6.5svh,60px);margin-bottom:12px;gap:10px}
 .reference-project-card .qm-logo{width:70px;height:42px}
 .reference-project-card .qm-name{font-size:clamp(23px,3svh,28px)}
 .reference-project-card .qm-brand .suite{font-size:9px;gap:7px;letter-spacing:.27em}
 .reference-project-card>div>.bluegene-logo{width:115px;height:clamp(44px,6.5svh,60px);margin-bottom:12px}
 .reference-project-card .bluegene-brand{height:clamp(44px,6.5svh,60px);margin-bottom:12px;gap:3px}
 .reference-project-card .bluegene-logo{width:105px;height:calc(clamp(44px,6.5svh,60px) - 13px)}
 .reference-project-card .platform-label{font-size:8px;letter-spacing:.13em}
 .reference-project-card h3{font-size:clamp(18px,2.5svh,23px);line-height:1.2;margin-bottom:12px;letter-spacing:-.035em}
 .reference-project-card p{font-size:clamp(13px,1.85svh,16px);line-height:1.5}
 .reference-project-card .btn{margin-top:16px;padding:9px 18px;font-size:12px}
 .reference-project-card .screen-open img{height:clamp(96px,17svh,175px);object-fit:cover}
 .reference-project-card .project-illustration .screen-open img{height:auto;aspect-ratio:3/1;object-fit:contain}
 .reference-project-card .platform-screen figcaption{font-size:9px;padding:7px 12px}
 .product-intro{flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(18px,3svh,28px);padding-block:clamp(18px,3svh,30px)}
 .product-hero{padding:0}
 .back-link{margin-bottom:clamp(14px,2.3svh,24px)}
 .product-hero-grid{gap:40px}
 .product-hero .eyebrow{margin-bottom:12px}
 .product-hero .qm-name{font-size:clamp(27px,3.7svh,36px)}
 .product-hero .qm-logo{width:96px;height:58px}
 .product-hero h1{font-size:clamp(34px,5.8svh,52px);line-height:1.08;margin-top:18px}
 .product-hero .hero-description{font-size:clamp(14px,2svh,18px);line-height:1.6;margin-top:16px}
 .product-hero .button-row{margin-top:20px;gap:10px}
 .product-hero .btn{padding:10px 16px;font-size:12px;gap:14px}
 .product-tags{margin-top:18px}
 .product-hero .bluegene-logo{width:130px;height:60px}
 .product-hero .bluegene-brand{gap:3px}
 .product-hero .bluegene-brand .bluegene-logo{width:130px;height:50px}
 .product-hero-screen{padding:16px;border-radius:28px}
 .product-hero-screen .screen-bar{height:24px}
 .product-hero-screen .platform-screen figcaption{font-size:10px;padding:8px 12px}
 .product-hero-screen .screen-open img{max-height:calc(var(--screen-space) * .42);object-fit:contain}
 .product-summary{padding:18px 0}
 .summary-grid h3{font-size:clamp(18px,2.5svh,22px);margin:6px 0}
 .summary-grid p{font-size:13px;line-height:1.5}
 .section-heading{gap:48px;margin-bottom:clamp(20px,3.5svh,32px)}
 .section-heading .eyebrow{margin-bottom:12px}
 .section-heading>p{font-size:clamp(14px,1.9svh,17px);line-height:1.6}
 .capability-grid{gap:16px}
 .capability-grid article{padding:clamp(17px,2.6svh,24px);border-radius:22px}
 .capability-index{margin-bottom:12px;font-size:10px}
 .capability-grid h3{font-size:clamp(18px,2.6svh,23px);line-height:1.18;margin-bottom:10px}
 .capability-grid p{font-size:clamp(13px,1.85svh,16px);line-height:1.55}
 .detail-heading{display:grid;grid-template-columns:1.2fr 1fr;gap:8px 48px;max-width:none;margin:0 0 clamp(22px,3.5svh,32px);text-align:left;align-items:end}
 .detail-heading .eyebrow{grid-column:1/-1;margin-bottom:0}
 .detail-heading h2{margin:0}
 .detail-heading p:last-child{font-size:clamp(14px,1.9svh,17px);line-height:1.6}
 .detail-layout{display:grid;grid-template-columns:1.8fr 1fr;gap:32px;align-items:center}
 .detail-layout .full-screen{width:100%;max-width:none}
 .detail-layout .screen-open img{max-height:calc(var(--screen-space) * .45);object-fit:contain}
 .detail-layout .full-screen figcaption{padding:10px 15px;font-size:10px}
 .detail-points{grid-template-columns:1fr;gap:clamp(16px,2.6svh,24px);margin:0}
 .detail-points h3{font-size:clamp(18px,2.45svh,22px);line-height:1.2;margin-bottom:8px}
 .detail-points p{font-size:clamp(13px,1.85svh,16px);line-height:1.55}
 .workflow h3{font-size:clamp(20px,2.8svh,25px);margin:18px 0 12px}
 .workflow p{font-size:clamp(14px,1.9svh,17px);line-height:1.65}
 .clinical-note{margin-top:28px;padding-top:20px;font-size:12px}
 .gallery-image-open img{height:clamp(156px,28svh,260px);aspect-ratio:auto}
 .gallery-card figcaption{padding:clamp(18px,2.5svh,24px)}
 .gallery-card h3{font-size:clamp(19px,2.7svh,24px)}
 .gallery-card p{font-size:clamp(13px,1.9svh,16px)}
 .closing-screen{flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(30px,5svh,48px)}
 .closing-screen .contact-inner{padding:clamp(24px,4svh,38px);background:#f7f8fa;border:1px solid #eef0f4;border-radius:28px}
 .closing-screen .contact-form{background:#fff;border:1px solid #e8ebf0}
 .contact-section{padding:0}
 .contact-inner{gap:clamp(24px,4svh,40px) 32px;padding-bottom:clamp(24px,4svh,40px)}
 .contact-description p{font-size:clamp(14px,2svh,18px);line-height:1.7}
 .footer{padding:0}
 .footer-main{padding-bottom:clamp(24px,4svh,40px);align-items:center}
 .footer-brand img{width:290px;height:110px}
 .footer-links{padding:0;gap:22px 55px;font-size:15px}
 .footer-bottom{padding-top:24px}
 .footer-bottom .text-block{font-size:15px}
}
@media(min-width:1001px) and (max-height:740px){
 .partners-photo{min-height:280px}
 .partners-layout .partner-logos{gap:14px}
 .partner-community{gap:16px}
 .about-principles>div{padding:16px}
 .about-principles>div>span{margin-bottom:8px}
 .about-principles dt{font-size:18px;margin-bottom:8px}
 .about-principles dd{font-size:13px;line-height:1.5}
 .contact-platforms{margin-top:14px}
 .contact-platforms a{padding:6px 12px;font-size:11px}
 .reference-project-card{padding:20px;gap:12px}
 .reference-project-card h3{margin-bottom:10px}
 .reference-project-card .btn{margin-top:12px;padding:8px 16px;font-size:11px}
 .reference-project-card .screen-open img{height:96px}
 .reference-project-card .project-illustration .screen-open img{height:auto}
 .reference-project-card .platform-screen figcaption{padding:6px 12px}
 .capability-grid article{padding:16px 18px}
 .capability-grid h3{font-size:18px}
 .capability-grid p{font-size:13px;line-height:1.5}
 .product-hero .product-tags{margin-top:12px}
 .product-hero h1{font-size:36px}
 .product-hero .qm-name{font-size:28px}
 .product-hero .qm-logo{width:86px;height:48px}
 .product-hero .hero-description{font-size:14px}
 .product-intro{gap:16px}
 .product-summary{padding:14px 0}
 .detail-layout{gap:26px}
 .detail-points{gap:16px}
 .detail-points p{font-size:13px}
 .closing-screen .footer-brand img{width:240px;height:90px}
}
@media(min-width:1001px) and (max-width:1200px){
 .about-heading{grid-template-columns:1.35fr 1fr;gap:30px}
 .about-heading h2{font-size:36px}
 .about-layout{grid-template-columns:.85fr 1.45fr;gap:20px}
 .about-principles>div{padding:17px}
 .hero-card-brand .qm-logo{width:42px;height:32px}
 .hero-card-brand .qm-name{font-size:17px}
 .product-hero h1{font-size:38px}
 .product-hero .hero-description{font-size:15px}
 .product-hero .btn{font-size:11px;padding:9px 13px;gap:10px}
 .product-hero-grid{gap:28px}
}
@media(min-width:1001px) and (max-height:650px){
 .projects-section{padding-block:16px}
 .product-intro{padding-block:16px}
 .product-hero h1{font-size:34px;margin-top:14px}
 .product-hero .hero-description{font-size:13px;line-height:1.55;margin-top:14px}
 .product-hero .button-row{margin-top:16px}
 .product-hero .bluegene-logo{height:52px}
 .product-hero .bluegene-brand .bluegene-logo{height:40px}
 .product-hero .eyebrow{margin-bottom:10px}
}
@media(max-width:1000px){
 .detail-layout{display:block}
 .closing-screen{padding:0}
 .partners-row{grid-template-columns:1fr}
 .partner-logos{max-width:760px}
 .gallery-grid{gap:16px}
 .gallery-card figcaption{padding:18px}
 .gallery-card h3{font-size:20px}
 .gallery-card p{font-size:14px}
 .partners-layout{grid-template-columns:1fr 1fr;gap:24px}
 .partners-layout .partner-logo-card{height:100px}
 .partners-layout .mec-logo-card img{height:130%;width:auto}
 .about-layout{grid-template-columns:1fr;gap:22px}
 .about-photo{height:300px}
}
@media(max-width:700px){
 .hero-card-brand{height:94px;padding-bottom:10px}
 .hero-card-brand .qm-brand{flex-direction:column;gap:6px}
 .hero-card-brand .qm-logo{width:65px;height:34px}
 .hero-card-brand .qm-name{font-size:17px}
 .hero-card-brand .qm-wordmark{align-items:center;gap:5px}
 .hero-card-brand .qm-brand .suite{font-size:6px}
 .hero-card-brand .qm-brand .suite:before{display:none}
 .hero-card-brand .bluegene-logo{width:100px;height:55px}
 .hero-platform-card>p{font-size:12px;min-height:36px}
 .qm-brand{gap:12px}
 .qm-logo{width:83px;height:49px}
 .qm-name{font-size:29px}
 .qm-wordmark{gap:8px}
 .reference-project-card .qm-brand{gap:10px}
 .reference-project-card .qm-logo{width:70px;height:42px}
 .reference-project-card .qm-name{font-size:25px}
 .partner-logos{grid-template-columns:repeat(2,minmax(0,1fr));max-width:430px;gap:18px}
 .mec-logo-card{grid-column:auto;width:100%}
 .gallery-grid{grid-template-columns:1fr;gap:22px}
 .gallery-card figcaption{padding:23px}
 .gallery-card h3{font-size:24px}
 .gallery-card p{font-size:16px}
 .partners-heading,.about-heading{gap:18px;margin-bottom:28px}
 .partners-layout{grid-template-columns:1fr;gap:24px}
 .partners-photo{height:245px}
 .partners-photo figcaption{left:16px;right:16px;bottom:16px;font-size:13px}
 .partners-layout .partner-logo-card{height:auto;aspect-ratio:1.84}
 .partners-layout .mec-logo-card img{height:130%;width:auto}
 .about-photo{height:245px}
 .about-principles{grid-template-columns:1fr;gap:14px}
 .about-principles>div{padding:24px}
 .about-principles dt{font-size:23px}
 .about-principles dd{font-size:16px}
}
@media(max-width:370px){
 .qm-brand{gap:9px}
 .qm-logo{width:67px;height:42px}
 .qm-name{font-size:25px}
 .reference-project-card .qm-logo{width:55px;height:35px}
 .reference-project-card .qm-name{font-size:23px}
}
@media(prefers-reduced-motion:reduce){html{scroll-snap-type:none}}
