/* A photographic factory visit, scoped to strength.html. Existing navigation,
   source materials, video modal and the 1280px overview remain intact. */
body.qiai-factory-experience {
  --fx-ink: #1b302d;
  --fx-muted: #61716b;
  --fx-line: #d4ddd7;
  --fx-green: #315f50;
  --fx-paper: #fafbf8;
  --fx-wash: #edf1ed;
}
body.qiai-factory-experience .fx-experience { background: var(--fx-paper); color: var(--fx-ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body.qiai-factory-experience .fx-experience :where(h1,h2,h3,p,figure) { margin: 0; }
body.qiai-factory-experience .fx-experience :where(a) { color: inherit; }
body.qiai-factory-experience .fx-experience :where(a,button,summary):focus-visible { outline: 3px solid #86b59a; outline-offset: 6px; }
body.qiai-factory-experience .fx-container { width: calc(100% - 320px); max-width: 1200px; margin: 0 auto; }
body.qiai-factory-experience .fx-experience .fx-section { padding: 96px 0 !important; background: var(--fx-paper) !important; scroll-margin-top: 60px; }
/* The site already reserves 92px on the document; add clearance for the route bar. */
body.qiai-factory-experience .fx-experience [id] { scroll-margin-top: 60px; }
body.qiai-factory-experience .fx-experience .fx-eyebrow { font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: .12em; margin-bottom: 24px; }
body.qiai-factory-experience .fx-experience h2 { font-family: inherit !important; font-size: 42px !important; line-height: 1.4 !important; font-weight: 500 !important; letter-spacing: -.025em; color: var(--fx-ink) !important; }
body.qiai-factory-experience .fx-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
body.qiai-factory-experience .fx-heading__note { max-width: 390px; font-size: 16px; line-height: 1.95; color: var(--fx-muted); padding-bottom: 6px; }

/* The first viewport is the production floor itself, rather than a brochure. */
body.qiai-factory-experience .fx-experience .fx-hero { position: relative; isolation: isolate; min-height: 748px; height: calc(100vh - 64px); max-height: 920px; padding: 0 !important; overflow: hidden; background: #182e32 !important; color: #fff; }
body.qiai-factory-experience .fx-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
body.qiai-factory-experience .fx-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(6,24,26,.78) 0%,rgba(6,24,26,.55) 31%,rgba(6,24,26,.09) 66%),linear-gradient(0deg,rgba(6,24,26,.6),transparent 28%); }
body.qiai-factory-experience .fx-hero__content { position: absolute; top: 50%; left: max(80px,calc((100% - 1200px)/2)); transform: translateY(-55%); max-width: 650px; }
body.qiai-factory-experience .fx-hero .fx-eyebrow { color: #e7f0ec; display: flex; align-items: center; gap: 18px; margin-bottom: 34px; font-size: 11px; }
body.qiai-factory-experience .fx-hero .fx-eyebrow span { width: 40px; height: 1px; background: #becfc5; }
body.qiai-factory-experience .fx-hero h1 { color: #fff; font-family: inherit; font-size: 68px; font-weight: 500; line-height: 1.2; letter-spacing: -.035em; text-shadow: 0 2px 16px #10232026; margin: 0 0 28px; }
body.qiai-factory-experience .fx-hero h1 > span { display: block; font-size: 22px; font-weight: 400; letter-spacing: .05em; line-height: 1.6; margin-bottom: 18px; }
body.qiai-factory-experience .fx-hero__lead { color: #e5edeb; font-size: 17px; font-weight: 400; line-height: 1.85; }
body.qiai-factory-experience .fx-hero__actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
body.qiai-factory-experience .fx-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; padding: 17px 22px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .2s, transform .2s; }
body.qiai-factory-experience .fx-button--light { background: #f5f8f2; color: #1e3931; }
body.qiai-factory-experience .fx-button:hover { background: #dce7dc; transform: translateY(-2px); }
body.qiai-factory-experience .fx-button:active { transform: translateY(1px); }
body.qiai-factory-experience .fx-text-link { padding: 14px 0; border-bottom: 1px solid #d9e8df80; color: #fff; text-decoration: none; font-size: 15px; }
body.qiai-factory-experience .fx-text-link span { margin-left: 14px; }
body.qiai-factory-experience .fx-hero__foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 28px max(80px,calc((100% - 1200px)/2)); border-top: 1px solid #ffffff30; background: #0c252833; font-size: 12px; letter-spacing: .025em; }
body.qiai-factory-experience .fx-hero__foot > span { color: #d9e4df; }
body.qiai-factory-experience .fx-hero__foot p { color: #e9eeeb; }
body.qiai-factory-experience .fx-hero__foot a { text-decoration: none; padding: 4px 0; color: #fff; }
body.qiai-factory-experience .fx-hero__foot a span { margin-left: 18px; }

/* A real route through the page; no simulated live monitoring. */
body.qiai-factory-experience .fx-route { position: sticky; top: 64px; z-index: 80; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 27px; background: #fafbf8; border-bottom: 1px solid var(--fx-line); box-shadow: 0 6px 16px #10281e04; }
body.qiai-factory-experience .fx-route__label { font-size: 13px; padding-right: 22px; border-right: 1px solid var(--fx-line); }
body.qiai-factory-experience .fx-route a { font-size: 13px; text-decoration: none; padding: 25px 0; }
body.qiai-factory-experience .fx-route a b { font-size: 11px; font-weight: 400; margin-right: 7px; color: #798d82; font-variant-numeric: tabular-nums; }
body.qiai-factory-experience .fx-route a:hover { color: #28614a; box-shadow: inset 0 -2px #315f50; }
body.qiai-factory-experience .fx-route__contact { color: var(--fx-green) !important; font-weight: 600; }

body.qiai-factory-experience .fx-photo { min-width: 0; }
body.qiai-factory-experience .fx-photo > a { display: block; overflow: hidden; }
body.qiai-factory-experience .fx-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
body.qiai-factory-experience .fx-photo > a:hover img { transform: scale(1.025); }
body.qiai-factory-experience .fx-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 0; font-size: 12px; line-height: 1.75; color: var(--fx-muted); }
body.qiai-factory-experience .fx-photo figcaption strong { font-size: 16px; color: var(--fx-ink); font-weight: 500; }
body.qiai-factory-experience .fx-photo figcaption a { text-decoration: none; }
body.qiai-factory-experience .fx-visit__images { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 26px; align-items: stretch; }
body.qiai-factory-experience .fx-visit__images .fx-photo > a { height: 452px; }
body.qiai-factory-experience .fx-photo--window img { object-position: 50% 50%; }
body.qiai-factory-experience .fx-photo--corridor img { object-position: 50% 50%; }
body.qiai-factory-experience .fx-scale { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); margin-top: 48px; padding: 30px 0 6px; border-top: 1px solid var(--fx-line); }
body.qiai-factory-experience .fx-scale > p { font-size: 14px; line-height: 1.7; color: var(--fx-muted); padding-right: 28px; }
body.qiai-factory-experience .fx-scale > p strong { font-size: 22px; font-weight: 500; color: var(--fx-ink); }
body.qiai-factory-experience .fx-scale small { display: block; font-size: 10px; margin-top: 14px; color: var(--fx-muted); }
body.qiai-factory-experience .fx-scale > div { padding-left: 40px; border-left: 1px solid var(--fx-line); }
body.qiai-factory-experience .fx-scale > div > strong { display: block; font-size: 46px; font-weight: 400; letter-spacing: -.035em; line-height: 1.35; font-variant-numeric: tabular-nums; }
body.qiai-factory-experience .fx-scale strong span { font-size: 15px; margin-left: 6px; }
body.qiai-factory-experience .fx-scale > div > span { display: block; font-size: 13px; color: var(--fx-muted); margin-top: 10px; }

body.qiai-factory-experience .fx-experience .fx-production { background: #e9efec !important; }
body.qiai-factory-experience .fx-process-film { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: center; gap: 56px; }
body.qiai-factory-experience .fx-film video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #192b2a; }
body.qiai-factory-experience .fx-film figcaption { font-size: 14px; line-height: 1.8; padding-top: 14px; }
body.qiai-factory-experience .fx-film figcaption span { display: block; font-size: 11px; color: var(--fx-muted); }
body.qiai-factory-experience .fx-section-code { display: block; font-size: 10px; letter-spacing: .16em; margin-bottom: 24px; color: #6b8175; }
body.qiai-factory-experience .fx-process-note h3 { font-size: 30px; font-weight: 500; line-height: 1.6; margin-bottom: 20px; }
body.qiai-factory-experience .fx-process-note p { font-size: 15px; line-height: 1.95; color: var(--fx-muted); }
body.qiai-factory-experience .fx-arrow-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; margin-top: 20px; font-size: 14px; text-decoration: none; border-bottom: 1px solid #b7c9be; color: var(--fx-green) !important; }
body.qiai-factory-experience .fx-arrow-link:hover { border-color: var(--fx-green); }
body.qiai-factory-experience .fx-process-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; margin-top: 48px; }
body.qiai-factory-experience .fx-process-pair .fx-photo > a { aspect-ratio: 3/2; }

body.qiai-factory-experience .fx-warehouse__layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 66px; align-items: start; }
body.qiai-factory-experience .fx-warehouse__main > a { height: 700px; }
body.qiai-factory-experience .fx-warehouse__main img { object-position: 45% 50%; }
body.qiai-factory-experience .fx-warehouse__copy { padding-top: 12px; }
body.qiai-factory-experience .fx-warehouse__copy h2 { font-size: 38px !important; margin-bottom: 24px; }
body.qiai-factory-experience .fx-warehouse__copy > p:not(.fx-eyebrow) { font-size: 15px; line-height: 1.95; color: var(--fx-muted); }
body.qiai-factory-experience .fx-warehouse__detail { margin-top: 38px; }
body.qiai-factory-experience .fx-warehouse__detail img { aspect-ratio: 16/10; height: auto; }
body.qiai-factory-experience .fx-experience .fx-quality { background: #edf1ee !important; }
body.qiai-factory-experience .fx-quality__hero > a { height: 500px; }
body.qiai-factory-experience .fx-quality__hero img { object-position: 50% 48%; }
body.qiai-factory-experience .fx-existing-labs .photo-showcase-section { padding: 52px 0 0 !important; background: transparent !important; }
body.qiai-factory-experience .fx-existing-labs .photo-showcase-section > div { width: 100%; max-width: none !important; padding: 0 !important; }
body.qiai-factory-experience .fx-existing-labs h2.section-title { font-size: 23px !important; font-weight: 500 !important; margin-bottom: 12px !important; text-align: left; }
body.qiai-factory-experience .fx-existing-labs .section-desc { max-width: none; text-align: left; margin: 0; font-size: 14px !important; }
body.qiai-factory-experience .fx-existing-labs .lab-photo-grid { max-width: none; gap: 24px; }
body.qiai-factory-experience .fx-existing-labs figcaption { font-size: 12px; }

body.qiai-factory-experience .fx-record__identity { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 66px; align-items: center; padding-bottom: 64px; border-bottom: 1px solid var(--fx-line); }
body.qiai-factory-experience .fx-record__identity > div > p:last-child { font-size: 15px; line-height: 1.9; color: var(--fx-muted); margin-top: 22px; }
body.qiai-factory-experience .fx-record__identity img { height: auto; }
body.qiai-factory-experience .fx-existing-opening .factory-video-section { padding: 58px 0 !important; background: transparent !important; }
body.qiai-factory-experience .fx-existing-opening .container { width: 100%; padding: 0; }
body.qiai-factory-experience .fx-existing-opening .factory-video-panel { gap: 48px; }
body.qiai-factory-experience .fx-existing-opening .factory-video-copy h2 { font-size: 26px !important; }
body.qiai-factory-experience .fx-existing-authority .qiai-authority-proof { padding: 42px 0 0 !important; background: transparent !important; border-top: 1px solid var(--fx-line); }
body.qiai-factory-experience .fx-existing-authority .qiai-authority-proof__inner { width: 100%; max-width: none !important; }
body.qiai-factory-experience .fx-existing-authority h2 { font-size: 26px !important; }

/* Existing procurement and GEO material stays readable in native disclosure
   sections, reducing the repeated text blocks in the visual tour. */
body.qiai-factory-experience .fx-experience .fx-library { background: var(--fx-wash) !important; }
body.qiai-factory-experience .fx-company-intro { max-width: 920px; font-size: 15px; color: var(--fx-muted); line-height: 2; margin-bottom: 38px !important; }
body.qiai-factory-experience .fx-dossier { border-top: 1px solid #c3d0c6; }
body.qiai-factory-experience .fx-dossier:last-child { border-bottom: 1px solid #c3d0c6; }
body.qiai-factory-experience .fx-dossier > summary { display: flex; align-items: center; gap: 25px; list-style: none; padding: 30px 0; cursor: pointer; }
body.qiai-factory-experience .fx-dossier > summary::-webkit-details-marker { display: none; }
body.qiai-factory-experience .fx-dossier > summary > span { font-size: 12px; font-variant-numeric: tabular-nums; color: #6d8274; }
body.qiai-factory-experience .fx-dossier > summary strong { font-size: 21px; font-weight: 500; }
body.qiai-factory-experience .fx-dossier > summary em { margin-left: auto; font-size: 12px; color: var(--fx-muted); font-style: normal; }
body.qiai-factory-experience .fx-dossier > summary b { font-size: 23px; font-weight: 300; transition: transform .2s; }
body.qiai-factory-experience .fx-dossier[open] > summary b { transform: rotate(45deg); }
body.qiai-factory-experience .fx-dossier__body { background: #fafbf8; padding: 12px 28px 28px; margin-bottom: 24px; }
body.qiai-factory-experience .fx-dossier__body > section { padding: 44px 0 !important; background: transparent !important; border-bottom: 1px solid var(--fx-line); }
body.qiai-factory-experience .fx-dossier__body > section:last-child { border-bottom: 0; }
body.qiai-factory-experience .fx-dossier__body > section > :is(.container,div[style*="max-width"],.stats-grid,.bases-grid,.production-grid,.rd-list,.honors-grid) { width: 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
body.qiai-factory-experience .fx-dossier__body .section-title { margin-bottom: 24px !important; }
body.qiai-factory-experience .fx-dossier__body :is(.section-title h2,h2.section-title,.stats-header h2,#delivery-evidence h2) { font-size: 27px !important; }
body.qiai-factory-experience .fx-dossier__body :is(.section-title p,.stats-header p) { font-size: 15px !important; }
body.qiai-factory-experience .fx-dossier__body .core-stats :is(h2,p,.stat-label,.stat-number,.stat-unit,.stat-prefix) { color: var(--fx-ink) !important; }
body.qiai-factory-experience .fx-dossier__body .rd-section :is(h2,.rd-metric,.rd-name,.rd-desc) { color: var(--fx-ink) !important; }

body.qiai-factory-experience .fx-visit-cta { position: relative; isolation: isolate; overflow: hidden; }
body.qiai-factory-experience .fx-visit-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; z-index: -2; }
body.qiai-factory-experience .fx-visit-cta__shade { position: absolute; inset: 0; background: #122c2ad1; z-index: -1; }
body.qiai-factory-experience .fx-visit-cta .cta-section { padding: 108px 0 112px !important; background: transparent !important; border: 0; }
body.qiai-factory-experience .fx-visit-cta .cta-section h2 { font-size: 38px !important; color: #fff !important; }
body.qiai-factory-experience .fx-visit-cta .cta-section p { color: #e2ebe5 !important; font-size: 16px !important; margin: 20px 0 34px !important; }
body.qiai-factory-experience .fx-visit-cta .btn-gold { background: #f0f5ed; border-color: #f0f5ed; color: #244c3e; border-radius: 0; padding: 16px 32px; box-shadow: none; }
body.qiai-factory-experience .fx-visit-cta .btn-gold:hover { background: #d4e2d3; color: #244c3e; }

@media (prefers-reduced-motion: reduce) {
  body.qiai-factory-experience .fx-experience :is(img,a,summary b) { transition: none !important; }
  body.qiai-factory-experience .fx-photo > a:hover img { transform: none; }
}
