/* Al-Ghazali / midnight engineering portfolio. */
:root{--bg:#050710;--bg2:#0b1020;--blue:#7cb9ff;--blue-deep:#3b71f3;--muted:#a5b0c5;--muted2:#8995ad;--display:'Space Grotesk',sans-serif;--line:rgba(154,181,244,.18);--line2:rgba(154,181,244,.12)}
html{color-scheme:dark;scroll-padding-top:100px}
body{background:#050710;isolation:isolate}
body::before{background:radial-gradient(ellipse at 75% 15%,#17265833,transparent 48%)}
#sky{opacity:.48}
.ambient-glow{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.ambient-glow i{position:absolute;right:-15%;top:-20%;width:75vw;height:70vw;border-radius:50%;background:radial-gradient(ellipse,#2849ac26,transparent 67%);animation:ambient-drift 18s ease-in-out infinite alternate}
.ambient-glow i+ i{right:auto;left:-30%;top:45%;background:radial-gradient(ellipse,#5630a51c,transparent 65%);animation-delay:-8s}
@keyframes ambient-drift{to{transform:translate(-6%,12%) scale(1.15)}}
.skip-link{position:fixed;left:16px;top:-80px;z-index:300;background:#b7d8ff;color:#081021;padding:12px 20px;border-radius:10px}
.skip-link:focus{top:12px}
a:focus-visible,button:focus-visible,canvas:focus-visible{outline:2px solid #a6cfff;outline-offset:5px}
.rv{opacity:1;transform:none}
.motion-ready .rv:not(.in){opacity:0;transform:translateY(24px)}
.site-header{top:20px;max-width:1440px;margin:auto;padding:0 5%;gap:22px}
.brand-pill{background:none;border:0;padding:0;gap:12px;backdrop-filter:none}
.brand-mark{font-family:var(--display);font-size:28px;letter-spacing:-2px;color:#f2f5ff}
.brand-mark>span{color:#71a5ff}
.brand-label{font-family:var(--mono);font-size:10px;letter-spacing:.1em;color:#ccd6eb}
.nav-pill{background:#0b1022cc;border-color:#8caef525;padding:6px;box-shadow:0 8px 30px #0002}
.nav-pill a{font-size:12px;padding:9px 15px}
.nav-pill a.active{color:#c4ddff;background:#244e9c55;box-shadow:inset 0 0 0 1px #598cff35}
.resume-pill{border-radius:12px;background:#10172aaa;font-size:10px;padding:11px 17px}
.hero{padding:130px 5% 36px;max-width:1440px;overflow:hidden}
.hero-ghost{top:auto;bottom:188px;font-size:clamp(60px,14vw,200px);font-weight:700;letter-spacing:-.06em;-webkit-text-stroke:1px #8caeff0b}
.hero-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:center;min-height:570px}
.hero-copy{padding:22px 0 34px;position:relative;z-index:2}
.hero-status{display:inline-flex;align-items:center;gap:10px;color:#9fc5ff;font-family:var(--mono);font-size:9px;letter-spacing:.1em;border:1px solid #679bfd35;background:#18284a66;border-radius:99px;padding:8px 13px;margin:0 0 31px}
.hero-status>span{height:6px;width:6px;background:#70e1c0;border-radius:50%;box-shadow:0 0 12px #70e1c080}
.hero-intro{color:#b1bdd2;font-size:18px;margin:0 0 8px}
.hero-title{font-weight:700;letter-spacing:-.065em;line-height:1.08;text-transform:none;margin:0 0 23px}
.ht-line,.ht-accent{font-size:clamp(44px,5.55vw,80px);letter-spacing:-.065em}
.ht-accent{background:linear-gradient(105deg,#77aaff 5%,#a5b4ff 55%,#c4a7fb);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:none}
.title-dot{color:#78abff}
.type-row{font-size:clamp(12px,1.3vw,17px);margin:0 0 18px;min-height:28px}
.type-prefix{font-size:11px;color:#6f82a4;margin-right:8px}
.caret{width:2px;background:#7daaff}
.hero-lead{max-width:495px;font-size:15px;line-height:1.85;color:#9daac3}
.hero-actions{gap:10px;margin-top:28px}
.btn{padding:13px 18px;letter-spacing:.03em;border-radius:12px;font-size:11px;font-weight:600;background:#10172899}
.btn-primary{background:#4279ee;color:white;border-color:#6596fb;box-shadow:0 5px 28px #3c72ed35}
.btn-primary:hover{background:#548bff;color:white;box-shadow:0 8px 32px #3c72ed55}
.hero-findme{margin-top:28px;gap:20px}
.hero-findme .mono-label{font-size:9px;letter-spacing:.12em;color:#7789a8}
.hero-findme a{font-size:12px;border-bottom:1px solid #657caa44;padding-bottom:4px}
.hero-side{position:relative;min-width:0;order:0;padding:0}
.idcard-scene{width:100%;height:575px;padding:0;perspective:1200px;position:relative;isolation:isolate}
.idcard-scene::before{content:'';position:absolute;inset:12% -15% 3%;background:radial-gradient(ellipse,#3259b526,transparent 65%);pointer-events:none;z-index:-1}
.scene-coordinate{position:absolute;right:12px;top:14px;font:9px var(--mono);letter-spacing:.13em;color:#7b8baa}
.scene-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;font:9px var(--mono);letter-spacing:.18em;color:#7383a0}
.lanyard-fallback{position:absolute;top:58px;left:50%;transform:translateX(-50%)}
.lanyard-fallback .idcard{width:260px;animation:none;transform:rotate(-5deg)}
.lanyard-fallback .idcard-photo{height:265px}
.lanyard-fallback .idcard-name{font-size:27px;letter-spacing:-.04em}
.lanyard-fallback .idcard-role{font-size:7px}
.lanyard-fallback .idcard-strip{font-size:6px}
.lanyard-fallback .idcard-strap{top:-65px;height:80px}
.lanyard-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;touch-action:pan-y;outline:none}
.lanyard-ready .lanyard-fallback{visibility:hidden}
.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 25px;font:9px var(--mono);letter-spacing:.14em;color:#8291ab}
.hero-bottom a{display:flex;align-items:center;gap:18px;color:#b8c8e2}
.hero-bottom a span{font-size:18px;animation:scroll-cue 2.5s ease-in-out infinite}
@keyframes scroll-cue{50%{transform:translateY(5px)}}
.section{padding:96px 5% 24px;max-width:1440px;scroll-margin-top:75px}
.sec-head{margin-bottom:32px;position:relative}
.sec-head::after{content:'';position:absolute;left:0;bottom:-14px;width:42px;height:2px;background:linear-gradient(90deg,#76adff,#c3a8f0)}
.sec-head .mono-label{color:#8498bd;font-size:9px;letter-spacing:.15em}
.sec-title{font-size:clamp(32px,4.2vw,56px);font-weight:600;letter-spacing:-.055em;line-height:1.15;text-transform:none;margin-top:14px}
.about-grid{gap:40px;margin-top:45px;grid-template-columns:.8fr 1.2fr}
.about-photo{min-height:440px;border-radius:22px}
.about-copy h3{font-family:var(--display);letter-spacing:-.03em;font-size:26px;line-height:1.3}
.about-copy p{font-size:14px;line-height:1.8}
.about-copy .lead{font-size:15px;color:#c2cee4}
.fact-grid{gap:10px}
.fact{padding:16px;background:#10182b80}
.fact strong{font-size:12px}
.fact small{font-size:10px;color:#8d9db9}
.tabs{margin-top:45px}.tab-btn{font-size:10px;letter-spacing:.07em;padding:11px 18px}
.tab-btn.active{background:#244b91;color:#d2e5ff;border-color:#4c7ecd}
.skill-row,.xp-card,.project-card,.fact,.contact-card,.soft-grid li,.tool-grid>div,.org-list>div{background:linear-gradient(130deg,#10182b99,#0c102099);transition:border-color .3s,background .3s,transform .35s,box-shadow .35s}
.skill-row:hover,.fact:hover,.contact-card:hover,.soft-grid li:hover{border-color:#7199df55;background-color:#17264255}
.skill-row>span{font-family:var(--mono);font-size:15px;padding-top:3px}
.skill-row{padding:22px;grid-template-columns:38px 1fr}
.skill-row strong{font-family:var(--display);font-size:17px;font-weight:500}
.xp-grid,.project-grid{gap:20px;margin-top:44px}
.xp-card{padding:27px;border-radius:20px}
.xp-year{font-family:var(--mono);font-size:12px;letter-spacing:.04em}
.xp-card h3{font-family:var(--display);font-size:22px;letter-spacing:-.025em;margin-top:18px}
.detail-title{font-size:clamp(30px,3.7vw,49px);letter-spacing:-.05em;font-weight:600;line-height:1.1}
.glass{background:#0d142580;border-radius:22px}
.resp>span,.org-list>div>span{font-family:var(--mono);font-size:12px;padding-top:4px}
.project-card{border-radius:22px}
.project-media{height:285px}
.project-copy{padding:27px}
.project-copy h3{font-family:var(--display);font-size:25px;font-weight:500;letter-spacing:-.035em;line-height:1.25}
.project-copy .tags{font-size:9px;color:#a3b8e4}
.project-copy p{line-height:1.75}
.badge{background:#274b87;color:#c7deff;font-size:8px}
.project-open{opacity:1;transform:none}
a.project-card:hover{transform:translateY(-7px);box-shadow:0 20px 55px #03050c80,0 0 30px #4467b515}
.project-card:focus-visible .project-open{opacity:1;transform:none}
.org-grid{margin-top:45px}
.org-copy h3{font-family:var(--display);font-weight:500;letter-spacing:-.03em}
.cert-grid{margin-top:44px;gap:16px}.cert{transition:transform .3s,border-color .3s}.cert:hover{transform:translateY(-4px);border-color:#71a7ff}
.contact-grid-layout{margin-top:45px;gap:20px}.contact-card{padding:26px}.contact-card strong{font-size:15px}
.site-footer{margin-top:75px;border-top:1px solid var(--line2);padding-top:50px;max-width:calc(1440px - 10%)}
.foot-line{font-size:10px;letter-spacing:.12em}.foot-copy{font-size:11px}
@media(min-width:1500px){.hero,.section{padding-left:72px;padding-right:72px}}
@media(max-width:1080px){.hero-grid{grid-template-columns:1.05fr 1fr;gap:0}.hero-side{order:0}.hero{padding-top:115px}.ht-line,.ht-accent{font-size:5.7vw}.brand-label{display:none}.nav-pill a{padding:9px 11px}.idcard-scene{height:530px}.hero-actions .btn{padding:12px 14px;font-size:10px}.about-grid{grid-template-columns:.85fr 1.15fr}.fact-grid{grid-template-columns:1fr}.detail-layout,.org-grid{grid-template-columns:1fr}.contact-grid-layout{grid-template-columns:.7fr 1.3fr}}
@media(max-width:860px){.site-header{top:14px;flex-wrap:nowrap;justify-content:space-between;padding:0 5%}.nav-pill{order:0}.hero-grid{min-height:520px}.hero-status{font-size:7px;padding:7px 9px;gap:6px}.hero-intro{font-size:16px}.hero-lead{font-size:13px}.type-row{font-size:12px}.type-prefix{display:none}.idcard-scene{height:500px}.hero-actions{gap:7px}.hero-actions .btn{font-size:9px}.hero-actions .btn:last-child{display:none}.hero-bottom{font-size:8px}.stats-row{grid-template-columns:repeat(4,1fr)}.stat{padding:22px 18px}.stat strong{font-size:30px}.stat span:last-child{font-size:7px}.xp-grid,.project-grid{grid-template-columns:1fr 1fr}.project-media{height:210px}.project-copy{padding:22px}.project-copy h3{font-size:21px}.contact-grid-layout{grid-template-columns:1fr}.contact-photo{height:360px;min-height:0}.contact-cards{grid-template-columns:1fr 1fr}.resume-pill{display:none}.about-grid{grid-template-columns:1fr}.about-photo{height:410px;min-height:0}.fact-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){html{scroll-padding-top:100px}.site-header{top:10px;gap:10px;flex-wrap:wrap}.brand-pill{margin:auto}.brand-label{display:inline}.brand-mark{font-size:23px}.brand-label{font-size:9px}.nav-pill{order:3;width:100%;justify-content:center;border-radius:14px;padding:5px}.nav-pill a{padding:8px 10px;font-size:10px}.hero{padding:140px 6% 28px}.hero-grid{grid-template-columns:1fr;gap:0;min-height:0}.hero-copy{padding:0;text-align:center}.hero-status{font-size:8px;margin-bottom:22px}.hero-intro{margin-bottom:10px}.hero-title{margin-bottom:22px}.ht-line,.ht-accent{font-size:clamp(42px,11.6vw,70px);line-height:1.05}.type-row{font-size:13px}.hero-lead{font-size:13px;margin:0 auto;max-width:390px}.hero-actions,.hero-findme{justify-content:center}.hero-actions{margin-top:24px}.hero-actions .btn{font-size:10px;padding:13px 17px}.hero-findme{margin-top:23px;gap:18px}.hero-side{margin:20px -5% 0}.idcard-scene{height:495px}.scene-coordinate{top:16px;right:20px;font-size:8px}.scene-caption{font-size:8px}.hero-bottom{margin-top:25px;font-size:7px;line-height:1.6}.hero-bottom>a{gap:10px}.hero-bottom>span{max-width:130px}.hero-ghost{display:none}.stats-row{grid-template-columns:repeat(2,1fr);border-radius:16px}.stat{padding:22px}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line2)}.stat strong{font-size:34px}.stat span:last-child{font-size:8px}.section{padding:72px 6% 15px}.sec-head .mono-label{font-size:8px;line-height:1.8}.sec-title{font-size:35px}.about-grid{gap:26px}.about-photo{height:380px}.about-copy h3{font-size:24px}.fact-grid{grid-template-columns:1fr}.fact strong{font-size:13px}.tabs{gap:6px}.tab-btn{font-size:8px;padding:10px 12px}.skill-row{padding:18px;gap:9px;grid-template-columns:28px 1fr}.skill-row strong{font-size:16px}.skill-row p{font-size:12px}.xp-grid,.project-grid{grid-template-columns:1fr;gap:16px}.project-media{height:240px}.project-copy h3{font-size:24px}.glass{padding:22px 18px}.gallery{grid-auto-rows:130px}.contact-cards{grid-template-columns:1fr}.contact-photo{height:350px}.cert-grid{gap:10px}.site-footer{padding:35px 6%;max-width:88%;margin-top:55px}.foot-line{line-height:1.8;font-size:8px}.foot-copy{font-size:10px}.to-top{width:40px;height:40px;right:12px;bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ambient-glow i,.hero-bottom a span,.caret{animation:none}.motion-ready .rv:not(.in){opacity:1;transform:none}.rv,.media-slot img,.project-card,.btn{transition:none}.hero-title{transform:none!important}}
.lanyard-canvas{pointer-events:none;touch-action:pan-y}
.lanyard-hitarea{position:absolute;z-index:2;background:transparent;border:0;border-radius:16px;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent;padding:0}
.lanyard-hitarea.is-dragging{cursor:grabbing}
.lanyard-hitarea:focus-visible{outline:0;box-shadow:0 0 0 2px #ffffff80}
.stat strong .count{font:inherit;letter-spacing:inherit;color:inherit}
html:not(.motion-ready) .media-slot img{opacity:1}
html:not(.motion-ready) .media-slot .media-fallback{display:none}
/* The same draggable physics remains available without a GPU. */
.lanyard-css .lanyard-fallback{transform:translateX(-50%);z-index:2;perspective:1000px}
.lanyard-css .idcard{width:230px;transform-origin:50% 0;overflow:hidden;will-change:transform}
.lanyard-css .idcard-photo{height:205px;min-height:0}
.lanyard-css .idcard-body{padding:14px 16px 12px}
.lanyard-css .idcard-name{font-size:24px;line-height:1.1}
.lanyard-css .idcard-role{font-size:7px;letter-spacing:.1em;line-height:1.6}
.lanyard-css .idcard-strip{font-size:6px;margin-top:10px;padding-top:10px}
.lanyard-css .idcard-foot{font-size:7px;padding:10px 16px}
.lanyard-css .idcard-strap{display:none}
.fallback-rope{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.fallback-clasp{position:absolute;top:-15px;left:50%;height:22px;width:13px;border:3px solid #99aac5;border-radius:5px;background:linear-gradient(90deg,#34435a,#aabbcf,#34435a);transform-origin:50% 0;z-index:2}
.fallback-grab{position:absolute;inset:0;z-index:4;border:0;background:none;cursor:grab;touch-action:none;border-radius:22px}
.fallback-grab.is-dragging{cursor:grabbing}
.fallback-grab:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #ffffff80}
@media(max-width:640px){.lanyard-css .idcard{width:215px}.lanyard-css .idcard-photo{height:185px}.lanyard-css .idcard-name{font-size:22px}}
.lanyard-css .idcard{width:220px}
.lanyard-css .idcard-photo{height:175px}
@media(max-width:640px){.lanyard-css .idcard{width:200px}.lanyard-css .idcard-photo{height:140px}}
/* Keep the blue portrait fully framed inside the badge, and give the cutout
   portrait beneath it a soft charcoal backdrop in the About section. */
.idcard-photo{background:#123bda}
.idcard-photo img{object-fit:cover;object-position:center 5%}
.idcard-photo.has-image:hover img{transform:none}
.lanyard-css .idcard-photo{height:250px}
.idcard-scene.lanyard-css{height:575px}
@media(max-width:640px){.idcard-scene.lanyard-css{height:530px}.lanyard-css .idcard-photo{height:230px}}
.about-photo{background:radial-gradient(ellipse at 50% 35%,#27354f 0%,#151e31 58%,#0a1020 100%)}
.about-photo img{object-fit:contain;object-position:center bottom}

/* Justified rows keep the original photos complete and remove letterboxing. */
.gallery,.org-gallery{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:10px;align-content:start}
.photo-row{display:flex;gap:10px;align-items:flex-start;min-width:0}
.gallery .media-slot,.org-gallery .media-slot{
  flex:var(--photo-ratio) 1 0%;grid-column:auto;grid-row:auto;
  aspect-ratio:auto;height:auto;min-height:0;min-width:0;
  padding:0;border:0;border-radius:12px;background:transparent;
}
.gallery .media-slot img,.org-gallery .media-slot img,
.project-card .project-media img,.cert-grid .cert img{
  display:block;width:100%;height:auto;object-fit:contain;transform:none;
}
.section .media-slot.has-image:hover img{transform:none}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:20px}
.project-grid .project-card{display:flex;width:auto;height:100%;margin:0;break-inside:auto}
.project-card .project-media{height:clamp(230px,26vw,320px);min-height:0;aspect-ratio:auto;padding:0;background:radial-gradient(circle at 50% 42%,#1a2947,#0a1120 72%);flex:none}
.project-card .project-media img{width:100%;height:100%;object-fit:contain}
.project-card .project-copy{display:flex;flex:1;flex-direction:column}
.project-card .badge{align-self:flex-start}
.project-card .project-cta{margin-top:auto;padding-top:16px}
.project-open{display:none}
.cert-grid{display:block;columns:4;column-gap:14px}
.cert-grid .cert{display:inline-block;vertical-align:top;width:100%;height:auto;aspect-ratio:auto;padding:0;border:0;break-inside:avoid;margin:0 0 14px;background:transparent}
@media(max-width:1080px){.cert-grid{columns:3}}
@media(max-width:640px){.project-grid{grid-template-columns:1fr;grid-auto-rows:auto}.project-card .project-media{height:260px}.cert-grid{columns:2}}
@media(max-width:520px){
  .photo-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
}

.cert-grid .cert{cursor:zoom-in;transition:box-shadow .2s ease}
.cert-grid .cert:focus-visible{outline:2px solid #a6cfff;outline-offset:4px}
.cert-preview{position:fixed;z-index:150;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(800px,76vw);pointer-events:none;filter:drop-shadow(0 24px 70px #000c);animation:cert-preview-in .22s ease-out}
.cert-preview[hidden]{display:none}
.cert-preview img{display:block;width:100%;max-height:78vh;object-fit:contain;border-radius:8px}
.cert-viewer{position:fixed;inset:0;margin:auto;width:min(1100px,96vw);height:92vh;height:92dvh;max-width:96vw;max-height:94dvh;padding:0;border:1px solid #6685b54d;border-radius:18px;background:#0c1322;color:#edf4ff;box-shadow:0 24px 90px #000a;overflow:hidden}
.cert-viewer[open]{display:flex;flex-direction:column;animation:cert-viewer-in .24s ease-out}
.cert-viewer::backdrop{background:#02050de0;backdrop-filter:blur(7px)}
.cert-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #ffffff14;flex-shrink:0}
.cert-toolbar strong{font-size:14px}.cert-toolbar>div{display:flex;gap:8px}
.cert-toolbar button,.cert-toolbar .cert-original{min-height:44px;padding:8px 14px;border:1px solid #8caef544;border-radius:10px;background:#1a2944;color:#e7f0ff;cursor:pointer;font:inherit;font-size:13px}
.cert-toolbar .cert-original{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}
.cert-toolbar .cert-close{min-width:44px;font-size:20px}
.cert-viewer-hint{padding:10px 16px 0;margin:0;color:#a5b0c5;font-size:12px;flex-shrink:0}
.cert-stage{flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.cert-stage img{display:block;max-width:none;height:auto;margin:0 auto;transition:width .22s ease;border-radius:3px}
@media(max-width:640px){.cert-toolbar{flex-wrap:wrap;padding:10px}.cert-toolbar>div{width:100%;justify-content:space-between}.cert-toolbar button,.cert-toolbar .cert-original{padding:8px 10px;font-size:12px}}
@keyframes cert-preview-in{from{opacity:0;transform:translate(-50%,-50%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes cert-viewer-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.cert-preview,.cert-viewer[open]{animation:none}.cert-stage img{transition:none}}

/* Engineering portfolio: a readable work index and technical lists replace
   decorative counters and repeated cards. Lanyard motion remains the focus. */
.ambient-glow i{animation:none}
.menu-toggle,.nav-pill .nav-resume{display:none}
.hero-status{font-size:10px;color:#bad4ff}
.hero-lead{color:#b5c2d9}
.work-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:22px;border-top:1px solid #8caef538;border-bottom:1px solid #8caef538}
.work-index-item{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:22px 48px 24px 18px;border-right:1px solid #8caef52c;transition:background .25s ease}
.work-index-item:last-child{border-right:0}
.work-index-item:hover,.work-index-item:focus-visible{background:#1a2b4b5c}
.work-index-no{font:10px var(--mono);letter-spacing:.13em;color:#9ec2ff}
.work-index-item strong{font:600 clamp(18px,2vw,25px)/1.2 var(--display);letter-spacing:-.025em;color:#f5f7ff}
.work-index-item>span:not(.work-index-no):not(.work-index-arrow){font-size:12px;line-height:1.5;color:#b3bfd6}
.work-index-arrow{position:absolute;right:18px;top:25px;font:20px var(--display);color:#8eb6f8;transition:transform .25s ease}
.work-index-item:hover .work-index-arrow{transform:translate(2px,-2px)}
.sec-head .mono-label,.hero-bottom,.scene-coordinate,.scene-caption{color:#9fb4d6;font-size:10px}
.skill-rows{gap:0;border-top:1px solid var(--line2)}
.skill-row{border:0;border-bottom:1px solid var(--line2);border-radius:0;background:transparent;padding:19px 10px;transition:background .25s}
.skill-row:hover{background:#1827444d}
.skill-row>span{font:12px var(--mono);letter-spacing:.12em;color:#9ebdf4;opacity:1;padding-top:4px}
.skill-row strong{font-size:17px}
.skill-row p{font-size:13px;color:#aebbd2}
.soft-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px;border-top:1px solid var(--line2)}
.soft-grid li{border:0;border-bottom:1px solid var(--line2);border-radius:0;background:transparent;padding:19px 8px}
.soft-grid strong{font-size:16px}.soft-grid span{font-size:13px;color:#aebbd2}
.xp-grid{grid-template-columns:1fr;gap:0;border-top:1px solid var(--line2)}
.xp-card{display:grid;grid-template-columns:minmax(120px,18%) minmax(0,1fr);align-content:start;column-gap:28px;border:0;border-bottom:1px solid var(--line2);border-radius:0;background:transparent;padding:22px 10px;transition:background .25s}
.xp-card:hover{background:#1827444d;transform:none}
.xp-year{grid-row:1/5;font:12px var(--mono);letter-spacing:.12em;color:#9ebdf4;padding-top:5px}
.xp-card h3{margin:0;font:600 20px/1.3 var(--display)}
.xp-card p:last-of-type{font-size:13px}
.xp-link{margin-top:10px}
.tag-strip span{font-size:10px;color:#a8b8d2}
@media(max-width:860px){
  .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;top:12px;padding:0 5%}
  .site-header .brand-pill{justify-self:start;margin:0}
  .menu-toggle{display:inline-flex;justify-content:center;align-items:center;min-width:72px;min-height:44px;padding:8px 14px;border:1px solid #8caef54a;border-radius:12px;background:#101a2ddd;color:#e4eeff;font:600 13px var(--display);cursor:pointer}
  .menu-toggle[aria-expanded="true"]{background:#25467d;border-color:#80aef6}
  .nav-pill{display:none;grid-column:1/-1;order:3;width:100%;max-width:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:10px;border-radius:16px;background:#0b1428f5;box-shadow:0 22px 50px #0008}
  .nav-pill.open{display:grid}
  .nav-pill a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;font-size:13px;color:#d4e1f7}
  .nav-pill .nav-resume{display:flex;color:#a9c8ff;border:1px solid #7b9fdb45}
  .work-index-item{padding:20px 32px 22px 12px}
}
@media(max-width:640px){
  .work-index{grid-template-columns:1fr;margin-top:20px}
  .work-index-item{display:grid;grid-template-columns:76px minmax(0,1fr) 24px;grid-template-rows:auto auto;gap:3px 10px;min-height:76px;padding:15px 8px;border-right:0;border-bottom:1px solid #8caef52c}
  .work-index-item:last-child{border-bottom:0}
  .work-index-no{grid-row:1/3;align-self:center;font-size:9px}
  .work-index-item strong{grid-column:2;font-size:18px}
  .work-index-item>span:not(.work-index-no):not(.work-index-arrow){grid-column:2;font-size:11px}
  .work-index-arrow{position:static;grid-column:3;grid-row:1/3;align-self:center;font-size:18px}
  .xp-card{grid-template-columns:1fr;gap:4px;padding:20px 8px}
  .xp-year{grid-row:auto;padding:0 0 5px}
  .soft-grid{grid-template-columns:1fr}
  .hero-status{font-size:9px}
}

/* About: keep the portrait to a deliberate upper-body crop, while listing the
   exact soft skills from the linked CV next to the profile text. */
.about-photo{height:clamp(470px,42vw,590px);min-height:0;align-self:start}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.about-photo.has-image:hover img{transform:none}
.about-soft{margin-top:28px;padding-top:20px;border-top:1px solid var(--line2)}
.about-soft h4{font:600 13px var(--display);letter-spacing:.1em;color:#c7dcff;margin:0 0 12px}
.about-soft-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;list-style:none;padding:0;margin:0}
.about-soft-list li{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 0;border-bottom:1px solid var(--line2);font-size:13px;color:#d8e2f2}
.about-soft-list li::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:#7cb9ff}
@media(max-width:860px){.about-photo{width:min(100%,430px);height:auto;aspect-ratio:.72;max-height:590px;justify-self:center}}
@media(max-width:640px){.about-soft-list{grid-template-columns:1fr}.about-soft{margin-top:24px}}

/* Organization: both role descriptions precede the complete photo gallery. */
.org-grid{grid-template-columns:minmax(0,1fr);gap:30px}
.org-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;align-items:start}
.org-role{min-width:0}
.org-role>p{color:var(--muted);margin:0 0 6px}
.org-role .org-list{margin-top:16px}
.org-copy .highlights{grid-column:1/-1;margin-top:0}
.org-gallery{width:100%;max-width:960px;margin-inline:auto}
@media(max-width:900px){.org-copy{grid-template-columns:1fr;gap:26px}.org-copy .highlights{grid-column:auto}}

/* Contact: the four details fill the section evenly without a portrait. */
.contact-grid-layout{display:block}
.contact-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.contact-card{min-height:150px}
@media(max-width:640px){.contact-cards{grid-template-columns:1fr;gap:12px}.contact-card{min-height:112px}}

/* Portfolio polish: let the work and the lanyard lead, with readable supporting type. */
body{font-size:16px}
.about-copy p{font-size:16px;line-height:1.65;max-width:66ch}
.about-copy .lead,.hero-lead{font-size:16px;line-height:1.65}
.project-copy p{font-size:15px;line-height:1.6}
.project-copy .tags{font-size:12px;line-height:1.55;letter-spacing:0}
.project-card .badge{font-size:11px;letter-spacing:.02em}
.skill-row p,.soft-grid span{font-size:14px}
.fact strong{font-size:14px}
.fact small{font-size:12px}
.sec-title{margin-top:0}
.hero-document{margin-top:5px}
.hero-document a{display:inline-flex;align-items:center;min-height:44px;border-bottom:1px solid #8ba6d0;color:#b9cceb;font-size:12px;font-weight:600;letter-spacing:.01em;transition:color .2s,border-color .2s}
.hero-document a:hover{color:#e7f1ff;border-color:#e7f1ff}
.hero-bottom{justify-content:flex-end}
.about-copy .lead{max-width:72ch}
.project-card:first-child .project-media{background:#f7f7f4}
.project-card:first-child .project-media img{object-fit:contain}
.rv{transition-duration:.38s}
.motion-ready .rv:not(.in){transform:translateY(12px)}
.progress span{width:100%;transform:scaleX(0);transform-origin:left center}
.hero-bottom a span{animation:none}
a.project-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #03050c55}
@media(max-width:860px){
  .hero-actions .btn:last-child{display:inline-flex}
  .hero-actions .btn{font-size:12px;padding:12px 16px}
  .hero-lead{font-size:16px}
}
@media(max-width:640px){
  .hero-actions .btn{font-size:12px}
  .project-copy .tags{font-size:12px}
  .sec-title{margin-top:0}
}

/* Education combines each qualification, dates and result in one card. */
.about-copy .fact-grid{grid-template-columns:minmax(0,1fr)}
.fact.education-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px}
.education-card>div{min-width:0}
.education-card strong{font-size:16px;line-height:1.4}
.education-card small{display:block;margin-top:5px}
.education-card .education-logo{width:68px;height:68px;object-fit:contain;flex:0 0 68px}
.education-meta{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}
.education-card .education-meta span{font:12px/1.5 var(--display);color:#afc0da;letter-spacing:0}
.education-meta b{font-weight:500;color:#839abf;margin-right:4px}
#contact{padding-bottom:80px}
@media(max-width:640px){.fact.education-card{padding:18px;gap:14px}.education-card .education-logo{width:54px;height:54px;flex-basis:54px}.education-card strong{font-size:15px}}

/* Balanced profile, full-width education and compact contact links. */
.about-grid{grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:30px 40px;align-items:center}
.about-photo{width:min(100%,350px);height:520px;min-height:0;max-height:none;aspect-ratio:auto;align-self:center;justify-self:center}
.about-photo img{object-fit:contain;object-position:center bottom}
.about-copy .lead{margin-bottom:0}
.about-education{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:0}
.about-education>.fact:last-child{grid-column:1/-1;padding:18px 22px}
.skills-soft .about-soft-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px;border-top:1px solid var(--line2)}
.skills-soft .about-soft-list li{font-size:16px;padding:22px 8px;min-height:64px}
.contact-cards{grid-template-columns:minmax(0,1fr);gap:14px}
.contact-card.contact-link{flex-direction:row;align-items:center;justify-content:flex-start;min-height:104px;padding:24px 28px;gap:22px;background:linear-gradient(120deg,#182031aa,#10151fbb)}
.contact-link .contact-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;margin:0;color:#dceaff;background:#4f88db22}
.contact-icon svg{width:28px;height:28px}.contact-link .icon-linkedin{background:#0a66c2;color:white}
.contact-text{min-width:0}.contact-text strong{display:block;font-size:18px;margin-bottom:5px}
.contact-card .contact-text span{font:14px/1.5 var(--display);color:#a5b4cb;letter-spacing:0;margin:0;overflow-wrap:anywhere}
.contact-link .contact-arrow{margin:0 0 0 auto;font:24px/1 var(--display);color:#8499b9}
a.contact-link:focus-visible{outline:2px solid #8cb8ff;outline-offset:4px}
@media(max-width:860px){.about-grid{grid-template-columns:minmax(0,1fr);gap:26px}.about-photo{width:min(100%,350px);height:520px;justify-self:center}.about-education{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.about-education{grid-template-columns:minmax(0,1fr)}.about-photo{width:min(100%,310px);height:460px}.skills-soft .about-soft-list{grid-template-columns:1fr}.skills-soft .about-soft-list li{padding:18px 4px}.contact-card.contact-link{padding:20px 18px;gap:16px;min-height:96px}.contact-text strong{font-size:17px}.contact-card .contact-text span{font-size:13px}.contact-link .contact-icon{width:40px;height:40px;flex-basis:40px}}

/* Education and career interest sit below the profile summary. */
.about-grid{align-items:start}
.about-education,.about-copy .fact-grid.about-education{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:22px}
.about-education>.fact:last-child{grid-column:auto}
.education-history{padding:18px 22px}
.education-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:13px 0}
.education-entry+.education-entry{border-top:1px solid var(--line2)}
.education-entry>div{min-width:0}
.education-entry strong{font-size:15px;line-height:1.4}
.education-entry small{display:block;margin-top:3px}
.education-entry .education-meta{margin-top:9px}
.education-entry .education-logo{width:56px;height:56px;object-fit:contain;flex:0 0 56px}
@media(max-width:640px){.about-grid{gap:24px}.education-history{padding:16px 18px}.education-entry .education-logo{width:48px;height:48px;flex-basis:48px}}
