@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#080e19;--panel:#0d1625;--text:#f1f5fd;--muted:#a8b7ce;--blue:#73a7ff;--line:#253146;--font:'DM Sans',sans-serif;--display:'Space Grotesk',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.7 var(--font)}a{color:inherit;text-decoration:none}button{font:inherit}a,button{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid var(--blue);outline-offset:6px}::selection{background:#2862bc;color:white}.section-wrap{max-width:none;width:100%;margin:0;padding-left:clamp(1.5rem,6vw,8rem);padding-right:clamp(1.5rem,6vw,8rem)}.header{max-width:none;width:100%;padding:1.5rem clamp(1.5rem,6vw,8rem);margin:0;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:.8rem;font-weight:600;font-size:.9rem}.mark{font-family:var(--display);font-size:2rem;letter-spacing:-.1em;line-height:1}.mark span{color:var(--blue)}.header nav{display:flex;gap:2.2rem;color:var(--muted);font-size:.9rem}.header nav a:hover,.text-link:hover,.footer a:hover{color:var(--blue)}.nav-contact{font-size:.9rem;padding:.5rem 1.1rem;border:1px solid #465570;border-radius:5px}.nav-contact:hover{background:var(--panel)}.hero{min-height:710px;display:grid;grid-template-columns:1.5fr 1fr;gap:3rem 4rem;align-items:center;padding-top:5rem;padding-bottom:1.5rem}.eyebrow{margin:0 0 1.5rem;font-size:.875rem;letter-spacing:.13em;color:var(--blue);font-weight:600;display:flex;align-items:center;gap:.75rem}.tiny-line{width:24px;height:2px;background:var(--blue)}h1,h2,h3,p{overflow-wrap:break-word}h1{font-family:var(--display);font-size:clamp(3rem,5.7vw,5rem);line-height:1.08;letter-spacing:-.055em;font-weight:500;margin:0 0 1.7rem}h1>span{color:var(--blue)}.intro{max-width:530px;color:var(--muted);font-size:1.1rem;line-height:1.8;margin:0 0 2rem}.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem}.button{display:inline-flex;align-items:center;justify-content:center;gap:.8rem;font-size:.9rem;font-weight:600;padding:.85rem 1.2rem;border-radius:4px;transition:background .2s,transform .2s;min-height:48px}.button:hover{transform:translateY(-2px)}.primary{background:var(--blue);color:#061328}.primary:hover{background:#94bcff}.secondary{border:1px solid #3b4961;color:var(--text);background:transparent}.secondary:hover{background:#152236}.linkedin-icon{font:bold .95rem/1 Arial,sans-serif;border:1px solid currentColor;padding:2px;border-radius:2px}.hero-note{margin-top:2rem;display:flex;gap:1.1rem;flex-wrap:wrap;color:var(--muted);font-size:.875rem}.hero-note span+span:before{content:'/';margin-right:1.1rem;color:#61708a}.focus-panel{align-self:center;border:1px solid #35496c;background:linear-gradient(150deg,#172742 0%,#0c1422 75%);padding:1.5rem 1.8rem;box-shadow:16px 16px 0 #0b1424;border-radius:6px}.panel-top,.panel-bottom{display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.75rem;letter-spacing:.08em}.panel-top{padding-bottom:1.7rem}.panel-index{color:var(--blue);white-space:nowrap}.focus-row{display:flex;gap:1.25rem;align-items:center;border-top:1px solid #35435b;padding:1.7rem 0}.row-number{align-self:flex-start;margin-top:.6rem;color:var(--blue);font-family:var(--display);font-size:.875rem}.focus-row h2{font-family:var(--display);font-size:1.9rem;line-height:1.3;font-weight:500;margin:0 0 .3rem;letter-spacing:-.03em}.focus-row p{font-size:.875rem;color:var(--muted);margin:0}.row-code{margin-left:auto;writing-mode:vertical-rl;letter-spacing:.12em;color:#8393ae;font-size:.75rem}.panel-bottom{padding-top:1.2rem;border-top:1px solid #35435b}.hero-bottom{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:1.5rem;font-size:.75rem;letter-spacing:.09em;color:var(--muted)}.hero-bottom a{font-size:.875rem;letter-spacing:0;color:var(--text)}.expertise,.projects,.background{padding-top:6rem;padding-bottom:5rem}.section-heading{margin-bottom:2.5rem}.section-heading .eyebrow,.projects-heading .eyebrow{margin-bottom:1rem}h2{font-family:var(--display);font-size:clamp(2rem,3.3vw,3rem);line-height:1.18;letter-spacing:-.04em;font-weight:500;margin:0}.expertise-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}.expertise-card{border-top:1px solid #425676;padding-top:1.5rem}.category{font-size:.75rem;letter-spacing:.1em;color:var(--blue)}h3{font-family:var(--display);font-weight:500;font-size:1.4rem;letter-spacing:-.025em;line-height:1.4}.expertise-card h3{margin:1rem 0 .8rem}.expertise-card p{color:var(--muted);margin:0;max-width:350px;min-height:100px}.tags{list-style:none;padding:0;margin:1.5rem 0 0;display:flex;flex-wrap:wrap;gap:.5rem}.tags li{padding:.3rem .65rem;background:#142037;border:1px solid #29374e;font-size:.875rem;color:#c4d2e8;border-radius:3px}.projects{border-top:1px solid var(--line)}.projects-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:3rem;margin-bottom:2.5rem}.projects-heading>p{color:var(--muted);max-width:280px;margin:0 0 .25rem}.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}.filter{font-size:.875rem;border:1px solid #2c3a52;padding:.55rem 1rem;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer;min-height:44px}.filter:hover{border-color:var(--blue);color:var(--text)}.filter.active{background:#1a3155;border-color:#476d9c;color:#d8e8ff}.filter span{background:#314d73;color:#e0ebff;border-radius:3px;padding:0 .4rem;margin-left:.5rem}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.project-card{padding:2rem;background:var(--panel);border:1px solid var(--line);border-radius:5px;transition:border-color .2s}.project-card:hover{border-color:#547bac}.project-meta{display:flex;justify-content:space-between;gap:1rem;font-size:.75rem;letter-spacing:.1em;color:var(--blue)}.project-meta span:last-child{color:#93a3bf}.project-card h3{font-size:1.7rem;margin:1.5rem 0 .7rem}.project-card p{margin:0;color:var(--muted);max-width:450px}.project-tags{display:flex;gap:.9rem;flex-wrap:wrap;font-size:.875rem;color:#c4d2e8;border-top:1px solid var(--line);padding-top:1.3rem;margin-top:1.7rem}.text-link{display:inline-block;border-bottom:1px solid #516787;padding:.4rem 0;margin-top:2rem;font-size:.9rem}.background{border-top:1px solid var(--line)}.background-list article{display:grid;grid-template-columns:1fr 2fr;gap:2rem;border-top:1px solid var(--line);padding:1.6rem 0}.background-label{font-size:.75rem;letter-spacing:.08em;color:var(--blue);padding-top:.2rem}.background-list h3{font-size:1.2rem;margin:0}.background-list p{color:var(--muted);font-size:.9rem;margin:.5rem 0 0}.contact{padding-top:3.5rem;padding-bottom:3.5rem;background:#112440;border-top:1px solid #395987;border-bottom:1px solid #395987}.contact-body{display:flex;justify-content:space-between;align-items:center;gap:2rem}.contact-body h2{font-size:clamp(2rem,3.1vw,2.8rem)}.contact-body h2 span{color:#a9c3e9}.contact-body .button{flex-shrink:0}.contact-note{font-size:.9rem;color:#b4c7e2;margin:1.4rem 0 0}.footer{padding-top:2rem;padding-bottom:2rem;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;font-size:.875rem;color:var(--muted)}.footer .brand{color:var(--text)}.skip{position:fixed;top:-100px;left:1rem;background:var(--blue);color:var(--bg);padding:.6rem 1rem;z-index:10}.skip:focus{top:1rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1500px){.hero{padding-top:6rem;padding-bottom:2rem}}
@media(max-width:1000px){.hero{grid-template-columns:1.3fr 1fr;gap:3rem 2rem;min-height:auto}.focus-panel{padding:1.2rem}.brand-name{display:none}.hero-note{gap:.6rem}.hero-note span+span:before{margin-right:.6rem}.expertise-grid{gap:1.2rem}.expertise-card p{min-height:135px}.contact-body{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.header{padding:1.2rem 6%;gap:1rem;flex-wrap:wrap}.header nav{order:3;width:100%;justify-content:space-between;gap:1rem;padding-top:.5rem}.brand-name{display:inline}.section-wrap{padding-left:6%;padding-right:6%}.hero{grid-template-columns:1fr;gap:2.5rem;padding-top:3rem;padding-bottom:1.5rem}.eyebrow{font-size:.75rem;letter-spacing:.09em}h1{font-size:clamp(2.7rem,9vw,4.2rem)}.intro{font-size:1rem}.hero-note{font-size:.75rem}.focus-panel{box-shadow:8px 8px 0 #0b1424}.focus-row{padding:1.1rem 0}.focus-row h2{font-size:1.6rem}.panel-top{padding-bottom:1rem}.hero-bottom{font-size:.75rem;gap:1rem;flex-wrap:wrap}.hero-bottom>span:last-child{display:none}.expertise,.projects,.background{padding-top:3.5rem;padding-bottom:3.5rem}.expertise-grid,.project-grid{grid-template-columns:1fr}.expertise-grid{gap:2rem}.expertise-card p{min-height:0;max-width:none}.section-heading{margin-bottom:2rem}.projects-heading{display:block;margin-bottom:1.5rem}.projects-heading>p{max-width:none;margin-top:1.3rem}.project-card{padding:1.5rem}.project-card h3{font-size:1.5rem}.background-list article{grid-template-columns:1fr;gap:.7rem}.contact{padding-top:2.5rem;padding-bottom:2.5rem}.footer{flex-wrap:wrap;justify-content:flex-start;gap:1rem 2rem}.footer>span{width:100%;order:3}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.button:hover{transform:none}}

/* Reserve the complete title height while each line is typed. */
h1>.typing-line{display:block;position:relative;color:var(--text)}
h1>.typing-line.typing-accent{color:var(--blue)}
.typing-reserve{visibility:hidden}
.typing-text{position:absolute;inset:0}
.typing-text.is-typing::after{content:'';display:inline-block;width:.045em;height:.8em;margin-left:.06em;background:currentColor;vertical-align:-.035em;animation:typing-cursor .7s step-end infinite}
@keyframes typing-cursor{0%,49%{opacity:1}50%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.typing-text.is-typing::after{display:none}}


/* Large portrait background with a dark overlay behind the introduction. */
.hero{position:relative;isolation:isolate;overflow:hidden;max-width:none;width:100%;margin:0;padding-left:clamp(1.5rem,6vw,8rem);padding-right:clamp(1.5rem,6vw,8rem);gap:2.8rem 4rem;padding-top:5.5rem}
.hero-backdrop{position:absolute;inset:0;z-index:-1;pointer-events:none}
.hero-photo{position:absolute;right:0;top:0;width:72%;height:100%;object-fit:cover;object-position:center 18%}
.hero-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--bg) 0%,rgba(8,14,25,.97) 23%,rgba(8,14,25,.82) 40%,rgba(8,14,25,.25) 65%,rgba(8,14,25,.12) 100%),linear-gradient(0deg,var(--bg) 0%,rgba(8,14,25,.65) 20%,transparent 65%)}
.hero-copy{grid-column:1;position:relative;max-width:760px}
.hero-side{grid-column:1/-1;min-width:0}
.hero-side .focus-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 1.5rem;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;padding:1.2rem 0}
.hero-side .panel-top,.hero-side .panel-bottom{grid-column:1/-1}
.hero-side .panel-top{padding-bottom:1rem}
.hero-side .focus-row{padding:1rem 0;gap:1rem}
.hero-side .focus-row h2{font-size:1.6rem}
.hero-side .panel-bottom{padding-top:.9rem}
.hero-bottom{position:relative}
@media(max-width:1000px){.hero{gap:2rem;padding-top:4rem}.hero-photo{width:80%}.hero-side .focus-row{gap:.7rem}.hero-side .focus-row h2{font-size:1.4rem}.hero-side .row-code{display:none}}
@media(max-width:720px){.hero{padding-top:3rem;gap:2.5rem;padding-left:6%;padding-right:6%}.hero-photo{width:100%;object-position:58% top}.hero-backdrop::after{background:linear-gradient(90deg,rgba(8,14,25,.94),rgba(8,14,25,.64)),linear-gradient(0deg,var(--bg) 0%,rgba(8,14,25,.9) 35%,transparent 90%)}.hero-side .focus-panel{display:block;padding:1.2rem 0}.hero-side .focus-row h2{font-size:1.6rem}.hero-side .row-code{display:block}}

/* Content enriched from the CV; keep prose readable on wide screens. */
.tiny-line{flex-shrink:0}
.section-intro{max-width:68ch;color:var(--muted);margin:1.4rem 0 0;font-size:1.05rem}
.expertise-card p{max-width:62ch;min-height:0}
.contributions{padding-left:1.2rem;color:var(--muted);margin:1.2rem 0 0;max-width:68ch}
.contributions li{padding-left:.2rem;margin:.55rem 0}
.contributions li::marker{color:var(--blue)}
.subsection-header{margin:3.5rem 0 1.4rem}
.subsection-header h3{font-size:1.7rem;margin:0}
.subsection-header p{color:var(--muted);max-width:68ch;margin:.6rem 0 0}
.skills-matrix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}
.skill-group{border:1px solid var(--line);background:var(--panel);border-radius:5px;padding:1.4rem;min-width:0}
.skill-group h4{font-family:var(--display);font-size:1.1rem;font-weight:500;margin:0}
.skill-group .tags{margin-top:1rem}
.project-grid{align-items:start}
.project-card p{max-width:62ch}
.project-details{margin-top:1.2rem}
.project-details summary{cursor:pointer;color:var(--blue);font-size:.9rem;padding:.5rem 0;min-height:44px}
.project-details summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.project-details[open] summary{color:var(--text)}
.project-details .contributions{margin-top:.5rem;font-size:.95rem}
.career-timeline{border-top:1px solid var(--line)}
.career-entry{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,2fr);gap:2rem;border-bottom:1px solid var(--line);padding:2rem 0}
.career-date{color:var(--blue);font-size:.9rem;padding-top:.2rem}
.career-content{max-width:850px}
.career-employer{margin:0 0 .5rem!important;color:var(--blue)!important;font-size:.9rem;font-weight:600}
.career-content h3{font-size:1.6rem;margin:0 0 .8rem}
.career-content>p{max-width:68ch;color:var(--muted);margin:0}
.language-strip{display:grid;grid-template-columns:1fr repeat(3,1fr);gap:1.5rem;border-top:1px solid var(--line);margin-top:2rem;padding-top:1.7rem}
.language-strip h3{margin:0;font-size:1.2rem}
.language-strip>div{display:flex;flex-direction:column;gap:.25rem}
.language-strip strong{font-size:.9rem;color:var(--muted);font-weight:400}
.contact-note{max-width:68ch}
.contact-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:2rem;padding:1.5rem 0;margin-top:1.5rem;border-top:1px solid #395987;border-bottom:1px solid #395987}
.contact-grid>div{display:flex;flex-direction:column;gap:.6rem;min-width:0}
.contact-grid a{overflow-wrap:anywhere}
.contact-grid a:hover{color:var(--blue)}
.contact-label{font-size:.75rem;letter-spacing:.09em;color:#b4c7e2}
.contact-links{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.5rem}
.contact-body h2{max-width:900px}
@media(min-width:1440px){.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.skills-matrix{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-grid{grid-template-columns:1fr 1fr}.contact-grid>div:first-child{grid-column:1/-1}}
@media(max-width:720px){.skills-matrix{grid-template-columns:1fr}.career-entry{grid-template-columns:1fr;gap:.8rem;padding:1.7rem 0}.career-content h3{font-size:1.35rem}.language-strip{grid-template-columns:1fr 1fr;gap:1.2rem}.contact-grid{grid-template-columns:1fr;gap:1.3rem}.subsection-header{margin-top:2.5rem}.project-card h3{font-size:1.45rem}}

/* Accessible floating link back to the top of the page. */
.back-to-top{position:fixed;right:max(1.25rem,env(safe-area-inset-right));bottom:max(1.25rem,env(safe-area-inset-bottom));z-index:20;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid #527bb7;border-radius:50%;background:#112440;color:var(--blue);box-shadow:0 5px 20px rgba(0,0,0,.3);transition:background .2s,color .2s,transform .2s}
.back-to-top:hover{background:var(--blue);color:var(--bg);transform:translateY(-2px)}
.back-to-top:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
@media(prefers-reduced-motion:reduce){.back-to-top:hover{transform:none}}

/* Consistent reading rhythm, project cards and comfortable mobile controls. */
:root{--muted:#b2c0d5}
.header nav a{display:inline-flex;align-items:center;min-height:44px;position:relative}
.header nav a::after{content:'';position:absolute;left:0;right:0;bottom:.15rem;height:2px;background:var(--blue);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.header nav a:hover::after,.header nav a:focus-visible::after{transform:scaleX(1)}
.section-heading,.projects-heading{margin-bottom:2.8rem}
.section-intro,.intro{line-height:1.85}
.expertise-grid{gap:clamp(1.5rem,3vw,3rem)}
.expertise-card p,.expertise-card .contributions{max-width:55ch;line-height:1.8}
.category{font-size:.875rem;letter-spacing:.08em}
.expertise-card .tags{margin-top:1.8rem}
.tags li{line-height:1.5;padding:.4rem .7rem}
.skills-matrix{gap:1.4rem}
.skill-group{padding:1.6rem;border-color:#2b3b54;border-radius:8px}
.skill-group h4{line-height:1.5}
.project-grid{align-items:stretch;gap:1.5rem}
.project-card{display:flex;flex-direction:column;min-width:0;border-color:#2d3e57;border-radius:8px;background:linear-gradient(145deg,#111d30,var(--panel) 75%);transition:border-color .2s,box-shadow .2s}
.project-card:hover,.project-card:focus-within{border-color:#547bac;box-shadow:0 10px 30px rgba(0,0,0,.14)}
.project-meta{font-size:.8125rem;letter-spacing:.065em;line-height:1.5}
.project-card h3{line-height:1.3;margin-top:1.3rem}
.project-card>p{line-height:1.8}
.project-details{margin-bottom:1.4rem}
.project-details summary{padding:.65rem 0;font-size:.95rem;text-underline-offset:.25em}
.project-details summary::marker{color:var(--blue)}
.project-details summary:hover{text-decoration:underline}
.project-details[open] .contributions{padding-top:.3rem;padding-bottom:.2rem}
.project-tags{margin-top:auto;gap:.55rem .85rem;line-height:1.6}
.career-entry{gap:clamp(1.5rem,3vw,3rem)}
.career-date{position:relative;border-left:2px solid #324d73;padding-left:1.15rem;line-height:1.7}
.career-date::before{content:'';position:absolute;left:-5px;top:.5rem;width:8px;height:8px;border-radius:50%;background:var(--blue)}
.career-content>p,.career-content .contributions{max-width:65ch;line-height:1.8}
.background-label,.contact-label{font-size:.875rem;letter-spacing:.055em}
.background-list p{max-width:68ch;line-height:1.8}
.contact-grid a{width:fit-content;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:.3em}
.contact-grid a:hover{text-decoration:underline}
.contact-links{gap:1rem}
.footer{padding-right:max(clamp(1.5rem,6vw,8rem),5.5rem)}
@media(max-width:1050px){.expertise-grid{grid-template-columns:1fr}.expertise-card{display:grid;grid-template-columns:1fr 1fr;gap:0 2rem}.expertise-card>.category,.expertise-card>h3{grid-column:1/-1}.expertise-card>.contributions{margin-top:0}.expertise-card>.tags{grid-column:1/-1}.career-entry{grid-template-columns:minmax(165px,.7fr) minmax(0,2fr)}}
@media(max-width:720px){.section-heading,.projects-heading{margin-bottom:2rem}.expertise-card{display:block}.expertise-card>.contributions{margin-top:1.2rem}.eyebrow{font-size:.8125rem;line-height:1.6}.hero-note{font-size:.875rem;line-height:1.7}.hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .button{width:100%}.project-card{padding:1.5rem}.project-grid{gap:1.1rem}.career-entry{grid-template-columns:1fr;gap:1rem}.career-date{padding-bottom:.2rem}.career-content h3{line-height:1.4}.contact-links{display:grid;grid-template-columns:1fr}.contact-links .button{width:100%}.contact-body .button{width:100%}.contact-body{width:100%}.footer{padding-bottom:2.5rem}.header nav{gap:1rem}.language-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.language-strip h3{grid-column:1/-1}.language-strip strong{font-size:.875rem}}
@media(max-width:380px){h1{font-size:2.35rem}.brand-name{font-size:.8125rem}.nav-contact{padding:.5rem .75rem}.hero-note{gap:.4rem}.hero-note span+span:before{margin-right:.4rem}.language-strip{grid-template-columns:1fr}.language-strip>div{flex-direction:row;justify-content:space-between;gap:1rem}}

/* Responsive refinements for narrow phones, tablets, landscape and safe areas. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg{max-width:100%}
.hero-copy,.hero-side,.expertise-card,.career-content,.background-list article>div{min-width:0}
.expertise-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.nav-contact{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.brand{min-height:44px}
.text-link{display:inline-flex;align-items:center;min-height:44px}
a,button,summary{touch-action:manipulation}
.tags li,.project-tags span{overflow-wrap:anywhere}
.section-wrap,.hero{padding-left:max(clamp(1.5rem,6vw,8rem),env(safe-area-inset-left));padding-right:max(clamp(1.5rem,6vw,8rem),env(safe-area-inset-right))}
.header{padding-left:max(clamp(1.5rem,6vw,8rem),env(safe-area-inset-left));padding-right:max(clamp(1.5rem,6vw,8rem),env(safe-area-inset-right))}
.back-to-top{right:calc(1.25rem + env(safe-area-inset-right));bottom:calc(1.25rem + env(safe-area-inset-bottom))}
.footer{padding-bottom:calc(2.5rem + env(safe-area-inset-bottom));padding-right:max(clamp(1.5rem,6vw,8rem),calc(5.5rem + env(safe-area-inset-right)))}
@media(max-width:1050px){.expertise-grid{grid-template-columns:1fr}.hero{grid-template-columns:minmax(0,1fr);min-height:auto}.hero-copy{max-width:680px}.hero-copy .intro{max-width:54ch}.hero-backdrop::after{background:linear-gradient(90deg,rgba(8,14,25,.98) 0%,rgba(8,14,25,.88) 35%,rgba(8,14,25,.65) 65%,rgba(8,14,25,.25) 100%),linear-gradient(0deg,var(--bg) 0%,rgba(8,14,25,.65) 20%,transparent 70%)}.hero-actions{max-width:680px}}
@media(max-width:720px){.section-wrap,.hero,.header{padding-left:max(6%,env(safe-area-inset-left));padding-right:max(6%,env(safe-area-inset-right))}.hero-backdrop::after{background:linear-gradient(90deg,rgba(8,14,25,.94),rgba(8,14,25,.7)),linear-gradient(0deg,var(--bg) 0%,rgba(8,14,25,.9) 35%,transparent 90%)}.header nav a{min-width:44px;justify-content:center}.hero-actions{width:100%}.footer{padding-right:calc(5.5rem + env(safe-area-inset-right))}}
@media(max-width:380px){.header .brand-name{display:none}.header{gap:.8rem}.header nav{padding-top:0}.intro{font-size:1rem}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1050px){.header{padding-top:.75rem;padding-bottom:.75rem}.hero{padding-top:2rem;gap:2rem}.hero-copy .intro{max-width:62ch}.expertise,.projects,.background{padding-top:3rem;padding-bottom:3rem}}
@media(hover:none){.button:hover,.back-to-top:hover{transform:none}.project-card:hover{box-shadow:none}}

/* Browser-based contact, with a clipboard option for other email services. */
.contact-email-help{max-width:65ch;color:#b4c7e2;font-size:.95rem;margin:1.5rem 0 .75rem}
.copy-email{cursor:pointer;min-width:180px}
.copy-email:disabled{cursor:wait;opacity:.75}
.copy-status{min-height:1.7em;color:#c7daf4;font-size:.9rem;overflow-wrap:anywhere;margin:.7rem 0 0}

/* Supplied company logos, paired with the employer names. */
.career-company{display:flex;align-items:center;gap:1rem;margin-bottom:1.2rem;min-width:0}
.company-logo{display:flex;align-items:center;justify-content:center;flex:0 0 64px;width:64px;height:64px;overflow:hidden;border-radius:6px;background:#fff;border:1px solid #35496c}
.company-logo img{display:block;width:100%;height:100%;object-fit:contain}
.company-logo--axa{background:#003b92}
.company-logo--axa img{object-fit:cover;transform:scale(1.58)}
.company-logo--bcp img{transform:scale(1.35)}
.career-company .career-employer{margin:0!important;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:720px){.career-company{gap:.85rem;margin-bottom:1rem}.company-logo{flex-basis:56px;width:56px;height:56px}.career-company .career-employer{font-size:.95rem}}


/* Aligned blue section numbers, clear titles and blue supporting text. */
.section-title-row{--section-heading-size:clamp(1.9rem,4.2vw,3.6rem);display:flex;align-items:baseline;gap:1.1rem;min-width:0}
.section-title-row .section-title{font-family:var(--display);font-size:var(--section-heading-size);font-weight:600;line-height:1.15;letter-spacing:-.035em;color:var(--text);margin:0;min-width:0;overflow-wrap:anywhere}
.section-number{font-family:var(--display);font-size:var(--section-heading-size);font-weight:500;letter-spacing:-.035em;line-height:1.15;color:var(--text);flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.section-subtitle{font-family:var(--display);font-size:clamp(1.15rem,1.7vw,1.55rem);font-weight:500;line-height:1.55;letter-spacing:0;color:var(--blue);max-width:65ch;margin:1rem 0 0}
.section-intro{margin-top:.85rem;color:#b9d1f7;line-height:1.85;max-width:68ch}
.projects-heading>p{color:#b9d1f7;line-height:1.8}
.contact-note{color:#b9d1f7}
.contact>.section-title-row{margin-bottom:1.6rem}
.contact-body .section-subtitle{margin:0;max-width:60ch}
.contact-body .section-subtitle span{color:inherit}
@media(max-width:720px){.section-title-row{gap:.8rem}.section-subtitle{margin-top:.9rem}.contact>.section-title-row{margin-bottom:1.3rem}}

/* Clear domain heading and a single invitation to explore. */
.hero-side .panel-top{display:block;padding-bottom:1.5rem}
.hero-side .panel-top h2{font-family:var(--display);font-size:clamp(1.5rem,2.4vw,2.2rem);font-weight:600;line-height:1.25;letter-spacing:-.025em;color:var(--text);margin:0}
.hero-side .focus-row{align-items:baseline;padding:1.3rem 0;border-bottom:1px solid #35435b}
.hero-side .row-number{font-size:1.15rem;color:var(--text);margin-top:0;align-self:baseline}
.hero-side .focus-row h3{font-size:clamp(1.4rem,1.8vw,1.7rem);font-weight:500;line-height:1.3;letter-spacing:-.03em;margin:0 0 .45rem;color:var(--text)}
.hero-side .focus-row p{color:#b9d1f7;line-height:1.6}
.hero-bottom{justify-content:center;padding-top:1rem}
.hero-bottom a{display:inline-flex;align-items:center;gap:.75rem;min-height:44px;font-size:1rem;color:var(--blue);font-weight:500}
.hero-bottom a span{font-size:1.3rem}
.hero-bottom a:hover{color:var(--text)}
@media(max-width:720px){.hero-side .panel-top{padding-bottom:1.1rem}.hero-side .focus-row{padding:1.1rem 0;border-bottom:0}.hero-side .focus-row:last-child{border-bottom:1px solid #35435b}.hero-bottom{gap:0}}
/* Technical environment heading colors. */
.subsection-header h3{color:var(--blue)}
.subsection-header p{color:#b9d1f7}

/* Mobile portrait: reserve visible space for the face above the copy. */
@media(max-width:720px) and (orientation:portrait){
  .hero{padding-top:clamp(15rem,65vw,21rem)}
  .hero-backdrop{bottom:auto;height:clamp(28rem,125vw,36rem)}
  .hero-photo{width:100%;height:100%;object-fit:cover;object-position:center 20%}
  .hero-backdrop::after{background:linear-gradient(180deg,rgba(8,14,25,.06) 0%,rgba(8,14,25,.12) 32%,rgba(8,14,25,.8) 59%,var(--bg) 85%),linear-gradient(90deg,rgba(8,14,25,.3),transparent 65%)}
}
/* Two direct links to projects and professional experience. */
.hero-bottom{flex-wrap:wrap;gap:.5rem 2.5rem}
.hero-bottom a{padding:.3rem .5rem;text-align:center}
@media(max-width:380px){.hero-bottom{gap:.4rem 1rem}.hero-bottom a{font-size:.9375rem}}

/* Education is the fourth main section. */
.education{padding-top:6rem;padding-bottom:5rem;border-top:1px solid var(--line)}
@media(max-width:720px){.education{padding-top:3.5rem;padding-bottom:3.5rem}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1050px){.education{padding-top:3rem;padding-bottom:3rem}}
