/* Shared section building blocks (cd-sec, cd-wrap, cd-head, cd-grid, cd-box). Loaded site-wide so every imported page reuses them. */
.cd-sec { padding: var(--cd-section-y) 0; }
.cd-sec--tint { background: var(--cd-blue-50); }
.cd-sec--blue { background: linear-gradient(180deg, var(--cd-blue-600) 0%, var(--cd-blue-900) 100%); color: var(--cd-white); }
.cd-wrap { display: flex; flex-direction: column; gap: var(--cd-head-gap); width: min(100% - 2 * var(--cd-gutter), var(--cd-container)); max-width: none; margin-inline: auto; padding: 0; }
.cd-head { display: flex; flex-direction: column; gap: var(--cd-sp-2); max-width: var(--cd-w-prose); }
/* every eyebrow label (head, hero, about hero, templates, blog, job, kit band) shares one lighter weight; body-prefixed so it beats per-section rules */
body .cd-eyebrow, body [class*="__eyebrow"], body .cd-t-eyebrow { font-weight: var(--cd-fw-eyebrow); }
.cd-head__eyebrow { margin: 0; font-size: var(--cd-fs-sm); line-height: var(--cd-lh-eyebrow); font-weight: var(--cd-fw-bold); letter-spacing: var(--cd-ls-caps); text-transform: uppercase; color: var(--cd-blue-600); }
.cd-head__title { margin: 0; font-size: var(--cd-fs-h2); line-height: var(--cd-lh-body); font-weight: var(--cd-fw-bold); color: var(--cd-blue-900); }
.cd-head__lead { margin: 0; font-size: var(--cd-fs-body); line-height: var(--cd-lh-body); color: var(--cd-blue-900); }
.cd-sec--blue .cd-head__eyebrow, .cd-sec--blue .cd-head__title, .cd-sec--blue .cd-head__lead { color: var(--cd-white); }
.cd-grid { display: grid; gap: var(--cd-gap); width: 100%; }
.cd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cd-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cd-box { display: flex; flex-direction: column; gap: var(--cd-sp-2); padding: var(--cd-sp-6); background: var(--cd-blue-50); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: var(--cd-radius-card); transition: var(--cd-tr-lift); }
.cd-sec--tint .cd-box { background: var(--cd-white); }
.cd-box:hover { box-shadow: var(--cd-shadow-card); transform: translateY(var(--cd-lift)); }
.cd-box__title { margin: 0; font-size: var(--cd-fs-h3); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-semibold); color: var(--cd-blue-900); }
.cd-box__text { margin: 0; font-size: var(--cd-fs-body); line-height: var(--cd-lh-body); color: var(--cd-blue-900); }
@media (max-width: 1199px) { .cd-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cd-grid--2, .cd-grid--3, .cd-grid--4, .cd-grid--5 { grid-template-columns: 1fr; }  }


/* from sections/home/02-stats.css */
.cd-stat__num { margin: 0; font-size: var(--cd-fs-stat); line-height: var(--cd-lh-tight); font-weight: var(--cd-fw-bold); color: var(--cd-blue-600); }

/* from sections/home/06-process.css */
.cd-phase { gap: var(--cd-sp-3); padding: var(--cd-sp-5); }
.cd-phase__num { margin: 0; width: var(--cd-tap); height: var(--cd-tap); display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cd-blue-100); font-size: var(--cd-fs-h3); font-weight: var(--cd-fw-bold); color: var(--cd-blue-900); }
.cd-phase .cd-box__title { font-size: var(--cd-fs-lead); min-height: 2.6em; }
.cd-phase__img { display: block; width: 100%; height: var(--cd-h-phase-img); object-fit: contain; }
.cd-phase .cd-box__text { font-size: var(--cd-fs-body-sm); }

/* from sections/home/07-factory.css */
.cd-zone { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: var(--cd-h-card-min); overflow: hidden; border-radius: var(--cd-radius-card); background: var(--cd-blue-900); }
.cd-zone__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-zone__body { position: relative; display: flex; flex-direction: column; gap: var(--cd-sp-2); padding: var(--cd-sp-24) var(--cd-sp-8) var(--cd-sp-8); background: linear-gradient(180deg, color-mix(in srgb, var(--cd-blue-900) 0%, transparent) 0%, color-mix(in srgb, var(--cd-blue-900) 88%, transparent) 60%); }
.cd-zone__title { margin: 0; font-size: var(--cd-fs-h3); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-semibold); color: var(--cd-white); }
.cd-zone__text { margin: 0; font-size: var(--cd-fs-body); line-height: var(--cd-lh-body); color: color-mix(in srgb, var(--cd-white) 92%, transparent); }

/* ---------- Inner pages: hero, split, media, lists, badges, contact ---------- */
.cd-sec--hero { padding-top: var(--cd-sp-18); background: linear-gradient(180deg, var(--cd-blue-50) 0%, var(--cd-white) 100%); }
.cd-h1 { margin: 0; font-size: var(--cd-fs-h1); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-semibold); color: var(--cd-blue-900); }
.cd-h1 em { font-style: normal; color: var(--cd-blue-600); }
.cd-split { align-items: center; gap: var(--cd-sp-16); }
.cd-split > .cd-head { max-width: none; gap: var(--cd-sp-4); }
.cd-media { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cd-radius-card); }
.cd-media--tall { aspect-ratio: 3 / 4; }
.cd-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--cd-sp-4); margin-top: var(--cd-sp-2); }
.cd-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cd-sp-4); margin-top: var(--cd-sp-4); }
.cd-badge { display: flex; flex-direction: column; gap: var(--cd-sp-0-5); padding: var(--cd-sp-4); background: var(--cd-white); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: var(--cd-radius-card); }
.cd-badge__num { margin: 0; font-size: var(--cd-fs-h2); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-bold); color: var(--cd-blue-600); }
.cd-badge__label { margin: 0; font-size: var(--cd-fs-sm); line-height: var(--cd-lh-eyebrow); color: var(--cd-blue-900); }
.cd-num { margin: 0; font-size: var(--cd-fs-sm); font-weight: var(--cd-fw-bold); letter-spacing: var(--cd-ls-caps); color: var(--cd-blue-600); }
.cd-list { margin: var(--cd-sp-1) 0 0; padding-left: var(--cd-sp-5); display: grid; gap: var(--cd-sp-1-5); font-size: var(--cd-fs-body); line-height: var(--cd-lh-body); color: var(--cd-blue-900); }
.cd-box__label { margin: var(--cd-sp-2) 0 0; font-size: var(--cd-fs-sm); font-weight: var(--cd-fw-bold); color: var(--cd-blue-900); }
.cd-box__img { display: block; width: 100%; height: var(--cd-h-box-img); margin-bottom: var(--cd-sp-2); object-fit: cover; border-radius: var(--cd-radius-sm); }
.cd-box--img { padding: 0; overflow: hidden; }
.cd-box--img > .cd-box__body { display: flex; flex-direction: column; gap: var(--cd-sp-2); padding: var(--cd-sp-6); }
.cd-box--img > img.cd-box__img { width: 100% !important; height: var(--cd-h-box-img-lg); margin: 0; border-radius: 0; }
.cd-contact { align-items: start; }
.cd-contact__cards { display: grid; gap: var(--cd-gap); }
.cd-contact__form { display: flex; flex-direction: column; gap: var(--cd-sp-3); padding: var(--cd-sp-8); background: var(--cd-white); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: var(--cd-radius-card); }
.cd-contact__form .cd-box__title { font-size: var(--cd-fs-h2); }
.cd-contact__form input, .cd-contact__form textarea { width: 100%; min-height: var(--cd-field-h); padding: var(--cd-sp-2-5) var(--cd-sp-3-5); font: inherit; font-size: var(--cd-fs-body); color: var(--cd-blue-900); background: var(--cd-white); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: var(--cd-radius-sm); }
.cd-contact__form textarea { min-height: var(--cd-h-textarea); }
.cd-contact__form label { font-size: var(--cd-fs-sm); font-weight: var(--cd-fw-semibold); color: var(--cd-blue-900); }
.cd-contact__form button[type="submit"] { min-height: var(--cd-field-h); padding: 0 var(--cd-sp-6); font: inherit; font-weight: var(--cd-fw-medium); color: var(--cd-white); border: 0; border-radius: var(--cd-radius-sm); background: linear-gradient(90deg, var(--cd-blue-600), var(--cd-blue-900)); cursor: pointer; }
@media (max-width: 991px) { .cd-split { gap: var(--cd-sp-8); } .cd-split > .cd-media { order: -1; } .cd-badges { grid-template-columns: 1fr; } }
.cd-box__link { display: inline-block; align-self: flex-start; padding: 0; font-size: var(--cd-fs-body); font-weight: var(--cd-fw-medium); color: var(--cd-blue-600); text-decoration: none; background: transparent; border: 0; }
.cd-box__link:hover { color: var(--cd-blue-900); text-decoration: underline; }

/* ---------- Pacdora grid pass (2026-11-24): fluid tiles by aspect-ratio, not fixed heights ---------- */
/* 2-col media rows: gap 24, media column 54%, text 46% (636/540 @1440, 816/688 @1920), media ratio 792/534 */
.cd-kit, .cd-support, .cd-split { gap: var(--cd-sp-6); }
.cd-support { grid-template-columns: 54fr 46fr; }
.cd-kit { grid-template-columns: 46fr 54fr; }
.cd-support img.cd-support__img { width: 100% !important; max-width: none; height: 100%; min-height: 0; aspect-ratio: var(--cd-media-ar); border-radius: var(--cd-radius-panel); }
@media (max-width: 991px) { .cd-support, .cd-kit { grid-template-columns: 1fr; } }
.cd-grid > .cd-box { height: 100%; }

/* ---------- Long-form text pages (privacy policy, terms) ---------- */
.cd-prose { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.cd-prose__h2 { margin: 32px 0 0; font-size: 24px; line-height: 1.4; font-weight: 700; color: #1f4a94; }
.cd-prose__p { margin: 0; font-size: 16px; line-height: 1.75; color: #1f4a94; }
.cd-prose__ul { margin: 0; font-size: 16px; line-height: 1.75; }
.cd-prose__note { margin: 0 0 8px; padding: 16px 20px; font-size: 15px; line-height: 1.7; color: #7a4b00; background: #fff4d6; border: 1px solid #f3d58a; border-radius: 8px; }
.cd-todo { padding: 0 4px; font-weight: 600; color: #7a4b00; background: #fff4d6; border-radius: 4px; }

/* Shared page blocks (breadcrumb, flow spacing, button variants). Page CSS imported into Bricks is not loaded on other pages, so shared pieces live here. */
.cd-sec--flow { padding-block: calc(var(--cd-section-y) / 2); }
.cd-wrap--tight { gap: var(--cd-sp-6); }
.cd-crumbs { display: flex; flex-direction: row; align-items: center; gap: var(--cd-sp-2); font-size: var(--cd-fs-body); color: var(--cd-blue-900); }
.cd-crumbs__link { color: var(--cd-blue-900); text-decoration: none; }
.cd-crumbs__link:hover { color: var(--cd-blue-600); }
.cd-crumbs__current { font-weight: var(--cd-fw-medium); }
.cd-fpanel__title { margin: 0; text-wrap: balance; font-size: var(--cd-fs-h2-lg); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-bold); text-transform: uppercase; color: var(--cd-blue-600); }
.cd-head--center { align-items: center; max-width: none; text-align: center; }
.cd-cta__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--cd-sp-4); margin-top: var(--cd-sp-2); }
.cd-btn.cd-btn--soft { background: var(--cd-blue-100); color: var(--cd-blue-900); }
.cd-btn.cd-btn--solid { background: var(--cd-blue-600); color: var(--cd-white); border: var(--cd-bw) solid var(--cd-white); }
.cd-btn.cd-btn--outline-light { background: transparent; color: var(--cd-white); border: var(--cd-bw) solid var(--cd-white); }

/* CTA band (shared by About, Manufacturing) */
.cd-cta { position: relative; overflow: hidden; display: flex; flex-direction: row; align-items: center; min-height: var(--cd-h-cta); border-radius: var(--cd-radius-panel); background: var(--cd-blue-900); }
img.cd-cta__bg { position: absolute; inset: 0; width: 100% !important; height: 100%; max-width: none; object-fit: cover; }
.cd-cta__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--cd-sp-4); max-width: var(--cd-w-popup); padding: var(--cd-sp-10) var(--cd-sp-8); }
.cd-cta__title { margin: 0; font-size: var(--cd-fs-h1-sm); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-bold); text-transform: uppercase; color: var(--cd-white); }
.cd-cta__text { margin: 0; font-size: var(--cd-fs-body); line-height: var(--cd-lh-body); color: var(--cd-white); }
.cd-cta__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--cd-sp-4); margin-top: var(--cd-sp-2); }
@media (max-width: 991px) { .cd-cta__body { max-width: none; } .cd-cta { align-items: flex-end; } }
.cd-btn.cd-btn--white { background: var(--cd-white); color: var(--cd-blue-900); }

figure.cd-cta__bg { position: absolute; inset: 0; margin: 0; }
.cd-cta__bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- Carousels (.cd-qtrack quality cards, .cd-rdslider R&D photos): scroll-snap + compact arrow buttons, no scrollbar, no edge fade ---------- */
.brxe-block.cd-qtrack, .brxe-block.cd-rdslider { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; cursor: grab; }
.brxe-block.cd-qtrack::-webkit-scrollbar, .brxe-block.cd-rdslider::-webkit-scrollbar { display: none; }
.cd-qtrack.is-dragging, .cd-rdslider.is-dragging { scroll-snap-type: none !important; cursor: grabbing; user-select: none; }
.cd-qtrack:focus-visible, .cd-rdslider:focus-visible { outline: var(--cd-outline-w) solid var(--cd-blue-600); outline-offset: var(--cd-outline-offset); }
.cd-carousel { display: flex; flex-direction: column; gap: var(--cd-sp-4); width: 100%; min-width: 0; }
.cd-carousel__nav { display: flex; flex-direction: row; justify-content: flex-end; gap: var(--cd-sp-2); width: 100%; }
.cd-carousel__nav--center { justify-content: center; }
.cd-carousel__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--cd-blue-900); background: var(--cd-white); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: 50%; cursor: pointer; transition: var(--cd-tr-color), transform var(--cd-dur-press) var(--cd-ease); }
.cd-carousel__btn:hover:not(:disabled) { color: var(--cd-white); background: var(--cd-blue-600); border-color: var(--cd-blue-600); }
.cd-carousel__btn:active:not(:disabled) { transform: scale(.94); }
.cd-carousel__btn:focus-visible { outline: var(--cd-outline-w) solid var(--cd-blue-600); outline-offset: var(--cd-outline-offset); }
.cd-carousel__btn:disabled { opacity: .35; cursor: default; }
@media (pointer: coarse) { .cd-carousel__btn { width: var(--cd-tap); height: var(--cd-tap); } }

/* ---------- Home: text colours exactly as in Figma (frame 13:49) ----------
   Headings + big numbers = gradient #2365d7 -> #1f4a94; eyebrows + step labels = #1f4a94; body copy on light sections = black; factory-card text = solid white. */
body.home .cd-hero__title, body.home .cd-hero__title .cd-hero__accent, body.home .cd-hero__stat-num, body.home .cd-about__num, body.home .cd-about__name,
body.home .cd-sec:not(.cd-sec--blue):not(.cd-sec--photo) .cd-head__title, body.home .cd-box:has(.cd-phase__num) .cd-box__title {
	width: fit-content; max-width: 100%; background: var(--cd-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
body.home .cd-hero__title { margin-inline: auto; }
body.home .cd-hero__title .cd-hero__accent { width: auto; }
body.home .cd-hero__eyebrow, body.home .cd-stage__tag, body.home .cd-sec:not(.cd-sec--blue):not(.cd-sec--photo) .cd-head__eyebrow:not(.cd-about__eyebrow) { color: var(--cd-blue-900); }
body.home .cd-sec:not(.cd-sec--blue):not(.cd-sec--photo) .cd-head__lead, body.home .cd-sec:not(.cd-sec--blue):not(.cd-sec--photo) .cd-box__text { color: var(--cd-ink); }
body.home .cd-zone__text { color: var(--cd-white); }
body.home .cd-about .cd-about__eyebrow, body.home .cd-about__eyebrow { color: var(--cd-white); }

/* Home: hero melts into the next section (no hard edge). The hero photo fades to white; this overlay carries it on to the next section's background (--cd-blue-50). */
body.home .cd-hero { overflow: hidden; padding-bottom: var(--cd-sp-16); }
body.home .cd-hero::after { content: ""; position: absolute; z-index: 0; inset: auto 0 0 0; height: 55%; pointer-events: none;
	background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--cd-blue-50) 55%, transparent) 55%, var(--cd-blue-50) 100%); }
body.home .cd-hero > .brxe-container, body.home .cd-hero__inner { position: relative; z-index: 1; }
body.home .cd-hero + .cd-sec { padding-top: var(--cd-sp-10); }
@media (max-width: 991px) { body.home .cd-hero { padding-bottom: var(--cd-sp-12); } body.home .cd-hero + .cd-sec { padding-top: var(--cd-sp-8); } }
/* Home hero: a bit taller, and a lighter veil so the cover photo reads clearly (only the bottom still fades out) */
body.home .cd-hero { padding-top: var(--cd-sp-24); padding-bottom: var(--cd-sp-24);
	background-image: linear-gradient(180deg, color-mix(in srgb, var(--cd-blue-50) 30%, transparent) 0%, color-mix(in srgb, var(--cd-blue-50) 10%, transparent) 60%, color-mix(in srgb, var(--cd-white) 60%, transparent) 100%), url("/wp-content/uploads/2026/11/hero-bg.webp"); }
body.home .cd-hero::after { height: 30%; }
@media (max-width: 991px) { body.home .cd-hero { padding-top: var(--cd-sp-16); padding-bottom: var(--cd-sp-16); } }

/* Home: section titles as in Figma, uppercase 46px/800 (Kit block 40px/700); scaled down on tablet/mobile */
body.home .cd-head__title, body.home .cd-about__title { text-transform: uppercase; font-size: var(--cd-fs-h1-md); line-height: var(--cd-lh-title); font-weight: var(--cd-fw-extrabold); text-wrap: balance; }
body.home .cd-kit .cd-head__title { font-size: var(--cd-fs-h2-xl); font-weight: var(--cd-fw-bold); }
@media (max-width: 991px) { body.home .cd-head__title, body.home .cd-about__title { font-size: var(--cd-fs-h2-lg); } body.home .cd-kit .cd-head__title { font-size: var(--cd-fs-h2-md); } }
@media (max-width: 767px) { body.home .cd-head__title, body.home .cd-about__title { font-size: var(--cd-fs-h2-md); } }
body.home .cd-sec--photo .cd-head__title { font-size: var(--cd-fs-h1-md); }
body.home .cd-head { max-width: none; }
body.home .cd-head__lead { max-width: var(--cd-w-prose); }
@media (max-width: 991px) { body.home .cd-sec--photo .cd-head__title { font-size: var(--cd-fs-h2-lg); } }
@media (max-width: 767px) { body.home .cd-sec--photo .cd-head__title { font-size: var(--cd-fs-h2-md); } }

/* Split sections (product / illustration image next to a text column): never upscale past the image's natural size, never stretch it,
   keep its aspect ratio and centre it with the text (ADR 0006). Caps: --cd-w-media-sm (520px) for product photos, --cd-w-media-md (690px) for the quality map. */
.cd-studio__intro, .cd-kit, .cd-qhead { align-items: center; }
.cd-grid:has(> .brxe-image) > .brxe-block.cd-head { justify-content: center; } /* text block beside a photo: content centred vertically in the row */
main .brxe-image.cd-studio__img, main .brxe-image.cd-kit__img { width: 100%; max-width: var(--cd-w-media-sm); height: auto; object-fit: contain; justify-self: center; align-self: center; }
main .brxe-image.cd-studio__img { aspect-ratio: 581 / 633; }
main .brxe-image.cd-kit__img { aspect-ratio: 517 / 486; }
main .cd-qhead .cd-qmap { width: 100%; max-width: var(--cd-w-media-md); justify-self: center; }
main .cd-qhead .cd-qmap__img { width: 100% !important; height: auto !important; aspect-ratio: 690 / 442; } /* !important: Bricks pins a fixed width/height on this <img> by id */
main .brxe-image.cd-studio__img { max-height: none; }

/* About hero: decorative eyebrow rule + atom-orbit motif (pseudo-elements/keyframes live here, not in the Bricks import) */
.cd-ahero__eyebrow::before { content: ''; flex: none; width: 40px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cd-blue-600), var(--cd-blue-900)); }
@media (prefers-reduced-motion: no-preference) {
	.cd-ahero__eyebrow::before { transform-origin: left; animation: cd-rule-in .8s var(--cd-ease) both; }
}
@keyframes cd-rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 767px) { .cd-ahero__eyebrow { gap: var(--cd-sp-2); font-size: 12px; letter-spacing: .05em; } .cd-ahero__eyebrow::before { width: 20px; } }
.cd-ahero { overflow-x: clip; }

/* About hero badges: hover lift only. The idle float was removed so the three badges stay on one line (same top and bottom). */
@media (prefers-reduced-motion: no-preference) {
	.cd-ahero__badge { transition: transform var(--cd-dur) var(--cd-ease), box-shadow var(--cd-dur) var(--cd-ease); }
	.cd-ahero__badge:hover { transform: translateY(-6px); }
}

/* Breadcrumb: home glyph before the first link, live dot before the current page (pseudo-elements live here, not in the Bricks import) */
.cd-crumbs__link::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cd-crumbs__current::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cd-blue-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cd-blue-600) 22%, transparent); }


/* ---------- About hero choreography (one-time, on load). Starts when motion.js sets html.cd-marked; none of it applies under reduced motion,
   in the Bricks builder, or when JS is off (those keep the plain, fully visible hero). Exception to "transform + opacity only": the
   one-off title shine moves a background-position, it runs once and never loops. ---------- */
body .cd-ahero__title {
	background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .75) 50%, transparent 58%), linear-gradient(95deg, var(--cd-blue-600) 0%, var(--cd-blue-900) 100%);
	background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
}
.cd-ahero__lead--key, .cd-ahero__lead, .cd-ahero__num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
	.cd-js.cd-marked .cd-ahero__eyebrow { animation: cd-slide-in .8s var(--cd-ease-reveal) .1s backwards; }
	.cd-js.cd-marked .cd-ahero__eyebrow::before { animation-duration: 1s; animation-delay: .2s; }
	.cd-js.cd-marked .cd-ahero__title { animation: cd-title-in 1.4s var(--cd-ease-reveal) .25s backwards, cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-ahero__lead--key { animation: cd-rise 1s var(--cd-ease-reveal) .8s backwards; }
	.cd-js.cd-marked .cd-ahero__lead:not(.cd-ahero__lead--key) { animation: cd-rise 1s var(--cd-ease-reveal) 1s backwards; }
	.cd-js.cd-marked img.cd-ahero__img { animation: cd-img-in 1.8s var(--cd-ease-reveal) backwards; transform-origin: 50% 100%; }
	.cd-js.cd-marked .cd-ahero__badge { animation: cd-pop-up .95s cubic-bezier(.34, 1.4, .64, 1) backwards; }
	.cd-js.cd-marked .cd-ahero__badge:nth-child(1) { animation-delay: 1.1s; }
	.cd-js.cd-marked .cd-ahero__badge:nth-child(2) { animation-delay: 1.25s; }
	.cd-js.cd-marked .cd-ahero__badge:nth-child(3) { animation-delay: 1.4s; }
}
@keyframes cd-slide-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
/* title: swept open left to right while rising out of a blur */
@keyframes cd-title-in {
	from { opacity: 0; clip-path: inset(-10% 100% -10% 0); transform: translateY(32px); filter: blur(10px); }
	60% { opacity: 1; }
	to { opacity: 1; clip-path: inset(-10% -2% -10% -2%); transform: none; filter: blur(0); }
}
@keyframes cd-shine { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
@keyframes cd-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cd-img-in { from { opacity: 0; transform: scale(1.07); filter: saturate(.6) blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cd-pop-up { from { opacity: 0; transform: translateY(48px) scale(.94); } to { opacity: 1; transform: none; } }


/* GENERAL RULE: every card in a grid row is exactly as tall as the tallest card in that row. Bricks sets align-items: flex-start on blocks,
   which let cards size to their own text; stretch is forced here for every card grid, so a new grid never needs its own fix. */
body :is(.cd-grid, .cd-t-grid, .cd-c-topics, .cd-kit__cards, .cd-support__list, .cd-contact__cards, .cd-rdgrid, .cd-fstats) { align-items: stretch; grid-auto-rows: 1fr; }
body :is(.cd-grid, .cd-t-grid, .cd-b-grid, .cd-kit__cards, .cd-support__list, .cd-contact__cards) > * { align-self: stretch !important; }



/* ---------- Home hero: same choreography as the About hero (centered layout, so the label rises instead of sliding in) ---------- */
body .cd-hero__title, body .cd-hero__title .cd-hero__accent {
	background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .75) 50%, transparent 58%), var(--cd-grad-text);
	background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
}
@media (prefers-reduced-motion: no-preference) {
	.cd-js.cd-marked .cd-hero__eyebrow { animation: cd-rise .9s var(--cd-ease-reveal) .1s backwards; }
	.cd-js.cd-marked .cd-hero__title { animation: cd-title-in 1.4s var(--cd-ease-reveal) .25s backwards, cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-hero__title .cd-hero__accent { animation: cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-hero__lead { animation: cd-rise 1s var(--cd-ease-reveal) .8s backwards; }
	.cd-js.cd-marked .cd-hero__actions { animation: cd-rise 1s var(--cd-ease-reveal) 1s backwards; }
	.cd-js.cd-marked .cd-hero__stat { animation: cd-pop-up .95s cubic-bezier(.34, 1.4, .64, 1) backwards; }
	.cd-js.cd-marked .cd-hero__stat:nth-child(1) { animation-delay: 1.15s; }
	.cd-js.cd-marked .cd-hero__stat:nth-child(2) { animation-delay: 1.3s; }
	.cd-js.cd-marked .cd-hero__stat:nth-child(3) { animation-delay: 1.45s; }
	.cd-js.cd-marked .cd-hero__stat:nth-child(4) { animation-delay: 1.6s; }
}


/* ---------- Manufacturing hero: same choreography as the About hero (left aligned, vertically centered in the photo band) ---------- */
body .cd-chero__title {
	background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .75) 50%, transparent 58%), var(--cd-grad-text);
	background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
	.cd-js.cd-marked .cd-chero .cd-head__eyebrow { animation: cd-slide-in .8s var(--cd-ease-reveal) .1s backwards; }
	.cd-js.cd-marked .cd-chero__title { animation: cd-title-in 1.4s var(--cd-ease-reveal) .25s backwards, cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-chero__lead { animation: cd-rise 1s var(--cd-ease-reveal) .8s backwards; }
	.cd-js.cd-marked .cd-chero .cd-cta__actions { animation: cd-rise 1s var(--cd-ease-reveal) 1s backwards; }
	.cd-js.cd-marked img.cd-chero__bg { animation: cd-img-in 1.8s var(--cd-ease-reveal) backwards; }
}


/* ---------- ODM/OEM hero: same choreography (centered layout: crumbs, title sweep, lead, then the photo and the feature strip rise in) ---------- */
body .cd-ohero__title {
	background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .75) 50%, transparent 58%), var(--cd-grad-text);
	background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
	.cd-js.cd-marked .cd-ohero .cd-crumbs { animation: cd-rise .9s var(--cd-ease-reveal) .1s backwards; }
	.cd-js.cd-marked .cd-ohero__title { animation: cd-title-in 1.4s var(--cd-ease-reveal) .25s backwards, cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-ohero__lead { animation: cd-rise 1s var(--cd-ease-reveal) .8s backwards; }
	.cd-js.cd-marked img.cd-ohero__img { animation: cd-img-in 1.8s var(--cd-ease-reveal) 1s backwards; transform-origin: 50% 100%; }
	.cd-js.cd-marked .cd-ohero__feature { animation: cd-rise .95s var(--cd-ease-reveal) backwards; }
	.cd-js.cd-marked .cd-ohero__feature:nth-child(1) { animation-delay: 1.4s; }
	.cd-js.cd-marked .cd-ohero__feature:nth-child(2) { animation-delay: 1.55s; }
	.cd-js.cd-marked .cd-ohero__feature:nth-child(3) { animation-delay: 1.7s; }
}


/* ---------- Jobs archive hero: same choreography as the other heroes (left aligned) ---------- */
body .cd-t-jhero__title {
	background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .75) 50%, transparent 58%), var(--cd-grad-text);
	background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
	.cd-js.cd-marked .cd-t-jhero .cd-t-eyebrow { animation: cd-slide-in .8s var(--cd-ease-reveal) .1s backwards; }
	.cd-js.cd-marked .cd-t-jhero__title { animation: cd-title-in 1.4s var(--cd-ease-reveal) .25s backwards, cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-t-jhero .cd-t-lead { animation: cd-rise 1s var(--cd-ease-reveal) .8s backwards; }
	.cd-js.cd-marked .cd-t-jhero .cd-btn { animation: cd-rise 1s var(--cd-ease-reveal) 1s backwards; }
	.cd-js.cd-marked img.cd-t-jhero__bg { animation: cd-img-in 1.8s var(--cd-ease-reveal) backwards; }
}


/* ---------- Blog hero: same choreography as the other heroes (left aligned) ---------- */
body .cd-b-hero__title {
	background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .75) 50%, transparent 58%), var(--cd-grad-text);
	background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
	.cd-js.cd-marked .cd-b-hero .cd-t-eyebrow { animation: cd-slide-in .8s var(--cd-ease-reveal) .1s backwards; }
	.cd-js.cd-marked .cd-b-hero__title { animation: cd-title-in 1.4s var(--cd-ease-reveal) .25s backwards, cd-shine 1.8s var(--cd-ease) 1.5s 1 both; }
	.cd-js.cd-marked .cd-b-hero__lead { animation: cd-rise 1s var(--cd-ease-reveal) .8s backwards; }
	.cd-js.cd-marked .cd-b-search { animation: cd-rise 1s var(--cd-ease-reveal) 1s backwards; }
	.cd-js.cd-marked .cd-b-chips { animation: cd-rise 1s var(--cd-ease-reveal) 1.15s backwards; }
}

/* blog list: rows stay their own height (the featured article is a short wide row), cards in one row still stretch to equal height */
body .cd-b-grid { align-items: stretch; }

/* pause button: not shown to mouse/touch visitors, but kept in the page for keyboard and screen-reader users (it appears when focused with Tab) */
.cd-carousel__btn--toggle:not(:focus-visible) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.cd-carousel__btn--toggle:focus-visible { margin-right: var(--cd-sp-2); }

/* ---------- Process phase cards (home "Quy trình" + ODM "Quy trình năm phase"): premium card ----------
   White card with a hairline border and a soft blue shadow, a big ghost step number, the illustration on its own pale "stage",
   a gradient hairline that draws across the top on hover, and a quiet text-link CTA instead of an outlined button. Same markup, CSS only. */
body .cd-phase { position: relative; overflow: hidden; gap: var(--cd-sp-4); padding: var(--cd-sp-6); background: var(--cd-white); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: var(--cd-radius-panel); box-shadow: 0 1px 2px color-mix(in srgb, var(--cd-blue-900) 6%, transparent), 0 12px 32px -16px color-mix(in srgb, var(--cd-blue-900) 22%, transparent); transition: var(--cd-tr-lift); }
body .cd-phase::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cd-grad-text); transform: scaleX(0); transform-origin: left; transition: transform var(--cd-dur-slow) var(--cd-ease); }
body .cd-phase:hover { box-shadow: 0 2px 4px color-mix(in srgb, var(--cd-blue-900) 8%, transparent), 0 24px 48px -20px color-mix(in srgb, var(--cd-blue-900) 34%, transparent); }
body .cd-phase:hover::before { transform: scaleX(1); }
/* step number: outline-only numeral above the title (it fills with colour on hover) */
body .cd-phase__num { position: static; width: auto; height: auto; margin: 0 0 calc(var(--cd-sp-2) * -1); background: none; border-radius: 0; font-size: 48px; line-height: 1; font-weight: var(--cd-fw-extrabold); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--cd-blue-600) 38%, transparent); pointer-events: none; transition: -webkit-text-stroke-color var(--cd-dur) var(--cd-ease); }
body .cd-phase:hover .cd-phase__num { -webkit-text-stroke-color: var(--cd-blue-600); }
body .cd-phase .cd-box__title { position: relative; max-width: none; margin: 0; font-size: var(--cd-fs-lead); line-height: var(--cd-lh-snug); font-weight: var(--cd-fw-bold); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; min-height: 4.2em; }
/* illustration stage */
body .cd-phase__img { height: var(--cd-h-phase-img); padding: var(--cd-sp-3); object-fit: contain; background: radial-gradient(120% 90% at 50% 0%, var(--cd-blue-50) 0%, color-mix(in srgb, var(--cd-blue-100) 70%, var(--cd-white)) 100%); border-radius: var(--cd-radius-card); transition: transform var(--cd-dur-slow) var(--cd-ease); }
body .cd-phase:hover .cd-phase__img { transform: scale(1.035); }
body .cd-phase .cd-box__text { color: color-mix(in srgb, var(--cd-blue-900) 82%, var(--cd-white)); line-height: var(--cd-lh-body); }
/* CTA: quiet text link with an arrow that slides on hover */
/* Phase "Tìm hiểu thêm": a real button as in Figma (full card width, light-blue fill, dark-blue label), standard 48px button metrics from base.css */
html body .cd-phase .cd-phase__cta, html body .cd-phase .cd-btn.cd-phase__cta { align-self: stretch; margin-top: auto; padding-inline: var(--cd-sp-4); white-space: nowrap; color: var(--cd-blue-900); background: var(--cd-blue-100); border: 0; border-radius: var(--cd-radius-btn); box-shadow: none; transition: background-color var(--cd-dur-fast) var(--cd-ease), color var(--cd-dur-fast) var(--cd-ease); }
body .cd-phase:hover .cd-phase__cta::after, body .cd-phase__cta:hover::after { transform: translateX(4px); }
body .cd-phase .cd-phase__cta:hover, body .cd-phase .cd-phase__cta:focus-visible { color: var(--cd-white); background: var(--cd-blue-600); }

/* Bricks lazy-load hides background-image until it observes the element; keep the quality-card head gradient always on */
.cd-qcard .cd-qcard__head, .cd-qcard .cd-qcard__head.bricks-lazy-hidden { background-image: linear-gradient(180deg, var(--cd-blue-600), var(--cd-blue-900)) !important; }

/* CTA panel (about / manufacturing): the uppercase + icon buttons are wider than the old 496px text column, so they wrapped onto two lines with unequal widths.
   Widen the column and lay the two buttons out as an equal-width pair; on narrow screens stack them full width. */
@media (min-width: 992px) {
	html body .cd-cta__body.brxe-block { max-width: 700px; }
	html body .cd-cta .cd-cta__actions.brxe-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cd-sp-4); align-items: stretch; }
}
html body .cd-cta .cd-cta__actions .cd-btn { justify-content: center; white-space: nowrap; }
@media (max-width: 575px) { html body .cd-cta .cd-cta__actions.brxe-block { display: grid; grid-template-columns: 1fr; } html body .cd-cta .cd-cta__actions .cd-btn { padding-inline: var(--cd-sp-3); letter-spacing: .01em; } }

/* quality cards: body copy at the site's 16px (was 14px), title 24px */
.cd-qcard .cd-qcard__num, .cd-qcard .cd-qcard__text, .cd-qcard .cd-qcard__label, .cd-qcard .cd-qcard__list { font-size: var(--cd-fs-body); }
.cd-qcard .cd-qcard__title { font-size: var(--cd-fs-h2); }
/* quality cards: heading colour (brand blue, bold) clearly apart from body copy (neutral ink) */
.cd-qcard .cd-qcard__label { color: var(--cd-blue-600); font-weight: var(--cd-fw-bold); }
.cd-qcard .cd-qcard__text, .cd-qcard .cd-qcard__list { color: var(--cd-ink); }
.cd-qcard .cd-qcard__list li::marker { color: var(--cd-blue-600); }
.cd-qcard .cd-qcard__label { margin-top: var(--cd-sp-2); }

/* ---------- colour hierarchy, whole site: headings stay brand blue, running body copy is neutral ink ---------- */
body :is(.cd-box__text, .cd-hero__lead, .cd-fcard__text, .cd-rdtile__text, .cd-ahero__lead, .cd-fpanel__lead, .cd-ccard__text, .cd-chero__lead, .cd-qhead__lead,
	.cd-ohero__lead, .cd-ohero__fx, .cd-pcard__text, .cd-pcard__cats, .cd-kitcol__text, .cd-head__lead, .cd-b-card__text, .cd-b-hero__lead, .cd-c-topic__text,
	.cd-c-form__lead, .cd-hero__stat-label, .cd-fstat__label, .cd-cstat__label, .cd-qcard__text, .cd-qcard__list):not(.cd-ink-skip) { color: var(--cd-ink); } /* :not() lifts specificity above per-element Bricks rules such as .cd-hero__lead.brxe-text-basic */

/* ---- QC card track (Figma "Frame 151"): single-panel cards, centred uppercase title; the card at the snap position is the blue one, the next is white.
   Round pale-blue arrows sit on the left edge and in the gap between the two visible cards. ---- */
html body .cd-qtrack.brxe-block { --cd-qgap: var(--cd-sp-6); grid-auto-columns: calc((100% - var(--cd-qgap)) / 2); gap: var(--cd-qgap); align-items: stretch; padding-bottom: 0; }
html body .cd-qtrack .cd-qcard.brxe-block { display: flex; flex-direction: column; min-height: 310px; padding: var(--cd-sp-6) 48px 28px; border-radius: var(--cd-radius-panel); background: var(--cd-white); box-shadow: none; transition: background-color var(--cd-dur) var(--cd-ease); }
html body .cd-qtrack .cd-qcard .cd-qcard__head.brxe-block { display: block; padding: 0 0 var(--cd-sp-3); background: none !important; text-align: center; } /* beats the older !important lazy-hidden gradient rule on the head */
html body .cd-qtrack .cd-qcard__num { display: none; } /* number is decorative (the Figma card has none); an absolute sr-only element would escape the scroller and widen the page */
html body .cd-qtrack .cd-qcard__title { margin: 0; font-size: 28px; line-height: 1.25; font-weight: var(--cd-fw-medium); text-transform: uppercase; text-align: center; color: var(--cd-blue-900); }
html body .cd-qtrack .cd-qcard__body.brxe-block { padding: 0; gap: var(--cd-sp-2); }
html body .cd-qtrack .cd-qcard__label { color: var(--cd-blue-600); }
html body .cd-qtrack .cd-qcard__list li::marker { color: var(--cd-blue-600); }
html body .cd-qtrack .cd-qcard.brxe-block.is-active { background: linear-gradient(180deg, var(--cd-blue-600), var(--cd-blue-900)); }
html body .cd-qtrack .cd-qcard.is-active :is(.cd-qcard__title, .cd-qcard__text, .cd-qcard__label, .cd-qcard__list) { color: var(--cd-white); }
html body .cd-qtrack .cd-qcard.is-active .cd-qcard__list li::marker { color: var(--cd-white); }

@media (min-width: 992px) {
	html body .cd-qtrack.brxe-block { --cd-qgap: 104px; }
	html body .cd-carousel:has(> .cd-qtrack) { position: relative; }
	html body .cd-carousel:has(> .cd-qtrack) > .cd-carousel__nav { position: absolute; inset: 0; display: block; pointer-events: none; }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn:not(.cd-carousel__btn--toggle) { position: absolute; top: 50%; z-index: 2; width: 70px; height: 70px; color: var(--cd-blue-900); background: color-mix(in srgb, var(--cd-blue-600) 14%, var(--cd-white)); border: 0; pointer-events: auto; transform: translate(-50%, -50%); }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn[aria-label="Trước"] { left: 0; }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn[aria-label="Tiếp"] { left: 50%; }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn:not(.cd-carousel__btn--toggle):hover { background: var(--cd-blue-600); color: var(--cd-white); }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn:not(.cd-carousel__btn--toggle):active { transform: translate(-50%, -50%) scale(.94); }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn:not(.cd-carousel__btn--toggle) svg { display: none; }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn:not(.cd-carousel__btn--toggle)::before { content: ""; width: 34px; height: 22px; background-color: currentColor; -webkit-mask: var(--cd-btn-icon) center / contain no-repeat; mask: var(--cd-btn-icon) center / contain no-repeat; }
	html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn[aria-label="Trước"]::before { transform: scaleX(-1); }
}
@media (min-width: 992px) and (max-width: 1199px) { html body .cd-qtrack.brxe-block { --cd-qgap: 72px; } html body .cd-carousel:has(> .cd-qtrack) .cd-carousel__btn:not(.cd-carousel__btn--toggle) { width: 56px; height: 56px; } }
@media (max-width: 991px) { html body .cd-qtrack .cd-qcard.brxe-block { padding: var(--cd-sp-5); } html body .cd-qtrack .cd-qcard__title { font-size: 22px; } }

/* R&D photo slider is full-bleed (design: 1440 wide, centre photo 789px); the .cd-carousel wrapper is created by carousel.js */
#rd .cd-carousel { position: relative; left: 50%; translate: -50% 0; width: 100vw; max-width: 100vw; margin: 0; }
html body .cd-carousel:has(> .cd-qtrack) { width: 100%; max-width: 100%; min-width: 0; }
html body .cd-qtrack.brxe-block { max-width: 100%; }
@media (max-width: 991px) { html body .cd-qtrack.brxe-block { --cd-qgap: var(--cd-sp-4); grid-auto-columns: 88%; } }

/* ODM page, closing CTA (#bat-dau): the importer drops the section-level and image rules, so they live here (white text needs the blue band) */
.cd-sec.cd-octa { padding: 0; background: linear-gradient(180deg, var(--cd-blue-600), var(--cd-blue-900)); overflow: hidden; }
img.cd-octa__img { display: block; width: 100% !important; max-width: none; height: 100%; object-fit: cover; object-position: left bottom; }
.cd-octa__text { color: var(--cd-white) !important; }

/* Home > Quy trình 5 phase: cards sit close together as in Figma (233px cards, ~9px apart) */
@media (min-width: 1200px) { #quy-trinh .cd-grid--5 { gap: var(--cd-sp-2-5); } } /* home + ODM: same tight gap */

/* Home > Giá trị cốt lõi (Figma 412:4062 + Group 151/156/157/158): everything lives in the right half (612px from x=708);
   heading inset 24px to line up with the card text; 2x2 cards 296x248 on --cd-blue-100, 20px apart; lead hidden as in Figma.
   DOM order is Khoa học, Minh bạch, An toàn, Đồng hành, so the grid flows by column to read Khoa học | An toàn / Minh bạch | Đồng hành. */
@media (min-width: 992px) {
	body.home #gia-tri > .cd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 612px); column-gap: var(--cd-sp-6); row-gap: var(--cd-sp-5); }
	body.home #gia-tri .cd-head { grid-column: 2; padding-inline: var(--cd-sp-6); margin: 0; }
	body.home #gia-tri .cd-grid--4 { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: var(--cd-sp-5); }
}
body.home #gia-tri .cd-head__lead { display: none; }
body.home #gia-tri .cd-box { min-height: 248px; gap: var(--cd-sp-1); padding: var(--cd-sp-6); background: var(--cd-blue-100); border: 0; }
body.home #gia-tri img.cd-box__icon { width: 75px !important; height: 75px; margin-bottom: var(--cd-sp-4); }
body.home #gia-tri .cd-box__title { margin: 0; font-size: 21px; line-height: 1.4; white-space: nowrap; /* Figma 24px in Be Vietnam = one line; Google Sans Flex is wider, 21px keeps it on one line */ font-weight: var(--cd-fw-bold); text-transform: uppercase; color: var(--cd-blue-900); }

/* Quy trình (home + ODM) + home Factory tour heads (Figma 121:1274, 76:142): one row, two columns. Eyebrow + title on the left,
   lead on the right, bottom-aligned with the title (process lead 608px wide, factory lead 384px pushed to the right edge). */
@media (min-width: 992px) {
	body.home #factory .cd-head, #quy-trinh .cd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--cd-sp-16); row-gap: var(--cd-sp-2); align-items: end; max-width: none; }
	body.home #factory .cd-head__eyebrow, #quy-trinh .cd-head__eyebrow { grid-column: 1; grid-row: 1; }
	body.home #factory .cd-head__title, #quy-trinh .cd-head > :is(.cd-head__title, h2) { grid-column: 1; grid-row: 2; margin: 0; }
	body.home #factory .cd-head__lead, #quy-trinh .cd-head__lead { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; max-width: 608px; }
	body.home #factory .cd-head__lead { justify-self: end; max-width: 384px; }
}

/* Home > Factory tour cards: all four taller by the same amount, Figma ratio 587x376 (was a flat 300px) */
@media (min-width: 768px) { body.home #factory .cd-zone { min-height: 0; aspect-ratio: 587 / 376; } }
/* Factory sits on blue but its Bricks section has no .cd-sec--blue class, so the home "dark lead" rule painted the lead #333; Figma has it white */
body.home #factory :is(.cd-head__eyebrow, .cd-head__lead) { color: var(--cd-white); }

/* Home > Giá trị cốt lõi: lab photo (transparent webp) fills the left half, spanning the heading + the 2x2 cards */
body.home #gia-tri .brxe-image.cd-values__img { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; object-fit: contain; }
@media (min-width: 992px) { body.home #gia-tri .cd-values__img { grid-column: 1; grid-row: 1 / 3; align-self: center; } }
@media (max-width: 991px) { body.home #gia-tri .brxe-image.cd-values__img { max-width: 360px; margin-bottom: var(--cd-sp-6); } }

/* CTA band body (global class cd-cta__body, e.g. brxe-xl816q on Năng lực sản xuất): side padding larger than top/bottom */
html body .brxe-block.cd-cta__body { padding: var(--cd-sp-10) var(--cd-sp-16); }
@media (max-width: 767px) { html body .brxe-block.cd-cta__body { padding: var(--cd-sp-6) var(--cd-sp-8); } }
/* the photo is cropped flat on its left and bottom edges (sleeves): fade those two edges into the section background */
body.home #gia-tri .cd-values__img {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(0deg, transparent 0, #000 12%); -webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(0deg, transparent 0, #000 12%); mask-composite: intersect; }

/* ODM > kit band columns: much more breathing room (was 32px 32px 24px). Same on all three so the titles and copy stay on one line across. */
@media (min-width: 992px) { html body .brxe-block.cd-kitcol { padding: var(--cd-sp-16) var(--cd-sp-14, 56px) var(--cd-sp-12); } }
@media (max-width: 991px) { html body .brxe-block.cd-kitcol { padding: var(--cd-sp-12) var(--cd-sp-8) var(--cd-sp-10); } }

/* ODM kit band: no bottom padding, the kit columns run straight into the next section (Bricks' section padding was overriding the section CSS) */
html body .brxe-section.cd-sec.cd-kitband { padding-bottom: 0; }
/* ODM Quy trình head: same title type as home (46px / 800 / 1.26, uppercase) */
body:not(.home) #quy-trinh .cd-head > :is(.cd-head__title, h2) { font-size: var(--cd-fs-h1-md); line-height: var(--cd-lh-title); font-weight: var(--cd-fw-extrabold); text-transform: uppercase; text-wrap: balance; }
@media (max-width: 991px) { body:not(.home) #quy-trinh .cd-head > :is(.cd-head__title, h2) { font-size: var(--cd-fs-h2-lg); } }
@media (max-width: 767px) { body:not(.home) #quy-trinh .cd-head > :is(.cd-head__title, h2) { font-size: var(--cd-fs-h2-md); } }
/* ...and the same colours as home: dark-blue eyebrow, gradient title (padded so Vietnamese marks are not clipped by background-clip:text) */
body:not(.home) #quy-trinh .cd-head__eyebrow { color: var(--cd-blue-900); }
html body:not(.home) #quy-trinh .cd-head > :is(.cd-head__title, h2) { padding-block: .18em; margin-block: -.18em; background: var(--cd-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* ODM kit band: every column now carries the bottles photo above its button, so the photo-to-button spacing applies to all three (was blue only) */
.cd-kitcol__img + .cd-kitcol__cta { margin-top: 0; }

/* ODM: kit band has no top padding either (it runs flush on both edges); the space above it now comes from Quy trình's bottom padding, doubled
   from the half-step --flow value (section-y / 2) to a full section step: 120 / 80 / 64px */
html body .brxe-section.cd-sec.cd-kitband { padding-top: 0; }
html body #quy-trinh:has(+ .cd-kitband) { padding-bottom: var(--cd-section-y); }

/* ODM hero title "Từ ý tưởng đến sản phẩm / mỹ phẩm mang dấu ấn riêng": always two lines. Its font size is fluid, so the cap is in em
   (2nd line = 15.6em, whole title = 29.6em): 16.2em fits the longer line but never the whole title. Narrow phones shrink the type to keep two lines. */
html body .cd-ohero__title.brxe-heading { max-width: 16.2em; margin-inline: auto; text-wrap: balance; }
@media (max-width: 600px) { html body .cd-ohero__title.brxe-heading { font-size: min(32px, calc((100vw - 2 * var(--cd-gutter)) / 16.2)); } }
