/* Explicit language choices. Flag colors belong to the national flags. */
.language-bar{display:flex;justify-content:flex-start;align-items:center;gap:5px;min-height:46px;padding:0 clamp(16px,5vw,82px);border-bottom:1px solid var(--line);background:var(--blue);font:13px Calibri,sans-serif}
.language-bar a{display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-bottom:2px solid transparent;color:var(--light)}
.language-bar a:hover,.language-bar a[aria-current="page"]{color:white;border-bottom-color:var(--light)}
.language-bar img{width:24px;height:18px;object-fit:contain;flex:none;border:1px solid rgba(255,255,255,.2)}
.language-short{display:none}
:is(html[lang="de-DE"],html[lang="es-ES"],html[lang="ar-SA"]) h1,
:is(html[lang="de-DE"],html[lang="es-ES"],html[lang="ar-SA"]) h2,
:is(html[lang="de-DE"],html[lang="es-ES"],html[lang="ar-SA"]) h3{overflow-wrap:break-word;hyphens:auto}
html:not([lang="en-US"]) .site-header nav{gap:clamp(10px,1.2vw,20px);font-size:13px}
html:not([lang="en-US"]) .landing-chapters button{overflow-wrap:anywhere;line-height:1.2}
html:not([lang="en-US"]) .landing-copy h2{font-size:clamp(40px,4.4vw,72px)}
html:not([lang="en-US"]) .landing-copy p{max-width:490px}
html:not([lang="en-US"]) .landing-playback button{max-width:100px;white-space:normal}
html:not([lang="en-US"]) .landing-controls{gap:20px}
html:not([lang="en-US"]) .landing-chapters{gap:12px}
html:not([lang="en-US"]) .future-grid h3{font-size:clamp(18px,1.65vw,25px)}
html:not([lang="en-US"]) .sovereign-steps button{overflow-wrap:anywhere}
html:not([lang="en-US"]) .team-role{overflow-wrap:break-word}
html:not([lang="en-US"]) .instrument-header,html:not([lang="en-US"]) .instrument-footer{flex-wrap:wrap;gap:12px}
html[dir="rtl"]{letter-spacing:normal}
html[dir="rtl"] :is(h1,h2,h3,h4,p,span,a,button,label,summary,.eyebrow,.index,.node-label){letter-spacing:normal}
html[dir="rtl"] :is(h1,h2,h3){line-height:1.3;hyphens:none}
html[dir="rtl"] p{line-height:1.7}
html[dir="rtl"] :is(.film-card,.copy-details summary,.advantage-detail summary,.principle-detail summary,.landing-chapters button,.sovereign-steps button,.field input,.field textarea){text-align:start}
/* Keep engineering geometry, photos, logos and process flow diagrams unchanged. */
html[dir="rtl"] :is(.landing-screen,.hero-art,.module-panel,.impact-stage,.energy-system,.deployment-screen,.product-console,.principle-symbol,.sovereign-photo){direction:ltr}
html[dir="rtl"] :is(.landing-copy,.landing-top,.landing-controls,.impact-caption,.impact-link,.impact-step,.system-top,.source-node,.path-node,.destination-node,.energy-tabs,.energy-panel,.system-note,.instrument-header,.instrument-footer,.product-output){direction:rtl}
html[dir="rtl"] .landing-copy{text-align:right}
html[dir="rtl"] .landing-copy h2{line-height:1.25}
html[dir="rtl"] .landing-copy p{line-height:1.6}
html[dir="rtl"] .landing-playback{margin-left:0;margin-right:auto}
html[dir="rtl"] .landing-chapters button:after{transform-origin:right}
html[dir="rtl"] .energy-keywords{direction:ltr}
html[dir="rtl"] .energy-keyword-set span{direction:rtl}
html[dir="rtl"] .future-grid article:first-child{padding-left:22px;padding-right:0}
html[dir="rtl"] .future-grid article+article{border-left:0;border-right:1px solid var(--line)}
html[dir="rtl"] .copy-detail-body,html[dir="rtl"] .dialog-copy,html[dir="rtl"] .application-body{text-align:right}
html[dir="rtl"] .copy-close{left:18px;right:auto}
html[dir="rtl"] .application-tag{margin-right:auto;margin-left:0}
html[dir="rtl"] .molecule,html[dir="rtl"] #product-formula,html[dir="rtl"] a[href^="mailto:"],html[dir="rtl"] #contact-email{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .application-body{padding-left:0;padding-right:54px}
@media(max-width:1180px){
 html:not([lang="en-US"]) .site-header{min-height:78px}
 html:not([lang="en-US"]) .menu-toggle{display:flex;align-items:center;gap:14px;background:none;border:0;color:var(--white);min-height:44px;padding:8px 0}
 html:not([lang="en-US"]) .menu-toggle i{display:block;width:22px;height:10px;border-block:1px solid var(--light)}
 html:not([lang="en-US"]) .site-header #primary-nav{display:none;position:absolute;inset:100% 0 auto;background:var(--blue);padding:20px 5% 25px;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:0;max-height:calc(100vh - 80px);overflow:auto;font-size:17px}
 html:not([lang="en-US"]) .site-header #primary-nav.open{display:flex}
 html:not([lang="en-US"]) .site-header #primary-nav>a{padding-block:13px}
}
@media(max-width:700px){
 .language-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-content:center;padding-inline:12px;gap:4px}
 .language-bar a{padding:8px 4px;gap:5px;min-width:44px;font-size:12px}
 .language-name{display:none}.language-short{display:inline}
 html:not([lang="en-US"]) .landing-screen{min-height:740px;max-height:none}
 html:not([lang="en-US"]) .landing-screen canvas{height:calc(100% - 150px)}
 html:not([lang="en-US"]) .landing-screen:after{height:150px}
 html:not([lang="en-US"]) .landing-copy{top:90px}
 html:not([lang="en-US"]) .landing-copy h2{font-size:clamp(29px,7.4vw,49px);line-height:1.1}
 html:not([lang="en-US"]) .landing-copy p{font-size:15px;line-height:1.4;margin-top:16px;max-width:100%}
 html:not([lang="en-US"]) .landing-top>span{font-size:8px;max-width:44%;line-height:1.4}
 html:not([lang="en-US"]) .landing-top>a{font-size:11px;gap:8px;max-width:52%}
 html:not([lang="en-US"]) .landing-controls{grid-template-columns:1fr;gap:0;bottom:6px}
 html:not([lang="en-US"]) .landing-chapters{gap:0 12px}
 html:not([lang="en-US"]) .landing-chapters button{font-size:11px;min-height:46px}
 html:not([lang="en-US"]) .landing-playback{display:flex;justify-content:flex-end;gap:24px;width:auto;margin:0}
 html:not([lang="en-US"]) .landing-playback button{max-width:none}
 html[dir="rtl"] .landing-copy h2{line-height:1.25;font-size:clamp(30px,8vw,48px)}
 html[dir="rtl"] .landing-copy p{line-height:1.6}
 html[dir="rtl"] .future-grid article:first-child{padding-right:0;padding-left:0}
 html[dir="rtl"] .future-grid article+article{border-right:0}
 html[dir="rtl"] .application-tag{margin-right:35px;margin-left:0}
 html[dir="rtl"] .application-body{padding-right:35px}
 html:not([lang="en-US"]) .energy-tabs button{white-space:normal;gap:12px;text-align:start}
 html:not([lang="en-US"]) .sovereign-slide figcaption{min-height:215px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
 html:not([lang="en-US"]) .landing-screen{height:620px;min-height:620px}
 html:not([lang="en-US"]) .landing-screen canvas{height:calc(100% - 150px)}
 html:not([lang="en-US"]) .landing-screen:after{height:150px}
 html:not([lang="en-US"]) .landing-copy{top:100px;width:46%}
 html:not([lang="en-US"]) .landing-copy h2{font-size:clamp(26px,4vw,38px)}
 html:not([lang="en-US"]) .landing-controls{display:grid;grid-template-columns:1fr;gap:0}
 html:not([lang="en-US"]) .landing-chapters{grid-template-columns:repeat(4,minmax(0,1fr))}
 html:not([lang="en-US"]) .landing-playback{display:flex;justify-content:flex-end;margin:0;gap:24px}
}

/* Arabic copy follows RTL; the established picture composition stays unchanged. */
html[dir="rtl"] .hero-content{direction:ltr}
html[dir="rtl"] .hero-content>*{direction:rtl;text-align:right}
html[dir="rtl"] .hero-content :is(.hero-lead,.hero-description,.hero-actions){margin-inline-start:0}
html[dir="rtl"] .module-callout{direction:rtl;text-align:right}
html[dir="rtl"] .impact-selector button{text-align:right}
html[dir="rtl"] :is(.copy-dialog-body,.form-status,.technical-pathways dd){overflow-wrap:break-word;line-height:1.7}
.syngas-spec strong,.reaction{overflow-wrap:anywhere}
.syngas-spec bdi,.reaction bdi{white-space:normal}
.language-bar a,.menu-toggle,.landing-controls button,.sovereign-controls button{touch-action:manipulation}
.landing-screen canvas{background-position:center;background-repeat:no-repeat;background-color:var(--blue)}
.landing-film[data-renderer="poster"] canvas{opacity:1}

/* Text, picture and controls have separate rows on phones and compact tablets.
   All eight copy panels share a grid cell, reserving space for the longest one. */
@media(max-width:1000px){
 html .landing-film .landing-screen{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto clamp(310px,55vw,480px) auto;height:auto;min-height:0;max-height:none;background:var(--blue);overflow:hidden}
 html .landing-film .landing-screen:after{display:none}
 html .landing-film .landing-top{grid-row:1;position:relative;inset:auto;margin:12px 24px 0;gap:16px;min-height:44px}
 html .landing-film .landing-top>span{font-size:9px;line-height:1.5;max-width:48%;letter-spacing:.06em}
 html .landing-film .landing-top>a{font-size:12px;line-height:1.4;max-width:48%;gap:10px}
 html .landing-film .landing-copy{grid-row:2;display:grid;position:relative;inset:auto;width:auto;margin:24px 24px 20px;transform:none;min-width:0}
 html .landing-film .landing-copy article{grid-area:1/1;position:relative;inset:auto;min-width:0;transform:none}
 html .landing-film .landing-copy h2{font-size:clamp(30px,6.4vw,54px);line-height:1.12;max-width:760px;overflow-wrap:break-word}
 html .landing-film .landing-copy p{max-width:680px;font-size:16px;line-height:1.5;margin-top:18px}
 html[dir="rtl"] .landing-film .landing-copy h2{line-height:1.3;letter-spacing:normal}
 html[dir="rtl"] .landing-film .landing-copy p{line-height:1.7}
 html .landing-film .landing-screen canvas{grid-row:3;position:relative;inset:auto;width:100%;height:100%;min-width:0;min-height:0}
 html .landing-film .landing-controls{grid-row:4;position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);margin:4px 24px 8px;gap:0;min-width:0}
 html .landing-film .landing-chapters{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 12px;width:100%;max-width:none;min-width:0}
 html .landing-film .landing-chapters button{font-size:12px;line-height:1.35;min-height:48px;min-width:44px;overflow-wrap:anywhere;padding-block:16px 8px}
 html .landing-film .landing-playback{display:flex;justify-content:flex-end;margin:0;gap:24px;width:auto}
 html .landing-film .landing-playback button{font-size:12px;min-height:48px;max-width:none;line-height:1.4}
 html .landing-film .landing-fallback{position:relative;inset:auto;margin:16px 24px}
 .site-header #primary-nav{max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
 .copy-dialog,.film-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
 .language-bar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 .hero-actions,.form-actions{flex-wrap:wrap}
 .form-actions .button{max-width:100%;white-space:normal;text-align:start}
 .copy-dialog-body .syngas-spec{padding-inline:12px}
 .copy-dialog-body .syngas-spec strong{font-size:16px}
 .person-card,.work-card,.path-node,.source-node,.destination-node{min-width:0}
 .energy-tabs button{white-space:normal;text-align:start}
 html[dir="rtl"] .hero-content{direction:rtl}
}
@media(max-width:380px){
 html .landing-film .landing-copy h2{font-size:30px}
 html .landing-film .landing-controls{margin-inline:16px}
 html .landing-film .landing-chapters{gap:0 10px}
 .language-bar{gap:4px}.language-bar a{padding-inline:4px;min-width:44px}
}

/* Calibri remains the Latin face; sans-serif supplies native CJK glyphs locally.
   Chinese has no letter spacing or automatic hyphenation. Do not fetch fonts. */
html[lang="zh-CN"] :is(h1,h2,h3,h4,p,span,a,button,label,summary,.eyebrow,.index,.node-label){letter-spacing:normal;hyphens:none;word-break:normal;line-break:strict}
html[lang="zh-CN"] :is(h1,h2,h3,h4){line-height:1.3;overflow-wrap:break-word}
html[lang="zh-CN"] p{line-height:1.75}
html[lang="zh-CN"] .landing-copy h2{font-size:clamp(38px,4.1vw,64px);line-height:1.3}
html[lang="zh-CN"] :is(.copy-dialog-body,.technical-pathways dd,.form-status){line-height:1.75;overflow-wrap:break-word}
html[lang="zh-CN"] .future-grid h3{font-size:clamp(21px,2vw,29px)}
html[lang="zh-CN"] .landing-chapters button{word-break:keep-all;overflow-wrap:normal}
@media(max-width:1000px){
 html[lang="zh-CN"] .landing-film .landing-copy h2{font-size:clamp(30px,6vw,50px);line-height:1.3}
 html[lang="zh-CN"] .landing-film .landing-copy p{line-height:1.75}
}
