/*
Theme Name: Norbert Welding Portfolio
Theme URI: https://example.com/
Author: OpenAI for Norbert Farkas
Description: One-page industrial portfolio theme for welding technology and quality control.
Version: 12.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: norbert-welding
*/
:root{--bg:#090d10;--panel:#11171c;--panel2:#151d23;--text:#edf2f4;--muted:#9ba8b0;--line:#2a343b;--accent:#d14a32;--accent2:#ff765e;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(9,13,16,.88);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.06)}.nav{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:800;letter-spacing:.08em}.brand span{color:var(--accent2)}.nav-links{display:flex;gap:24px;color:#c5cdd2;font-size:.92rem}.nav-links a:hover{color:#fff}.hero{min-height:82vh;display:grid;align-items:center;position:relative;overflow:hidden;border-bottom:1px solid var(--line)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,13,16,.97) 0%,rgba(9,13,16,.82) 55%,rgba(9,13,16,.4) 100%),repeating-linear-gradient(0deg,transparent 0 59px,rgba(255,255,255,.025) 60px),repeating-linear-gradient(90deg,transparent 0 59px,rgba(255,255,255,.025) 60px)}.hero:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(209,74,50,.3);border-radius:50%;right:-100px;top:80px;box-shadow:0 0 100px rgba(209,74,50,.08)}.hero-inner{position:relative;z-index:2;padding:90px 0}.eyebrow{text-transform:uppercase;letter-spacing:.2em;color:var(--accent2);font-size:.78rem;font-weight:800}.hero h1{font-size:clamp(3rem,8vw,6.8rem);line-height:.9;margin:18px 0 24px;letter-spacing:-.055em;max-width:900px}.hero h1 small{display:block;color:#8f9ba2;font-size:.34em;line-height:1.3;letter-spacing:.02em;margin-top:18px;font-weight:600}.lead{max-width:760px;color:#c0c9ce;font-size:1.12rem}.hero-actions{display:flex;gap:12px;margin-top:34px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;gap:9px;padding:12px 18px;border:1px solid var(--line);border-radius:4px;font-weight:700;font-size:.92rem}.btn.primary{background:var(--accent);border-color:var(--accent)}.btn:hover{transform:translateY(-1px)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);margin-top:-1px}.stat{background:var(--panel);padding:28px}.stat b{font-size:1.7rem;display:block}.stat span{color:var(--muted);font-size:.9rem}.section{padding:96px 0;border-bottom:1px solid var(--line)}.section-head{display:grid;grid-template-columns:260px 1fr;gap:50px;margin-bottom:52px}.section-head h2{margin:0;font-size:clamp(2rem,4vw,3.4rem);line-height:1}.section-head p{margin:0;color:var(--muted);max-width:760px}.timeline{position:relative}.timeline:before{content:"";position:absolute;left:152px;top:0;bottom:0;width:1px;background:var(--line)}.job{display:grid;grid-template-columns:125px 1fr;gap:56px;position:relative;padding:0 0 62px}.job:last-child{padding-bottom:0}.job:before{content:"";position:absolute;left:146px;top:8px;width:11px;height:11px;background:var(--accent);border-radius:50%;box-shadow:0 0 0 6px var(--bg)}.job-date{color:#7f8c94;font-size:.88rem;padding-top:2px}.job-card{background:linear-gradient(145deg,var(--panel),#0e1418);border:1px solid var(--line);padding:30px;border-radius:8px}.job-card h3{font-size:1.65rem;margin:0 0 4px}.role{color:var(--accent2);font-weight:700;margin-bottom:18px}.job-card p{color:#b8c2c8;margin:0 0 15px}.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.tag{font-size:.78rem;padding:6px 9px;border:1px solid #344149;color:#b8c2c8;border-radius:3px;background:#0b1013}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.skill-card{border:1px solid var(--line);background:var(--panel);padding:26px;border-radius:7px}.skill-card .num{font-size:.75rem;color:var(--accent2);font-weight:800;letter-spacing:.15em}.skill-card h3{margin:10px 0}.skill-card p{color:var(--muted);font-size:.92rem;margin:0}.edu-list{display:grid;gap:14px}.edu{display:grid;grid-template-columns:140px 1fr auto;gap:25px;align-items:center;border-top:1px solid var(--line);padding:24px 0}.edu:last-child{border-bottom:1px solid var(--line)}.edu-year{color:var(--muted)}.edu h3{margin:0 0 4px}.edu p{margin:0;color:var(--muted)}.badge{font-size:.75rem;border:1px solid #3b474e;padding:6px 9px;border-radius:20px;color:#c5cdd2}.cert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cert{background:#fff;border-radius:6px;overflow:hidden;cursor:pointer;position:relative;aspect-ratio:4/5}.cert img{width:100%;height:100%;object-fit:cover}.cert:after{content:"View certificate";position:absolute;left:0;right:0;bottom:0;padding:30px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff;font-size:.82rem;font-weight:700;opacity:0;transition:.2s}.cert:hover:after{opacity:1}.note{margin-top:18px;color:#77858d;font-size:.82rem}.contact{display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:start}.contact h2{font-size:clamp(2.5rem,6vw,5rem);line-height:.95;margin:0 0 25px}.contact p{color:var(--muted);max-width:650px}.contact-box{border:1px solid var(--line);background:var(--panel);padding:28px}.contact-box a{display:block;padding:13px 0;border-bottom:1px solid var(--line)}.contact-box a:last-child{border-bottom:0}.footer{padding:28px 0;color:#6f7c84;font-size:.82rem}.modal{position:fixed;inset:0;background:rgba(0,0,0,.93);z-index:100;display:none;align-items:center;justify-content:center;padding:30px}.modal.open{display:flex}.modal img{max-height:92vh;max-width:94vw;object-fit:contain}.modal-close{position:absolute;right:24px;top:18px;border:0;background:transparent;color:#fff;font-size:2rem;cursor:pointer}.mobile-toggle{display:none;background:none;border:0;color:#fff;font-size:1.4rem}@media(max-width:800px){.nav-links{display:none;position:absolute;top:72px;left:0;right:0;background:#0b1013;padding:20px;flex-direction:column;border-bottom:1px solid var(--line)}.nav-links.open{display:flex}.mobile-toggle{display:block}.stats{grid-template-columns:repeat(2,1fr)}.section{padding:68px 0}.section-head{grid-template-columns:1fr;gap:18px}.timeline:before{left:8px}.job{grid-template-columns:1fr;gap:10px;padding-left:35px}.job:before{left:3px}.grid3,.cert-grid{grid-template-columns:1fr}.edu{grid-template-columns:1fr;gap:7px}.contact{grid-template-columns:1fr}.hero{min-height:auto}.hero-inner{padding:90px 0 70px}.hero h1{font-size:clamp(3rem,16vw,5rem)}}
.hero-profile{display:flex;align-items:center;justify-content:space-between;gap:50px}.hero-profile h1{margin-bottom:10px}.profile-photo{width:330px;height:330px;object-fit:cover;object-position:center 28%;border-radius:50%;border:1px solid var(--line);box-shadow:0 25px 70px rgba(0,0,0,.35)}.lang-select{display:flex;gap:5px;margin-left:auto;margin-right:18px}.lang-select button{border:1px solid var(--line);background:#10161a;color:#9ba8b0;padding:5px 7px;border-radius:3px;font-size:.72rem;cursor:pointer}.lang-select button.active{color:#fff;border-color:var(--accent);background:var(--accent)}@media(max-width:800px){.hero-profile{display:block}.profile-photo{width:210px;height:210px;margin-top:28px}.lang-select{margin-left:auto;margin-right:10px}.lang-select button{padding:4px 5px}}

.cv-btn.disabled{opacity:.48;cursor:not-allowed}.language-modal{position:fixed;inset:0;background:rgba(4,7,9,.88);backdrop-filter:blur(10px);z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}.language-modal.open{display:flex}.language-card{width:min(520px,100%);background:#11181c;border:1px solid var(--line);border-radius:12px;padding:34px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.5)}.language-card h2{margin:0 0 8px;font-size:1.65rem}.language-card p{color:#9ba8b0;margin:0 0 24px}.language-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.language-options button{background:#182126;border:1px solid var(--line);color:#fff;padding:15px 8px;border-radius:7px;cursor:pointer;font-weight:700}.language-options button:hover,.language-options button.suggested{border-color:var(--accent)}@media(max-width:520px){.language-options{grid-template-columns:1fr}.language-card{padding:26px 20px}}

/* V4 navigation + language dock */
.nav{justify-content:flex-start}.brand{margin-right:auto}.nav-links{margin-left:auto}.lang-select{display:none!important}
.language-dock{position:fixed;left:18px;bottom:18px;z-index:90;display:flex;align-items:center;gap:5px;padding:6px;background:rgba(12,17,20,.9);border:1px solid rgba(255,255,255,.10);border-radius:999px;backdrop-filter:blur(12px);box-shadow:0 12px 36px rgba(0,0,0,.28)}
.language-dock:before{content:"Language";color:#7f8c94;font-size:.67rem;letter-spacing:.08em;text-transform:uppercase;padding:0 5px 0 7px}.language-dock button{border:0;background:transparent;color:#9ba8b0;padding:7px 9px;border-radius:999px;font-size:.72rem;font-weight:800;cursor:pointer}.language-dock button:hover{color:#fff;background:#182126}.language-dock button.active{color:#fff;background:var(--accent)}
/* V4 portrait: intentional technical-circle composition */
.hero:after{display:none}.portrait-orbit{position:relative;width:390px;height:390px;flex:0 0 390px;display:grid;place-items:center}.portrait-frame{width:310px;height:310px;border-radius:50%;overflow:hidden;position:relative;z-index:4;border:1px solid rgba(255,255,255,.18);box-shadow:0 28px 80px rgba(0,0,0,.45),0 0 0 12px rgba(209,74,50,.035)}.profile-photo{width:100%;height:100%;border:0;border-radius:0;box-shadow:none;object-fit:cover;object-position:center 27%}.orbit{position:absolute;border-radius:50%;pointer-events:none}.orbit-a{width:374px;height:374px;border:1px solid rgba(209,74,50,.34);inset:8px}.orbit-b{width:342px;height:342px;border:1px dashed rgba(255,118,94,.20);inset:24px}.orbit-c{width:54px;height:54px;border:1px solid rgba(209,74,50,.48);right:-7px;top:60px;box-shadow:0 0 35px rgba(209,74,50,.12)}.orbit-d{width:22px;height:22px;background:rgba(209,74,50,.18);border:1px solid rgba(255,118,94,.38);left:9px;bottom:68px}.orbit-e{width:13px;height:13px;background:var(--accent);right:36px;bottom:20px;box-shadow:0 0 20px rgba(209,74,50,.55)}.orbit-f{width:8px;height:8px;border:1px solid rgba(255,255,255,.35);left:54px;top:20px}
.hero-inner:before,.hero-inner:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.hero-inner:before{width:24px;height:24px;border:1px solid rgba(209,74,50,.28);left:42%;top:13%}.hero-inner:after{width:9px;height:9px;background:rgba(255,118,94,.45);left:56%;bottom:14%;box-shadow:180px -235px 0 4px rgba(209,74,50,.10),-130px 80px 0 8px rgba(255,255,255,.025),260px 45px 0 13px rgba(209,74,50,.05)}
@media(max-width:800px){.nav{justify-content:space-between}.nav-links{margin-left:0}.portrait-orbit{width:250px;height:250px;flex-basis:250px;margin-top:28px}.portrait-frame{width:205px;height:205px}.orbit-a{width:242px;height:242px;inset:4px}.orbit-b{width:222px;height:222px;inset:14px}.orbit-c{width:38px;height:38px;right:-2px;top:36px}.orbit-d{left:5px;bottom:42px}.orbit-e{right:25px;bottom:8px}.profile-photo{margin:0}.language-dock{left:10px;bottom:10px}.language-dock:before{display:none}.language-dock button{padding:7px 8px}.hero-inner:before{left:78%;top:7%}}

/* V5 official reference work gallery */
.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.reference-card{display:grid;grid-template-columns:42% 1fr;min-height:220px;background:linear-gradient(145deg,var(--panel),#0d1317);border:1px solid var(--line);border-radius:9px;overflow:hidden;transition:transform .2s,border-color .2s}.reference-card:hover{transform:translateY(-2px);border-color:#46545c}.reference-card.wide{grid-column:1/-1;grid-template-columns:52% 1fr}.reference-image{min-height:220px;background:#0b1013;overflow:hidden}.reference-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.reference-card:hover .reference-image img{transform:scale(1.025)}.reference-image.contain{background:#f3f3f1}.reference-image.contain img{object-fit:contain;padding:14px}.reference-copy{padding:24px;display:flex;flex-direction:column;justify-content:center}.reference-copy>span{font-size:.73rem;color:var(--accent2);text-transform:uppercase;letter-spacing:.13em;font-weight:800}.reference-copy strong{font-size:1.25rem;line-height:1.2;margin:8px 0 14px}.reference-copy small{color:#7f8c94;line-height:1.45}.reference-copy p{color:var(--muted);font-size:.9rem;margin:10px 0 14px}.reference-card.source-only{display:block;border-style:dashed}.reference-card.source-only .reference-copy{height:100%}.source-link{color:#cbd3d7;font-size:.82rem;font-weight:700}.reference-note{color:#6f7c84;font-size:.76rem;margin:16px 0 0}
@media(max-width:800px){.reference-grid{grid-template-columns:1fr}.reference-card,.reference-card.wide{grid-column:auto;grid-template-columns:1fr}.reference-image{height:210px;min-height:210px}.reference-copy{padding:20px}}

/* V6 — references belong to the professional story + site-wide technical circle language */
.integrated-references{margin-top:72px;padding-top:58px;border-top:1px solid var(--line)}
.integrated-references .section-head{margin-bottom:30px}
/* subtle technical circles continue through the complete page */
main{position:relative;overflow:hidden}
.section{position:relative;isolation:isolate}
.section>.wrap{position:relative;z-index:2}
.section:before,.section:after{content:"";position:absolute;border-radius:50%;pointer-events:none;z-index:0}
.section:nth-of-type(3n+1):before{width:92px;height:92px;border:1px solid rgba(209,74,50,.12);right:4vw;top:13%;box-shadow:0 0 0 18px rgba(209,74,50,.018)}
.section:nth-of-type(3n+1):after{width:13px;height:13px;background:rgba(209,74,50,.22);right:12vw;bottom:17%;box-shadow:-58px -92px 0 5px rgba(255,255,255,.025)}
.section:nth-of-type(3n+2):before{width:42px;height:42px;border:1px dashed rgba(255,118,94,.16);left:3vw;top:28%}
.section:nth-of-type(3n+2):after{width:8px;height:8px;border:1px solid rgba(255,255,255,.22);left:9vw;bottom:15%;box-shadow:46px -110px 0 7px rgba(209,74,50,.045)}
.section:nth-of-type(3n):before{width:150px;height:150px;border:1px solid rgba(209,74,50,.07);right:-65px;top:42%}
.section:nth-of-type(3n):after{width:24px;height:24px;border:1px solid rgba(209,74,50,.18);left:5vw;bottom:10%}
.integrated-references:before{content:"";position:absolute;width:20px;height:20px;border:1px solid rgba(209,74,50,.3);border-radius:50%;right:2%;top:40px;box-shadow:-32px 58px 0 -5px rgba(209,74,50,.32),-76px 12px 0 -7px rgba(255,255,255,.24)}
@media(max-width:800px){.integrated-references{margin-top:50px;padding-top:42px}.section:nth-of-type(n):before{transform:scale(.7);opacity:.7}.section:nth-of-type(n):after{opacity:.65}}
\n/* V7 — readability and denser technical-dot language */
.section-head p,.edu p,.note,.job-card p,.reference-copy p{overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.section-head p{line-height:1.75;max-width:720px}.edu{align-items:start}.edu>div:nth-child(2){min-width:0}.edu h3{line-height:1.3}.edu p{line-height:1.6}.badge{white-space:nowrap;margin-top:2px}.note{line-height:1.65;max-width:900px}
.timeline:after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:rgba(255,118,94,.5);right:3%;top:6%;box-shadow:-85px 155px 0 2px rgba(209,74,50,.18),40px 330px 0 5px rgba(209,74,50,.08),-120px 520px 0 1px rgba(255,255,255,.12),30px 760px 0 3px rgba(209,74,50,.14),-65px 980px 0 1px rgba(255,118,94,.24);pointer-events:none}
.job-card{position:relative;overflow:hidden}.job-card:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:rgba(209,74,50,.24);right:18px;top:18px;box-shadow:-17px 11px 0 -1px rgba(255,118,94,.22),8px 27px 0 -1px rgba(255,255,255,.10)}
.stats{position:relative}.stats:after{content:"";position:absolute;width:8px;height:8px;border:1px solid rgba(209,74,50,.35);border-radius:50%;right:2.5%;top:14px;box-shadow:-48px 72px 0 -2px rgba(209,74,50,.22)}
@media(max-width:800px){.section-head p{line-height:1.7}.badge{white-space:normal;width:max-content;max-width:100%}.timeline:after{opacity:.45}.job-card:after{opacity:.7}}

/* V8 — robust section heading layout for long NL/HU copy */
.section-head{grid-template-columns:minmax(300px,380px) minmax(0,1fr);column-gap:clamp(56px,8vw,120px);align-items:start}
.section-head h2{min-width:0;overflow-wrap:normal;word-break:normal}
.section-head p{min-width:0;width:100%;max-width:680px;padding-top:.2rem;position:relative;z-index:1}
#education .section-head,#certificates .section-head{grid-template-columns:minmax(320px,420px) minmax(0,1fr)}
#education .section-head p,#certificates .section-head p{padding-left:12px}
.stadler-visual{position:relative;background:radial-gradient(circle at 72% 30%,rgba(209,74,50,.22),transparent 24%),linear-gradient(135deg,#111a20,#26343d)}
.stadler-visual.stadler-fallback:after{content:"STADLER  •  ALUMINIUM CARBODY";position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:#d7dfe3;font-weight:800;letter-spacing:.12em;font-size:.82rem;background:repeating-linear-gradient(135deg,transparent 0 22px,rgba(255,255,255,.025) 23px 24px)}
@media(max-width:1000px){.section-head,#education .section-head,#certificates .section-head{grid-template-columns:1fr;gap:22px}.section-head p,#education .section-head p,#certificates .section-head p{padding-left:0;max-width:780px}}

/* V9 — scroll welding timeline */
.timeline{--weld-progress:0;--weld-y:0px}
.timeline:before{background:var(--line)}
.job:before{z-index:3}
.stadler-train.stadler-fallback:after{content:"STADLER  FLIRT";font-size:1rem;background:radial-gradient(circle at 28% 46%,rgba(255,255,255,.12),transparent 16%),linear-gradient(155deg,#1a242a 0 48%,#e8ecee 49% 64%,#172026 65%);text-shadow:0 2px 10px #000}

/* V10 — site-wide scroll welding system */
.site-weld-system{position:fixed;right:18px;top:86px;bottom:28px;width:22px;z-index:65;pointer-events:none;opacity:.9}
.site-weld-pipe{position:absolute;left:10px;top:0;bottom:0;width:4px;border-radius:5px;background:linear-gradient(90deg,#30383d 0%,#89949a 42%,#343d42 72%,#151b1e 100%);box-shadow:inset 1px 0 rgba(255,255,255,.22),0 0 0 1px rgba(0,0,0,.35)}
.site-weld-bead{position:absolute;left:10px;top:0;width:4px;height:calc(var(--site-weld-progress,0) * 100%);border-radius:5px;background:linear-gradient(180deg,#6e281f 0%,#d14a32 72%,#ff9b73 96%,#ffe1bf 100%);box-shadow:0 0 5px rgba(255,118,94,.42)}
.site-weld-arc{position:absolute;left:12px;top:calc(var(--site-weld-progress,0) * 100%);width:10px;height:10px;border-radius:50%;transform:translate(-50%,-50%);background:#fffaf0;opacity:0;box-shadow:0 0 4px #fff,0 0 11px #aee8ff,0 0 19px #ffb06e,0 0 30px #ff633e;transition:opacity .12s}
.site-weld-system.is-welding .site-weld-arc{opacity:1;animation:siteArc .18s infinite alternate}
.site-weld-arc:before,.site-weld-arc:after{content:"";position:absolute;inset:3px;border-radius:50%;box-shadow:9px -7px 0 0 #ffd6a1,-8px 6px 0 -1px #ff765e,12px 7px 0 -1px #fff,-5px -11px 0 -1px #ff9b73;animation:siteSparks .42s infinite linear}
.site-weld-arc:after{transform:rotate(100deg) scale(.75);animation-delay:.12s}
.site-weld-flash{position:fixed;inset:0;z-index:64;pointer-events:none;opacity:0;background:radial-gradient(circle at 82% 48%,rgba(190,235,255,.22),rgba(255,126,82,.08) 18%,transparent 48%)}
.site-weld-flash.fire{animation:sectionFlash .42s ease-out}
.section.weld-section-hit,.reference-work.weld-section-hit{position:relative}
.section.weld-section-hit:after,.reference-work.weld-section-hit:after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(255,118,94,.75) 48%,transparent 100%);box-shadow:0 0 16px rgba(255,118,94,.32);animation:seamGlow .7s ease-out forwards;pointer-events:none}
@keyframes siteArc{from{transform:translate(-50%,-50%) scale(.72)}to{transform:translate(-50%,-50%) scale(1.22)}}
@keyframes siteSparks{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(-3px,7px) scale(.55)}}
@keyframes sectionFlash{0%{opacity:0}18%{opacity:.9}38%{opacity:.18}55%{opacity:.58}100%{opacity:0}}
@keyframes seamGlow{0%{opacity:1;filter:brightness(2.2)}100%{opacity:.18;filter:brightness(1)}}
@media(max-width:800px){.site-weld-system{right:6px;top:76px;bottom:18px;opacity:.68}.site-weld-flash{background:radial-gradient(circle at 92% 50%,rgba(190,235,255,.17),rgba(255,126,82,.06) 16%,transparent 44%)}}
@media(prefers-reduced-motion:reduce){.site-weld-system{display:none}.site-weld-flash{display:none}.section.weld-section-hit:after,.reference-work.weld-section-hit:after{animation:none}}


/* V11 — workshop welding lives behind the page, not on the edge */
.site-weld-system{display:none!important}
body{position:relative}.site-header,main,.footer,.language-dock{position:relative}.site-header{z-index:50}main,.footer{z-index:2}.language-dock{z-index:90}
.bg-weld-layer{position:fixed;inset:72px 0 0;z-index:1;pointer-events:none;overflow:hidden;opacity:.82}
.bg-weld{position:absolute;left:var(--x);top:var(--y);width:clamp(90px,12vw,180px);height:18px;transform:rotate(var(--rot));opacity:.23;filter:saturate(.9)}
.bg-weld .metal{position:absolute;left:0;right:0;top:8px;height:2px;background:linear-gradient(90deg,transparent,#59636a 12%,#8a959b 48%,#434c51 86%,transparent);box-shadow:0 1px rgba(0,0,0,.5)}
.bg-weld .bead{position:absolute;left:8%;top:7px;width:0;height:4px;border-radius:4px;background:repeating-linear-gradient(90deg,#6d2c23 0 5px,#d14a32 6px 9px,#7e3127 10px 14px);box-shadow:0 0 5px rgba(255,103,70,.38)}
.bg-weld .arc{position:absolute;left:8%;top:9px;width:7px;height:7px;border-radius:50%;opacity:0;background:#fff;box-shadow:0 0 5px #fff,0 0 12px #bcecff,0 0 23px rgba(137,218,255,.85),0 0 38px rgba(255,139,93,.45)}
.bg-weld.fire{opacity:.72}.bg-weld.fire .bead{animation:bgBead 1s ease-out forwards}.bg-weld.fire .arc{animation:bgArc 1s linear forwards}
.bg-weld.fire .arc:before,.bg-weld.fire .arc:after{content:"";position:absolute;inset:2px;border-radius:50%;box-shadow:10px -8px 0 -1px #d9f5ff,-8px 7px 0 -1px #ffb27d,13px 6px 0 -2px #fff,-5px -12px 0 -2px #aee8ff;animation:bgSparks .28s infinite linear}
.bg-weld.fire .arc:after{transform:rotate(110deg) scale(.7)}
.site-weld-flash{z-index:3;background:radial-gradient(circle at 50% 48%,rgba(221,248,255,.25) 0,rgba(153,226,255,.13) 12%,rgba(80,163,214,.055) 28%,transparent 58%)}
@keyframes bgBead{0%{width:0}100%{width:84%}}
@keyframes bgArc{0%{left:8%;opacity:0}6%{opacity:1}18%{opacity:.7}35%{opacity:1}55%{opacity:.65}82%{opacity:1}96%{opacity:.8}100%{left:92%;opacity:0}}
@keyframes bgSparks{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(-5px,9px)}}
@media(max-width:800px){.bg-weld-layer{opacity:.5}.bg-weld{width:100px}.site-weld-flash{background:radial-gradient(circle at 50% 50%,rgba(205,243,255,.16),rgba(119,205,245,.07) 18%,transparent 52%)}}
@media(prefers-reduced-motion:reduce){.bg-weld-layer,.site-weld-flash{display:none!important}}

/* V12 — blue arc workshop workers + Professional Journey weld */
/* No page-wide section flash: only the journey gets a finish flash. */
.site-weld-flash{display:none!important}
.bg-weld-layer{opacity:.72}
.bg-weld{height:64px;opacity:.34;transform-origin:50% 70%}
.bg-weld .metal{top:45px;height:2px}
.bg-weld .bead{top:43px;height:4px;background:repeating-linear-gradient(90deg,#343f46 0 4px,#77858c 5px 7px,#2b353b 8px 12px);box-shadow:0 0 4px rgba(144,207,235,.18)}
.bg-weld .arc{top:45px;width:6px;height:6px;background:#fff;box-shadow:0 0 4px #fff,0 0 10px #d9f8ff,0 0 20px #78d9ff,0 0 38px rgba(36,153,255,.78),0 0 60px rgba(66,180,255,.28)}
.bg-weld .worker{position:absolute;left:7%;top:3px;width:34px;height:48px;opacity:.72}
.bg-weld .worker:before{content:"";position:absolute;left:9px;top:2px;width:16px;height:17px;border-radius:48% 48% 42% 42%;background:#11181d;border:1px solid #64727a;box-shadow:inset -5px -2px 0 #202b31}
.bg-weld .worker:after{content:"";position:absolute;left:4px;top:19px;width:25px;height:27px;border-radius:8px 8px 3px 3px;background:linear-gradient(100deg,#11181d,#263239);border-left:1px solid #536169;transform:skewX(-8deg)}
.bg-weld .arm{position:absolute;left:24px;top:25px;width:31px;height:5px;border-radius:6px;background:#202b31;transform:rotate(24deg);transform-origin:left center;box-shadow:0 0 0 1px rgba(100,115,123,.3)}
.bg-weld .torch{position:absolute;left:50px;top:37px;width:16px;height:2px;background:#87949b;transform:rotate(32deg);transform-origin:left center}
.bg-weld.fire .worker{animation:workerLean 1.35s ease-in-out forwards}
.bg-weld.fire .bead{animation:bgBeadV12 1.35s ease-out forwards}
.bg-weld.fire .arc{animation:bgArcV12 1.35s linear forwards}
.bg-weld.done .bead{width:84%}
@keyframes bgBeadV12{0%{width:0}100%{width:84%}}
@keyframes bgArcV12{0%{left:8%;opacity:0}5%{opacity:1}12%{opacity:.72}20%{opacity:1}31%{opacity:.68}43%{opacity:1}57%{opacity:.75}69%{opacity:1}83%{opacity:.65}94%{opacity:1}100%{left:92%;opacity:0}}
@keyframes workerLean{0%{transform:translateX(0) rotate(0)}100%{transform:translateX(78%) rotate(1deg)}}

/* Journey: restore the scroll-built seam on the left. */
#story .timeline:before{background:#283239;width:2px}
#story .timeline:after{content:"";position:absolute;left:152px;top:0;width:2px;height:calc(var(--journey-weld,0) * 100%);background:linear-gradient(180deg,#6b2a21 0%,#d14a32 88%,#f0a58d 100%);box-shadow:0 0 5px rgba(209,74,50,.38);pointer-events:none;z-index:2}
#story .journey-arc{position:absolute;left:153px;top:calc(var(--journey-weld,0) * 100%);width:8px;height:8px;border-radius:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none;opacity:0;background:#fff;box-shadow:0 0 4px #fff,0 0 11px #dff9ff,0 0 22px #78d9ff,0 0 38px rgba(47,164,255,.72)}
#story .timeline.journey-welding .journey-arc{opacity:1;animation:journeyArc .16s infinite alternate}
#story .journey-finish{position:absolute;left:153px;bottom:0;width:8px;height:8px;border-radius:50%;transform:translate(-50%,50%);pointer-events:none;opacity:0;background:#fff;box-shadow:0 0 6px #fff,0 0 18px #c9f4ff,0 0 38px #66ceff,0 0 72px rgba(72,173,255,.6);z-index:6}
#story .journey-finish.fire{animation:journeyFinish .65s ease-out}
@keyframes journeyArc{from{transform:translate(-50%,-50%) scale(.75)}to{transform:translate(-50%,-50%) scale(1.25)}}
@keyframes journeyFinish{0%{opacity:0;transform:translate(-50%,50%) scale(.5)}18%{opacity:1;transform:translate(-50%,50%) scale(2.2)}45%{opacity:.42;transform:translate(-50%,50%) scale(1.25)}100%{opacity:0;transform:translate(-50%,50%) scale(.8)}}
@media(max-width:800px){.bg-weld-layer{opacity:.42}.bg-weld .worker{opacity:.58}#story .timeline:after{left:8px}#story .journey-arc,#story .journey-finish{left:9px}}
@media(prefers-reduced-motion:reduce){#story .journey-arc,#story .journey-finish{display:none}#story .timeline:after{height:100%}}

/* V13 — slow full-length welders. No section or journey-completion flash. */
.site-weld-flash,#story .journey-finish{display:none!important}
.bg-weld-layer{opacity:.68}
.bg-weld.v13-welder{height:76px;opacity:.28;transform:rotate(var(--rot));transition:opacity 1.45s ease,filter 1.45s ease;filter:saturate(.88)}
.bg-weld.v13-welder.fire{opacity:.46}
.bg-weld.v13-welder.fadeout{opacity:0!important;filter:blur(1.5px) saturate(.65)}
.bg-weld.v13-welder .metal{left:4%;right:4%;top:53px;height:2px;background:linear-gradient(90deg,transparent,#58636a 7%,#8c989e 48%,#485258 93%,transparent)}
.bg-weld.v13-welder .bead{left:5%;top:51px;width:0;height:3px;border-radius:3px;background:linear-gradient(90deg,#6c3025,#b84a32 58%,#d87552);box-shadow:0 0 4px rgba(214,91,61,.28)}
.bg-weld.v13-welder .worker{left:2%;top:3px;width:38px;height:53px;opacity:.62;filter:drop-shadow(0 0 3px rgba(226,102,54,.18))}
.bg-weld.v13-welder .worker:before{background:#6f321f;border-color:rgba(220,107,59,.42);box-shadow:inset -5px -2px 0 rgba(50,26,20,.62)}
.bg-weld.v13-welder .worker:after{background:linear-gradient(100deg,#572719,#9b4328);border-left-color:rgba(226,111,61,.38)}
.bg-weld.v13-welder .machine{position:absolute;left:-13px;top:31px;width:17px;height:22px;border:1px solid rgba(222,103,53,.38);border-radius:3px;background:rgba(130,55,30,.36);box-shadow:inset 0 0 0 2px rgba(30,22,19,.25)}
.bg-weld.v13-welder .machine:after{content:"";position:absolute;left:3px;bottom:-5px;width:4px;height:4px;border:1px solid rgba(222,103,53,.34);border-radius:50%;box-shadow:8px 0 0 -1px rgba(222,103,53,.28)}
.bg-weld.v13-welder .arm{left:26px;top:29px;background:#8c3c24;box-shadow:0 0 0 1px rgba(227,111,61,.2)}
.bg-weld.v13-welder .torch{left:53px;top:41px;background:#b36b4d}
.bg-weld.v13-welder .arc{left:6%;top:51px;width:7px;height:7px;background:#fff;box-shadow:0 0 5px #fff,0 0 13px #e7fbff,0 0 26px #8fe1ff,0 0 46px rgba(48,169,255,.7);transform:translateX(-50%)}
.bg-weld.v13-welder.fire .worker,.bg-weld.v13-welder.fire .machine,.bg-weld.v13-welder.fire .arm,.bg-weld.v13-welder.fire .torch{animation:v13Travel var(--dur) linear forwards}
.bg-weld.v13-welder.fire .bead{animation:v13Bead var(--dur) linear forwards}
.bg-weld.v13-welder.fire .arc{animation:v13Arc var(--dur) linear forwards}
.bg-weld.v13-welder.fire .arc:before,.bg-weld.v13-welder.fire .arc:after{display:none!important}
@keyframes v13Travel{from{transform:translateX(0)}to{transform:translateX(calc(100% + 118px))}}
@keyframes v13Bead{from{width:0}to{width:90%}}
@keyframes v13Arc{0%{left:6%;opacity:.25;transform:translateX(-50%) scale(.7)}4%{opacity:1}10%{opacity:.52}17%{opacity:1}26%{opacity:.58}34%{opacity:.92}43%{opacity:.62}51%{opacity:1}61%{opacity:.5}70%{opacity:.95}79%{opacity:.6}88%{opacity:1}96%{opacity:.7}100%{left:94%;opacity:.18;transform:translateX(-50%) scale(.72)}}
/* Keep the Professional Journey weld simple: orange seam + small live arc, no finish flash. */
#story .timeline:after{background:linear-gradient(180deg,#743024 0%,#d14a32 92%,#df7357 100%);box-shadow:0 0 5px rgba(209,74,50,.32)}
#story .journey-arc{box-shadow:0 0 4px #fff,0 0 10px #e7fbff,0 0 20px #83dcff,0 0 34px rgba(46,162,255,.58)}
@media(max-width:800px){.bg-weld-layer{opacity:.42}.bg-weld.v13-welder{width:150px!important}.bg-weld.v13-welder .worker{opacity:.52}}
@media(prefers-reduced-motion:reduce){.bg-weld-layer{display:none!important}#story .journey-arc{display:none!important}#story .timeline:after{height:100%!important}}

/* V14 — cleaner workshop welders: spaced apart, no machine, hand follows the weld */
.bg-weld.v13-welder .machine{display:none!important}
.bg-weld.v13-welder .worker{left:1%;top:4px}
.bg-weld.v13-welder .arm{left:25px;top:30px;width:29px;height:5px;transform:rotate(30deg);transform-origin:left center}
.bg-weld.v13-welder .torch{left:49px;top:43px;width:15px;height:2px;transform:rotate(18deg);transform-origin:left center}
.bg-weld.v13-welder .arc{top:52px}
.bg-weld.v13-welder.fire .worker,.bg-weld.v13-welder.fire .arm,.bg-weld.v13-welder.fire .torch{animation:v14Travel var(--dur) linear forwards}
@keyframes v14Travel{from{transform:translateX(0)}to{transform:translateX(var(--travel))}}

/* V15 — remove floating bar; put a clear welding torch in the worker's hand */
.bg-weld.v13-welder .torch{
  left:48px;top:41px;width:20px;height:3px;border-radius:2px;
  background:linear-gradient(90deg,#a96548 0 28%,#9aa5aa 29% 72%,#d7e0e4 73% 100%);
  transform:rotate(31deg);transform-origin:left center;
  box-shadow:none;
}
.bg-weld.v13-welder .torch:after{
  content:"";position:absolute;right:-5px;top:1px;width:7px;height:2px;border-radius:2px;
  background:#d9e3e7;transform:rotate(26deg);transform-origin:left center;
}
/* Hand/torch and arc meet at the seam; remove any detached orange-looking bar. */
.bg-weld.v13-welder .arm{left:25px;top:30px;width:28px;height:5px;transform:rotate(29deg)}
.bg-weld.v13-welder .arc{top:52px;margin-left:0}
.bg-weld.v13-welder .machine{display:none!important}

/* V16 — torch and blue arc are one moving welding point */
.bg-weld.v13-welder .arm{
  left:25px;top:30px;width:29px;height:5px;
  transform:rotate(24deg);transform-origin:left center;
}
.bg-weld.v13-welder .torch{
  left:49px;top:39px;width:22px;height:3px;border-radius:2px;
  background:linear-gradient(90deg,#f4f7f8 0%,#cfd9dd 58%,#ffffff 100%);
  transform:rotate(24deg);transform-origin:left center;
  box-shadow:0 0 2px rgba(255,255,255,.25);
}
.bg-weld.v13-welder .torch:after{
  content:"";position:absolute;right:-7px;top:1px;width:9px;height:2px;border-radius:2px;
  background:#f7fbfc;transform:rotate(35deg);transform-origin:left center;
}
/* The live arc starts exactly at the torch tip and travels by the same distance. */
.bg-weld.v13-welder .arc{
  left:78px;top:52px;width:8px;height:8px;margin:0;
  background:#eefdff;
  box-shadow:0 0 4px #fff,0 0 10px #dff9ff,0 0 20px #72d5ff,0 0 38px rgba(0,132,255,.82),0 0 58px rgba(0,116,255,.34);
  transform:translate(-50%,-50%);
}
.bg-weld.v13-welder.fire .worker{animation:v16WorkerTravel var(--dur) linear forwards}
.bg-weld.v13-welder.fire .arm{animation:v16ArmTravel var(--dur) linear forwards}
.bg-weld.v13-welder.fire .torch{animation:v16TorchTravel var(--dur) linear forwards}
.bg-weld.v13-welder.fire .arc{animation:v16ArcTravel var(--dur) linear forwards}
@keyframes v16WorkerTravel{from{transform:translateX(0)}to{transform:translateX(var(--travel))}}
@keyframes v16ArmTravel{from{transform:translateX(0) rotate(24deg)}to{transform:translateX(var(--travel)) rotate(24deg)}}
@keyframes v16TorchTravel{from{transform:translateX(0) rotate(24deg)}to{transform:translateX(var(--travel)) rotate(24deg)}}
@keyframes v16ArcTravel{
  0%{transform:translate(-50%,-50%) translateX(0) scale(.82);opacity:.55}
  4%{opacity:1} 10%{opacity:.72} 17%{opacity:1} 26%{opacity:.76} 34%{opacity:1}
  43%{opacity:.7} 51%{opacity:1} 61%{opacity:.74} 70%{opacity:1} 79%{opacity:.72}
  88%{opacity:1} 96%{opacity:.78}
  100%{transform:translate(-50%,-50%) translateX(var(--travel)) scale(.84);opacity:.45}
}

/* V16 final — match the approved welding visual: PPE glove, white torch,
   blue arc at the torch tip, fresh weld red and cooling to orange. */
.bg-weld.v13-welder .worker{
  /* darker protective-clothing silhouette with warm edge light */
  background:linear-gradient(105deg,rgba(68,36,25,.96),rgba(111,52,29,.90));
  filter:drop-shadow(0 0 4px rgba(238,107,45,.24));
}
/* A proper gauntlet-style welding glove sits between arm and torch. */
.bg-weld.v13-welder .glove{
  position:absolute;left:43px;top:37px;width:14px;height:8px;border-radius:5px 4px 4px 5px;
  background:linear-gradient(90deg,#7d3b24,#b35a31 72%,#d17a45);
  border:1px solid rgba(235,126,66,.34);
  box-shadow:inset -3px -1px 0 rgba(52,27,20,.32),0 0 3px rgba(225,101,49,.16);
  transform:rotate(24deg);transform-origin:left center;z-index:4;
}
.bg-weld.v13-welder .glove:before{
  content:"";position:absolute;left:-8px;top:-1px;width:10px;height:10px;border-radius:2px 4px 4px 2px;
  background:#8d4328;border:1px solid rgba(235,126,66,.25);
}
.bg-weld.v13-welder .torch{z-index:5}
.bg-weld.v13-welder .arc{z-index:6;background:#f8ffff;box-shadow:0 0 5px #fff,0 0 11px #eafcff,0 0 22px #78dcff,0 0 42px rgba(0,137,255,.92),0 0 66px rgba(0,112,255,.42)}
/* The newly deposited metal is red at the arc. As it falls behind the torch it
   cools through red-orange to orange, like the approved visual reference. */
.bg-weld.v13-welder .bead{
  height:4px;top:50px;border-radius:4px;
  background:linear-gradient(90deg,#d77a18 0%,#f09a1d 55%,#ff5b1f 82%,#ff2318 96%,#ff120f 100%);
  box-shadow:0 0 4px rgba(255,126,24,.38),0 0 8px rgba(255,64,20,.20);
}
.bg-weld.v13-welder.fire .glove{animation:v16GloveTravel var(--dur) linear forwards}
@keyframes v16GloveTravel{from{transform:translateX(0) rotate(24deg)}to{transform:translateX(var(--travel)) rotate(24deg)}}
/* Subtle arc flicker only at the live welding point. */
.bg-weld.v13-welder.fire .arc{animation:v16ArcTravel var(--dur) linear forwards,v16ArcFlicker .13s steps(2,end) infinite}
@keyframes v16ArcFlicker{0%{filter:brightness(.92)}50%{filter:brightness(1.38)}100%{filter:brightness(1.02)}}


/* V17 — rebuilt as one coherent welder rig. No detached lines or floating torch. */
.bg-weld.v13-welder{height:92px;overflow:visible}
.bg-weld.v13-welder .metal{top:67px;height:2px;left:3%;right:3%;background:linear-gradient(90deg,transparent,#515b61 5%,#8b969b 50%,#515b61 95%,transparent)}
.bg-weld.v13-welder .bead{left:4%;top:64px;height:5px;width:0;border-radius:5px;background:linear-gradient(90deg,#e89319 0%,#ff9b16 58%,#ff5a1d 82%,#ff2417 96%,#ff1410 100%);box-shadow:0 0 5px rgba(255,132,18,.42),0 0 9px rgba(255,54,18,.18)}
.bg-weld.v13-welder .welder-rig{position:absolute;left:4%;top:0;width:92px;height:78px;z-index:4;transform:translateX(0)}
.bg-weld.v13-welder.fire .welder-rig{animation:v17RigTravel var(--dur) linear forwards}
@keyframes v17RigTravel{from{transform:translateX(0)}to{transform:translateX(var(--travel))}}

/* PPE-clad welder leaning into the seam. */
.bg-weld.v13-welder .worker{left:3px;top:5px;width:47px;height:62px;opacity:.74;filter:drop-shadow(0 0 4px rgba(238,107,45,.18));animation:none!important}
.bg-weld.v13-welder .worker:before{left:15px;top:0;width:25px;height:27px;border-radius:46% 52% 43% 45%;background:linear-gradient(120deg,#3b2821,#6e3925 72%,#2a2220);border:1px solid rgba(232,111,54,.42);box-shadow:inset -8px -3px 0 rgba(14,18,20,.72),0 0 5px rgba(238,107,45,.16)}
.bg-weld.v13-welder .worker:after{left:4px;top:26px;width:37px;height:36px;border-radius:15px 8px 4px 4px;background:linear-gradient(105deg,#42291f,#743b25 70%,#2d2421);border-left:1px solid rgba(230,109,52,.35);transform:skewX(-10deg)}
/* dark visor on helmet */
.bg-weld.v13-welder .worker{background:none!important}

/* Arm ends at the gauntlet; the white torch begins inside the hand. */
.bg-weld.v13-welder .arm{left:33px;top:39px;width:31px;height:8px;border-radius:7px;background:linear-gradient(90deg,#63331f,#9a4a28);transform:rotate(13deg);transform-origin:left center;box-shadow:0 0 0 1px rgba(233,117,58,.18);animation:none!important;z-index:2}
.bg-weld.v13-welder .glove{left:58px;top:43px;width:17px;height:11px;border-radius:7px 6px 5px 7px;background:linear-gradient(90deg,#8a482b,#b96639 72%,#cf7d4d);border:1px solid rgba(242,145,82,.34);transform:rotate(12deg);transform-origin:left center;animation:none!important;z-index:4}
.bg-weld.v13-welder .glove:before{left:-7px;top:0;width:9px;height:11px;background:#824128}
.bg-weld.v13-welder .torch{left:70px;top:47px;width:20px;height:4px;border-radius:3px;background:linear-gradient(90deg,#f9fbfc,#cdd8dc 60%,#fff);transform:rotate(13deg);transform-origin:left center;box-shadow:0 0 2px rgba(255,255,255,.28);animation:none!important;z-index:5}
.bg-weld.v13-welder .torch:after{right:-7px;top:1px;width:9px;height:3px;background:#f7fbfc;transform:rotate(54deg);transform-origin:left center}

/* Arc is physically attached to the torch tip, not independently animated. */
.bg-weld.v13-welder .arc{left:94px;top:65px;width:9px;height:9px;margin:0;border-radius:50%;opacity:1;background:#f9ffff;transform:translate(-50%,-50%);animation:v17ArcFlicker .12s steps(2,end) infinite!important;z-index:7;box-shadow:0 0 5px #fff,0 0 12px #e9fcff,0 0 24px #66d7ff,0 0 43px rgba(0,132,255,.95),0 0 70px rgba(0,105,255,.38)}
.bg-weld.v13-welder .arc:before,.bg-weld.v13-welder .arc:after{display:none!important}
@keyframes v17ArcFlicker{0%{opacity:.78;filter:brightness(.92);transform:translate(-50%,-50%) scale(.88)}50%{opacity:1;filter:brightness(1.35);transform:translate(-50%,-50%) scale(1.14)}100%{opacity:.9;filter:brightness(1.04);transform:translate(-50%,-50%) scale(.98)}}

/* Only the deposited seam grows. It is red at the live arc and orange after cooling. */
.bg-weld.v13-welder.fire .bead{animation:v17Bead var(--dur) linear forwards!important}
@keyframes v17Bead{from{width:0}to{width:calc(100% - 9%)}}
/* Disable legacy child travel animations: the rig itself moves as one unit. */
.bg-weld.v13-welder.fire .worker,.bg-weld.v13-welder.fire .arm,.bg-weld.v13-welder.fire .glove,.bg-weld.v13-welder.fire .torch{animation:none!important}

@media(max-width:800px){.bg-weld.v13-welder .welder-rig{transform:scale(.82);transform-origin:left bottom}.bg-weld.v13-welder.fire .welder-rig{animation:v17RigTravelMobile var(--dur) linear forwards}@keyframes v17RigTravelMobile{from{transform:translateX(0) scale(.82)}to{transform:translateX(var(--travel)) scale(.82)}}}

/* V18 — arc stays on the live red end of the weld; deposited bead cools behind it. */
.bg-weld.v13-welder .bead{
  background:linear-gradient(90deg,#5d6265 0%,#8c5520 10%,#e48a17 38%,#ff9d17 63%,#ff5b19 82%,#ff2016 96%,#ff1010 100%)!important;
  box-shadow:0 0 4px rgba(255,142,22,.32),0 0 8px rgba(255,48,20,.20)!important;
}
/* The arc is attached to the rig and its contact point is the exact growing edge of the bead. */
.bg-weld.v13-welder .arc{
  left:94px!important;top:65px!important;
  background:#ffffff!important;
  box-shadow:0 0 4px #fff,0 0 10px #dffaff,0 0 20px #69d7ff,0 0 38px rgba(0,128,255,.95),0 0 62px rgba(0,100,255,.42)!important;
}
/* Strong local red heat directly behind the live arc, fading through orange as the weld cools. */
.bg-weld.v13-welder .arc:after{
  display:block!important;content:"";position:absolute;right:2px;top:50%;width:54px;height:5px;
  transform:translateY(-50%);border-radius:5px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,137,18,0),#ff8a16 34%,#ff4518 68%,#ff1713 100%);
  box-shadow:0 0 7px rgba(255,45,20,.42);z-index:-1;
}

/* V19 — ARC-DRIVEN welding geometry.
   The blue arc is the master contact point. The welder/torch follows it and the
   hot/cooling weld exists only BEHIND that exact point. */
.bg-weld.v13-welder{min-width:300px!important;max-width:440px!important}
.bg-weld.v13-welder .bead{
  left:94px!important;right:auto!important;top:64px!important;width:0;
  background:#df8618!important;
  box-shadow:0 0 4px rgba(232,130,22,.28)!important;
}
.bg-weld.v13-welder .welder-rig{left:0!important}
.bg-weld.v13-welder .arc{
  left:94px!important;top:65px!important;
  background:#faffff!important;
  box-shadow:0 0 5px #fff,0 0 12px #dffaff,0 0 25px #5ed4ff,0 0 44px rgba(0,122,255,.95),0 0 70px rgba(0,91,255,.40)!important;
}
/* Heat tail is anchored to the ARC and points backwards along the finished seam:
   white/blue contact -> molten red -> red/orange -> orange cooling bead. */
.bg-weld.v13-welder .arc:after{
  display:block!important;content:"";position:absolute;
  right:4px!important;left:auto!important;top:50%!important;
  width:74px!important;height:6px!important;border-radius:6px;
  transform:translateY(-50%)!important;pointer-events:none;
  background:linear-gradient(90deg,rgba(225,132,20,0) 0%,#e98a18 22%,#ff7218 48%,#ff3b18 72%,#ff1714 91%,#fff4e8 100%)!important;
  box-shadow:0 0 6px rgba(255,70,18,.38),0 0 12px rgba(255,34,18,.18)!important;
  z-index:-1;
}
/* Rig and deposited bead use the exact same distance and duration. */
.bg-weld.v13-welder.fire .welder-rig{animation:v19ArcMasterTravel var(--dur) linear forwards!important}
.bg-weld.v13-welder.fire .bead{animation:v19ArcMasterBead var(--dur) linear forwards!important}
@keyframes v19ArcMasterTravel{from{transform:translateX(0)}to{transform:translateX(var(--travel))}}
@keyframes v19ArcMasterBead{from{width:0}to{width:var(--travel)}}
@media(max-width:800px){
 .bg-weld.v13-welder.fire .welder-rig{animation:v19ArcMasterTravelMobile var(--dur) linear forwards!important}
 @keyframes v19ArcMasterTravelMobile{from{transform:translateX(0) scale(.82)}to{transform:translateX(var(--travel)) scale(.82)}}
}

/* V20 — clean weld start + welder visually behind the joint.
   At t=0 there is no pre-existing hot bead: heat starts exactly at the first arc contact. */
.bg-weld.v13-welder .worker{
  height:55px!important;
  overflow:hidden!important;
  z-index:1!important;
}
.bg-weld.v13-welder .worker:after{
  height:29px!important;
}
.bg-weld.v13-welder .arm{z-index:3!important}
.bg-weld.v13-welder .glove{z-index:4!important}
.bg-weld.v13-welder .torch{z-index:5!important}
.bg-weld.v13-welder .metal{z-index:2!important}
.bg-weld.v13-welder .bead{z-index:3!important}
.bg-weld.v13-welder .arc{z-index:7!important}

/* Do not show a full heat tail before any welding has happened.
   It grows backwards from the live arc during the opening part of the pass. */
.bg-weld.v13-welder .arc:after{
  transform-origin:100% 50%!important;
  transform:translateY(-50%) scaleX(0)!important;
}
.bg-weld.v13-welder.fire .arc:after{
  animation:v20HeatTailStart var(--dur) linear forwards!important;
}
@keyframes v20HeatTailStart{
  0%{transform:translateY(-50%) scaleX(0);opacity:0}
  3%{opacity:1}
  18%{transform:translateY(-50%) scaleX(1);opacity:1}
  100%{transform:translateY(-50%) scaleX(1);opacity:1}
}

/* The deposited bead starts at the exact initial arc-contact coordinate. */
.bg-weld.v13-welder .bead{left:94px!important;transform-origin:left center!important}

/* Keep the lower body behind/above the weld instead of visually standing on it. */
.bg-weld.v13-welder .welder-rig{top:-5px!important}


/* V21 — natural front-facing welder, two-handed torch grip, no unwelded stub before start. */
.bg-weld.v13-welder .metal{
  left:94px!important;
  right:3%!important;
}
.bg-weld.v13-welder .welder-rig{
  top:-9px!important;
  width:108px!important;
}
/* Front-facing torso, positioned visually behind the seam. */
.bg-weld.v13-welder .worker{
  left:7px!important;top:1px!important;width:52px!important;height:58px!important;
  opacity:.70!important;overflow:visible!important;z-index:1!important;
  filter:drop-shadow(0 0 4px rgba(230,105,47,.15))!important;
}
.bg-weld.v13-welder .worker:before{
  left:14px!important;top:0!important;width:29px!important;height:29px!important;
  border-radius:48% 48% 42% 42%!important;
  background:linear-gradient(110deg,#34251f 0%,#6c3826 52%,#34251f 100%)!important;
  border:1px solid rgba(235,118,61,.38)!important;
  box-shadow:inset 0 -7px 0 rgba(10,15,18,.74),0 0 5px rgba(238,107,45,.14)!important;
}
.bg-weld.v13-welder .worker:after{
  left:5px!important;top:27px!important;width:45px!important;height:30px!important;
  border-radius:12px 12px 5px 5px!important;
  transform:none!important;
  background:linear-gradient(90deg,#3b2922,#754029 50%,#3b2922)!important;
  border-left:1px solid rgba(230,109,52,.28)!important;
}
/* Welding face shield/helmet plate facing the viewer, with dark viewing window. */
.bg-weld.v13-welder .shield{
  display:block;position:absolute;left:21px;top:8px;width:31px;height:27px;z-index:4;
  border-radius:5px 5px 9px 9px;
  background:linear-gradient(135deg,#713c27,#3a2923 68%,#201d1c);
  border:1px solid rgba(237,121,62,.42);
  box-shadow:0 0 4px rgba(225,103,44,.12);
}
.bg-weld.v13-welder .shield:after{
  content:"";position:absolute;left:6px;top:6px;width:19px;height:8px;border-radius:2px;
  background:#080d10;border:1px solid rgba(116,174,191,.24);
  box-shadow:inset 0 0 5px rgba(42,139,166,.12);
}
/* Both forearms converge naturally on the torch handle. */
.bg-weld.v13-welder .arm-left{
  left:20px!important;top:40px!important;width:38px!important;height:8px!important;
  transform:rotate(20deg)!important;transform-origin:left center!important;
  background:linear-gradient(90deg,#63331f,#9a4a28)!important;z-index:3!important;
}
.bg-weld.v13-welder .arm-right{
  display:block;position:absolute;left:46px;top:37px;width:34px;height:8px;border-radius:7px;
  transform:rotate(31deg);transform-origin:left center;
  background:linear-gradient(90deg,#673620,#a6532c);z-index:3;
}
/* Proper gauntlet gloves on both hands. */
.bg-weld.v13-welder .glove-left{
  left:53px!important;top:49px!important;width:17px!important;height:11px!important;
  transform:rotate(17deg)!important;z-index:5!important;
}
.bg-weld.v13-welder .glove-right{
  display:block;position:absolute;left:70px;top:51px;width:17px;height:11px;border-radius:7px 6px 5px 7px;
  background:linear-gradient(90deg,#87472b,#bd6c3d 72%,#d48652);
  border:1px solid rgba(242,145,82,.34);transform:rotate(24deg);transform-origin:left center;z-index:5;
}
/* White torch is held between both gloves; tip terminates at the master arc. */
.bg-weld.v13-welder .torch{
  left:67px!important;top:53px!important;width:23px!important;height:4px!important;
  transform:rotate(15deg)!important;z-index:6!important;
}
.bg-weld.v13-welder .torch:after{
  right:-8px!important;top:1px!important;width:10px!important;height:3px!important;
  transform:rotate(55deg)!important;
}
/* Master blue arc remains the contact point; all geometry sits behind it. */
.bg-weld.v13-welder .arc{left:94px!important;top:65px!important;z-index:8!important}
/* Never reveal a pre-start piece of the base line to the left of the first arc strike. */
.bg-weld.v13-welder:before{content:none!important}
@media(max-width:800px){
  .bg-weld.v13-welder .welder-rig{transform-origin:left bottom!important}
}

/* V24 — Professional Journey: simple one-way luminous yellow progress line.
   No arc, sparks, flashes or reverse animation. Once revealed, it stays revealed. */
#story .timeline:after{
  background:linear-gradient(180deg,#ffd85a 0%,#ffc928 55%,#f4b915 100%)!important;
  box-shadow:0 0 4px rgba(255,214,70,.92),0 0 10px rgba(255,196,32,.48)!important;
  transition:none!important;
}
#story .journey-arc,#story .journey-finish{display:none!important}
#story .timeline.journey-welding .journey-arc{display:none!important}


/* V26 — NFA brand + bidirectional Professional Journey progress. */
#story .timeline:after{
  background:#f2b21b!important;
  box-shadow:0 0 5px rgba(242,178,27,.42)!important;
  transition:none!important;
}
#story .journey-arc,#story .journey-finish{display:none!important}


/* V27 — Journey experience gradient, revealed once and retained.
   Newest/current experience starts hot red; older experience cools through orange/yellow to white at Stadler. */
#story .timeline:after{
  background:linear-gradient(180deg,#d94a32 0%,#ee6d28 24%,#f39a20 46%,#f4c52b 68%,#fff0a8 84%,#ffffff 100%)!important;
  box-shadow:0 0 5px rgba(242,178,27,.38)!important;
  transition:none!important;
}

/* V27 final — place the live arc exactly on the torch/seam contact point. */
.bg-weld.v13-welder .arc{top:67px!important}

/* V28 — Professional Journey colour distribution refined to match the career timeline.
   Red remains dominant through roughly the middle of WILVO; it then cools through
   orange toward mid-PMC, becomes lemon-yellow, and reaches white only at Stadler's end. */
#story .timeline:after{
  background:linear-gradient(180deg,
    #d94a32 0%,
    #d94a32 50%,
    #e55a2d 58%,
    #ef7625 68%,
    #f19a20 79%,
    #f3cf2f 86%,
    #f7df55 92%,
    #fff3b0 97%,
    #ffffff 100%
  )!important;
  box-shadow:0 0 5px rgba(242,178,27,.38)!important;
}

/* V28 — lower the live arc to the physical torch / fresh orange seam contact point. */
.bg-weld.v13-welder .arc{left:94px!important;top:69px!important;z-index:8!important}

/* V29 — arc sits directly on the seam/contact point and is slightly larger. */
.bg-weld.v13-welder .arc{
  left:94px!important;
  top:71px!important;
  width:11px!important;
  height:11px!important;
  z-index:8!important;
  box-shadow:0 0 6px #fff,0 0 14px #e9fcff,0 0 28px #66d7ff,0 0 49px rgba(0,132,255,.95),0 0 78px rgba(0,105,255,.40)!important;
}


/* V30 — Professional Journey: strongest/current experience at the top.
   Keep the current Equans area fully saturated red; cool only as the timeline moves back in time. */
#story .timeline:after{
  background:linear-gradient(180deg,
    #ff2d20 0%,
    #ff2d20 50%,
    #f04422 57%,
    #ee6b20 68%,
    #f09b20 78%,
    #f4cf2d 87%,
    #f8e46a 94%,
    #ffffff 100%
  )!important;
  box-shadow:0 0 6px rgba(255,45,32,.42)!important;
}

/* Keep anchor destinations clear of the fixed navigation. */
#next-step,#contact{scroll-margin-top:92px}

/* V31 — highlight Next Step in the main navigation. */
.site-header .nav-links a[href="#next-step"]{
  color:#f39a20!important;
  font-weight:700;
}
.site-header .nav-links a[href="#next-step"]:hover,
.site-header .nav-links a[href="#next-step"]:focus-visible{
  color:#ffb13b!important;
}

/* V32 — keep the complete NFA navigation bar visible throughout the page. */
.site-header{
  position:sticky!important;
  top:0!important;
  left:0;
  right:0;
  width:100%;
  z-index:1000!important;
}

/* V33 — Next Step uses exactly the same accent as the NFA brand dot. */
.site-header .nav-links a[href="#next-step"],
.site-header .nav-links a[href="#next-step"]:hover,
.site-header .nav-links a[href="#next-step"]:focus-visible{
  color:var(--accent2)!important;
}


/* V34 — language flags live in the persistent header, not in the bottom dock. */
.language-dock{display:none!important}
.header-language-flags{display:flex;align-items:center;gap:6px;margin-left:18px;flex:0 0 auto}
.header-language-flags button{width:31px;height:27px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.10);border-radius:4px;background:rgba(255,255,255,.035);font-size:17px;line-height:1;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.header-language-flags button:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.header-language-flags button.active{border-color:var(--accent2);background:rgba(232,130,22,.12)}
@media(max-width:800px){
 .header-language-flags{position:absolute;top:72px;left:0;right:0;margin:0;padding:14px 20px 18px;background:#0b1013;border-bottom:1px solid var(--line);display:none;justify-content:flex-start;gap:10px;z-index:2}
 .nav-links.open + .header-language-flags{display:flex}
 .header-language-flags button{width:38px;height:32px;font-size:20px}
 .nav-links.open{padding-bottom:70px}
}


/* V36 — CV-style print view. The website stays unchanged on screen. */
.print-portfolio-btn{font:inherit;appearance:none;-webkit-appearance:none;cursor:pointer}
@media print{
  @page{size:A4;margin:14mm 13mm 15mm}
  html,body{background:#fff!important;color:#111!important;font-size:10.5pt!important}
  body{overflow:visible!important}
  .site-header,.bg-weld-layer,.site-weld-system,.site-weld-flash,.hero-actions,
  .integrated-references,#references,#certificates,.cert-modal,.reference-work,
  .header-language-flags,.mobile-toggle{display:none!important}
  main{display:block!important}
  .hero,.stats,.section{background:#fff!important;color:#111!important;box-shadow:none!important}
  .hero{min-height:0!important;padding:0 0 8mm!important}
  .hero-inner,.wrap{width:100%!important;max-width:none!important;padding-left:0!important;padding-right:0!important}
  .hero-profile{display:flex!important;align-items:center!important;gap:8mm!important}
  .portrait-orbit{width:34mm!important;height:34mm!important;min-width:34mm!important}
  .portrait-orbit .orbit{display:none!important}
  .portrait-frame{width:34mm!important;height:34mm!important;border:1px solid #bbb!important;box-shadow:none!important}
  h1,h2,h3,.role,.job-date,.stat b,.eyebrow,.badge{color:#111!important;text-shadow:none!important}
  h1{font-size:30pt!important;line-height:.95!important;margin:0!important}
  h1 small{font-size:11pt!important;margin-top:4mm!important;color:#444!important}
  .eyebrow{color:#b44b16!important}
  .lead,.section-head p,.job-card p,.skill-card p,.edu p,.contact p,.note,.stat span{color:#333!important}
  .stats{display:grid!important;grid-template-columns:repeat(4,1fr)!important;border-top:1px solid #bbb!important;border-bottom:1px solid #bbb!important;margin:0 0 7mm!important}
  .stat{padding:4mm 2mm!important;border:0!important}
  .section{padding:7mm 0!important;border:0!important;page-break-inside:auto!important}
  .section:before,.section:after,.integrated-references:before{display:none!important}
  .section-head{margin-bottom:5mm!important}
  .section-head h2{font-size:18pt!important}
  .timeline{padding-left:0!important}
  .timeline:before,.timeline:after,.journey-progress,.journey-fill{display:none!important}
  .job{display:grid!important;grid-template-columns:27mm 1fr!important;gap:5mm!important;margin:0 0 5mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .job:before,.job:after{display:none!important}
  .job-date{position:static!important;width:auto!important;text-align:left!important;padding-top:2mm!important;font-size:8.5pt!important}
  .job-card,.skill-card,.edu,.contact-box{background:#fff!important;border:1px solid #ccc!important;box-shadow:none!important;color:#111!important}
  .job-card{padding:4mm!important}
  .job-card p{margin:.7mm 0 2mm!important;line-height:1.38!important}
  .tags{gap:1.5mm!important}.tag{background:#f3f3f3!important;color:#333!important;border:1px solid #ddd!important;padding:1mm 2mm!important}
  .grid3{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4mm!important}
  .skill-card{padding:4mm!important;break-inside:avoid!important}
  .edu-list{gap:3mm!important}.edu{padding:3.5mm!important;break-inside:avoid!important}
  #languages .grid3{grid-template-columns:repeat(3,1fr)!important}
  #next-step .contact{display:grid!important;grid-template-columns:1.4fr .9fr!important;gap:6mm!important}
  .contact-box a{color:#111!important;text-decoration:none!important}
  a[href]:after{content:none!important}
  footer,.site-footer{background:#fff!important;color:#555!important;border-top:1px solid #bbb!important;padding:5mm 0!important}
  *{animation:none!important;transition:none!important}
}

/* V37 — compact two-page CV print layout. */
.print-portfolio-btn{
  background:transparent;
  color:inherit;
  border-color:var(--line);
}
@media print{
  @page{size:A4;margin:10mm 11mm 11mm}
  html,body{font-size:9pt!important;line-height:1.25!important}

  /* Keep only the useful CV content. */
  #skills,#references,#certificates{display:none!important}
  #next-step> .wrap.contact > div:first-child{display:none!important}
  .hero .lead,.tags,.section-head>p,.job-card>p,.note{display:none!important}

  /* Compact identity header. */
  .hero{padding:0 0 4mm!important}
  .hero-inner{padding:0!important}
  .hero-profile{gap:5mm!important}
  .portrait-orbit,.portrait-frame{width:25mm!important;height:25mm!important;min-width:25mm!important}
  h1{font-size:23pt!important;line-height:.92!important}
  h1 small{font-size:9pt!important;margin-top:2mm!important}
  .eyebrow{font-size:7.5pt!important;margin-bottom:1mm!important}

  /* Small qualification summary below the name. */
  .stats{margin:0 0 4mm!important}
  .stat{padding:2.2mm 1.5mm!important}
  .stat b{font-size:11.5pt!important}
  .stat span{font-size:7.3pt!important}

  /* Page 1: professional journey — company, period and role only. */
  #story{padding:3mm 0 0!important}
  #story>.wrap>.section-head{margin-bottom:2.5mm!important}
  #story>.wrap>.section-head h2{font-size:15pt!important}
  .job{grid-template-columns:25mm 1fr!important;gap:3mm!important;margin:0!important;padding:0 0 2.2mm!important;break-inside:avoid!important}
  .job-date{font-size:7.5pt!important;padding-top:1.3mm!important}
  .job-card{padding:2.2mm 3mm!important;border-color:#d5d5d5!important}
  .job-card h3{font-size:10.5pt!important;line-height:1.1!important;margin:0 0 .8mm!important}
  .role{font-size:8.2pt!important;margin:0!important;color:#b44b16!important}

  /* Force the education block onto page 2, then keep languages/contact compact. */
  #education{break-before:page!important;page-break-before:always!important;padding:0!important}
  #education .section-head,#languages .section-head{margin-bottom:2.5mm!important}
  #education .section-head h2,#languages .section-head h2{font-size:15pt!important}
  .edu-list{gap:0!important}
  .edu{grid-template-columns:25mm 1fr auto!important;gap:3mm!important;padding:2.4mm 0!important;border-color:#d5d5d5!important}
  .edu-year{font-size:7.7pt!important}
  .edu h3{font-size:9.5pt!important;margin:0 0 .5mm!important}
  .edu p{font-size:7.8pt!important}
  .badge{font-size:7pt!important;padding:.8mm 1.8mm!important}

  #languages{padding:5mm 0 0!important}
  #languages .grid3{gap:2.5mm!important}
  #languages .skill-card{padding:2.5mm 3mm!important}
  #languages .skill-card h3{font-size:9.5pt!important;margin:0 0 .5mm!important}
  #languages .skill-card p{display:block!important;font-size:7.8pt!important}

  /* Contact only — no Next Step marketing copy in print. */
  #next-step{padding:5mm 0 0!important}
  #next-step .contact{display:block!important}
  #next-step .contact-box{padding:3mm 4mm!important;display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:6mm!important}
  #next-step .contact-box strong{grid-column:1/-1;font-size:10pt!important;margin-bottom:1mm!important}
  #next-step .contact-box a{font-size:8pt!important;padding:1.2mm 0!important;border:0!important}
  #next-step .contact-box span{grid-column:1/-1;font-size:8pt!important;padding-top:1.5mm!important;color:#444!important}

  footer,.site-footer{padding:3mm 0 0!important;font-size:7pt!important}
}

/* V38 — balanced footer copyright + site address. */
.footer .footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.footer .footer-site{margin-left:auto;text-align:right;white-space:nowrap}
@media(max-width:600px){.footer .footer-inner{gap:12px;flex-wrap:wrap}.footer .footer-site{margin-left:auto}}
@media print{.footer .footer-inner{display:flex!important;justify-content:space-between!important}.footer .footer-site{display:inline!important;margin-left:auto!important}}

/* V39 — force a true white printable canvas on desktop and mobile print previews. */
@media print{
  html, body, #page, .site, main, .hero, .stats, .section, .wrap,
  #story, #education, #languages, #next-step, .footer, .site-footer,
  .job, .job-card, .edu, .skill-card, .contact, .contact-box{
    background:#fff !important;
    background-color:#fff !important;
    background-image:none !important;
  }
  html, body{
    min-height:100% !important;
    -webkit-print-color-adjust:economy !important;
    print-color-adjust:economy !important;
  }
  body:before,body:after,main:before,main:after,.hero:before,.hero:after,
  .wrap:before,.wrap:after,#story:before,#story:after,#education:before,#education:after,
  #languages:before,#languages:after,#next-step:before,#next-step:after{
    background:none !important;
    box-shadow:none !important;
  }
}

/* V40 — mobile/A4 print balancing: white cards, compact first page, predictable page 2. */
@media print{
  @page{size:A4 portrait;margin:9mm 10mm 10mm}
  html,body{width:100%!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important}

  /* Never carry the dark on-screen stat tiles into print. */
  .stats,.stat{
    background:#fff!important;background-color:#fff!important;background-image:none!important;
    color:#111!important;box-shadow:none!important;
  }
  .stats{border:1px solid #d7d7d7!important;border-radius:0!important;overflow:hidden!important;margin-bottom:3mm!important}
  .stat{border-right:1px solid #d7d7d7!important;padding:1.7mm 1.5mm!important}
  .stat:last-child{border-right:0!important}
  .stat b{color:#111!important;font-size:10.5pt!important}
  .stat span{color:#555!important;font-size:6.9pt!important}

  /* Use the first sheet efficiently without making the CV look stretched. */
  .hero{padding-bottom:2.5mm!important}
  .portrait-orbit,.portrait-frame{width:23mm!important;height:23mm!important;min-width:23mm!important}
  #story{padding-top:2mm!important}
  #story>.wrap>.section-head{margin-bottom:1.8mm!important}
  #story>.wrap>.section-head h2{font-size:14pt!important}
  .job{grid-template-columns:24mm 1fr!important;gap:2.5mm!important;padding-bottom:1.5mm!important}
  .job-date{font-size:7.2pt!important;padding-top:1mm!important}
  .job-card{padding:1.7mm 2.5mm!important;border-radius:2mm!important}
  .job-card h3{font-size:9.7pt!important;margin-bottom:.45mm!important}
  .role{font-size:7.7pt!important;line-height:1.05!important}

  /* Page two starts deliberately here; content is compact enough for mobile print engines. */
  #education{break-before:page!important;page-break-before:always!important;padding-top:0!important}
  #education .section-head h2,#languages .section-head h2{font-size:13.5pt!important}
  .edu{padding:1.9mm 0!important}
  .edu h3{font-size:9pt!important}.edu p{font-size:7.3pt!important}.edu-year{font-size:7.2pt!important}.badge{font-size:6.7pt!important}
  #languages,#next-step{padding-top:3.5mm!important}
  #languages .skill-card{padding:2mm 2.5mm!important}
  #next-step .contact-box{padding:2.5mm 3.5mm!important}

  /* Avoid accidental extra pages caused by footer spacing. */
  footer,.site-footer,.footer{margin:0!important;padding-top:2mm!important;padding-bottom:0!important;break-inside:avoid!important;page-break-inside:avoid!important}

  *{-webkit-print-color-adjust:economy!important;print-color-adjust:economy!important}
}

/* V42 — printable QR link to the live portfolio. */
.print-qr{display:none}
@media print{
  .print-qr{
    display:flex!important;
    align-items:center!important;
    gap:3mm!important;
    grid-column:1/-1!important;
    margin-top:2.5mm!important;
    padding-top:2.5mm!important;
    border-top:1px solid #ddd!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .print-qr img{
    display:block!important;
    width:20mm!important;
    height:20mm!important;
    max-width:none!important;
    object-fit:contain!important;
    background:#fff!important;
  }
  .print-qr span{
    display:block!important;
    font-size:8.5pt!important;
    font-weight:700!important;
    color:#111!important;
  }
}

/* V44 — mobile sync fix only.
   Keep the proven V42 rig animation untouched. On mobile the whole welder rig is
   scaled to 82% from its left edge, so the arc's 94px local X becomes 77.08px.
   Start the seam at that same visual X; travel/duration stay exactly V42. */
@media(max-width:800px){
  .bg-weld.v13-welder .bead{left:77.08px!important;}
  .bg-weld.v13-welder .metal{left:77.08px!important;}
}

/* V46 rebuilt from V45 — Professional Journey starts exactly at the first
   2025–present marker. Keep the current-experience red fully saturated there. */
#story .timeline:after{
  top:8px!important;
  height:max(0px,calc(var(--journey-weld,0) * 100% - 8px))!important;
  background:linear-gradient(180deg,
    #ff2d20 0%,
    #ff2d20 50%,
    #f04422 57%,
    #ee6b20 68%,
    #f09b20 78%,
    #f4cf2d 87%,
    #f8e46a 94%,
    #ffffff 100%
  )!important;
}

/* V47 — requested final polish from the V45-based branch.
   Journey: begin exactly at the first 2025-present marker, keep the top red uniform,
   but reduce the whole colour treatment so it does not dominate the content. */
#story .timeline:before{
  top:8px!important;
}
#story .timeline:after{
  top:8px!important;
  height:max(0px,calc(var(--journey-weld,0) * 100% - 8px))!important;
  opacity:.60!important;
  box-shadow:0 0 3px rgba(255,45,32,.18)!important;
}

/* Languages — move only the small intro copy into the same clean alignment used
   by the Certificates/Education intro copy. Titles and language cards stay untouched. */
#languages .section-head p{
  padding-left:12px;
}
@media(max-width:1000px){
  #languages .section-head p{padding-left:0}
}

/* V48 — Languages: align only the small intro copy with the Certificates intro.
   The heading and language cards remain in their existing positions. */
@media(min-width:1001px){
  #languages .section-head{
    grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  }
  #languages .section-head p{
    padding-left:12px;
    max-width:680px;
  }
}

/* V49 — first-visit language choice */
.first-language-choice{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(5,7,9,.78);backdrop-filter:blur(8px)}
.first-language-choice[hidden]{display:none!important}
.first-language-card{width:min(420px,100%);padding:28px 26px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#111418;box-shadow:0 24px 70px rgba(0,0,0,.48);text-align:center}
.first-language-card h2{margin:0 0 7px;color:#fff;font-size:22px}
.first-language-card p{margin:0 0 20px;color:rgba(255,255,255,.62);font-size:13px;line-height:1.5}
.first-language-buttons{display:flex;justify-content:center;gap:12px}
.first-language-buttons button{width:82px;height:64px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:#181c20;color:#fff;font-size:30px;cursor:pointer;transition:.18s ease}
.first-language-buttons button:hover,.first-language-buttons button:focus-visible{border-color:#e98a18;transform:translateY(-2px);outline:none}
