:root{color-scheme:dark;--page:#000;--text:#fafafa;--muted:#8b8b8b;--card:#070707;--border:#1b1b1b;--badge:#262626;--blue:#155dfc;--font:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
:root[data-theme=light]{color-scheme:light;--page:#fff;--text:#0a0a0a;--muted:#6e6e6e;--card:#fff;--border:#e5e5e5;--badge:#e5e5e5}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text);font-family:var(--font);transition:background .3s,color .3s}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #2b7fff;outline-offset:5px}h1,h2,h3,p{margin:0}img{display:block}button{border:0}main{min-height:100svh;outline:none}.skip-link{position:fixed;top:8px;left:8px;z-index:50;background:#fff;color:#000;padding:12px;transform:translateY(-150%)}.skip-link:focus{transform:none}
.home{position:relative;min-height:100svh;overflow:hidden;isolation:isolate;display:grid;place-items:center}.hero-art{position:absolute;width:1440px;height:1080px;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--art-scale,1));z-index:-1;pointer-events:none}.gradient{position:absolute;inset:0;background:radial-gradient(ellipse 42% 48% at 43% 8%,#0759f4 0%,#0741b6 32%,transparent 77%),radial-gradient(ellipse 70% 75% at 0% 0%,#5371a1 0%,#283d60 37%,transparent 85%),linear-gradient(180deg,#001849 0%,#020a19 49%,#000 76%);animation:nebula-breathe 18s ease-in-out infinite alternate;transform-origin:50% 15%}.home-word{position:absolute;left:193px;width:1055px;height:159px;opacity:.32;mix-blend-mode:soft-light;overflow:visible}.home-word img{max-width:none}.home-word.product{top:358px}.home-word.designer{top:562.8665px}.stars{position:absolute;top:0;width:1090px;height:539.172px;mix-blend-mode:overlay}.stars.right{left:350px}.stars.left{left:0}.stars img{position:absolute;inset:0;mix-blend-mode:overlay}.intro-card{position:relative;width:485px;height:200px;border-radius:24px;padding:24px;background:#fff;color:#212121;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;box-shadow:0 0 64px #ffffff12,0 0 28px #ffffff0a}.intro-first{position:relative;display:flex;align-items:center;gap:16px;width:300px;height:56px}.intro-name{display:flex;align-items:center;padding:4px 12px;width:163px;height:56px;border-radius:12px;border:1px solid #ffffff3d;background:linear-gradient(90deg,#155dfc,#193cb8);color:#fff}.intro-avatar{position:absolute;left:214px;top:-30px;width:86px;height:86px;border-bottom-right-radius:12px;overflow:hidden}.intro-avatar img{width:106.67%;height:106.67%;max-width:none}.intro-second{display:flex;align-items:center;gap:16px;height:56px}.intro-role{width:295.297px;height:56px;display:flex;align-items:center;padding:4px 12px;background:#ffe8d2;border:1px solid #ffffff8f;border-radius:12px;color:#000}.intro-card .plain-label{font-size:36px;font-weight:600;line-height:48px;letter-spacing:-.4px;white-space:nowrap}.intro-card [data-language=fa]{display:none}html[lang=fa] .intro-card [data-language=en]{display:none}html[lang=fa] .intro-card [data-language=fa]{display:block}html[lang=fa] .intro-card{direction:rtl}html[lang=fa] .intro-first{direction:ltr;flex-direction:row-reverse;width:315px}html[lang=fa] .intro-name{width:163px;justify-content:flex-end}html[lang=fa] .intro-avatar{left:0}html[lang=fa] .intro-role{justify-content:center}html[lang=fa] .intro-card .plain-label{font-size:30px}
html[data-theme=light] .home .gradient{background:radial-gradient(ellipse at 50% 8%,#7fa9ff 0%,#b9d0ff 27%,#e4edff 54%,#fff 83%)}html[data-theme=light] .home-word{mix-blend-mode:multiply;opacity:.1}html[data-theme=light] .intro-card{box-shadow:0 0 64px #ffffff12,0 0 28px #ffffff0a}
#navigation{position:fixed;bottom:max(48px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:20;direction:ltr;display:flex;align-items:center;justify-content:space-between;gap:24px;width:550px;height:72px;border-radius:24px;padding:12px 16px;background:#fff;color:#282930;box-shadow:0 6px 13px #0000000a,0 23px 23px #00000008,0 52px 31px #00000005}.nav-group{display:flex;align-items:center;gap:9px}.nav-item{display:flex;align-items:center;gap:10px}.nav-icon,.utility{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e5e5;flex-shrink:0;transition:transform .2s,background .2s}.nav-icon img,.utility img{flex-shrink:0}.nav-item.active .nav-icon{border:1px solid #ffffff66;background:linear-gradient(90deg,#155dfc,#193cb8)}.nav-item.active:not([data-route=home]) .nav-icon img{filter:brightness(0) invert(1)}.nav-item:not(.active)[data-route=home] .nav-icon img{filter:brightness(.15)}.nav-label{font-size:20px;font-weight:600;letter-spacing:-.4px;color:#155dfc;max-width:95px;white-space:nowrap}.nav-item:not(.active) .nav-label{display:none}.nav-divider{width:1px;height:20px;background:#383838;flex-shrink:0}.nav-icon:hover,.utility:hover{transform:translateY(-2px);background:#f4f7ff}.utility{font-size:12px;font-weight:600}
.screen{position:relative;width:100%;min-height:100svh;padding:64px 80px 160px;animation:appear .3s ease}.screen-heading{font-size:32px;font-weight:600;line-height:48px;color:var(--text);opacity:.64;text-align:center;margin-bottom:16px;letter-spacing:-.7px}.projects-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:repeat(2,564px);justify-content:space-between;gap:24px;padding:24px 64px}.project-card{display:flex;flex-direction:column;gap:16px;padding:24px;border-radius:40px;border:1px solid var(--border);background:var(--card);text-align:start;transition:transform .25s,border-color .25s}.project-card:hover{transform:translateY(-4px)}.project-image{width:100%;aspect-ratio:514/498;object-fit:cover;border-radius:24px}.project-copy h2{font-size:24px;font-weight:600;line-height:32px;letter-spacing:-.2px}.project-copy p{font-size:16px;line-height:26px;color:var(--muted)}.badges{display:flex;gap:8px}.badge{display:inline-flex;align-items:center;justify-content:center;background:var(--badge);border-radius:12px;padding:6px 16px;min-height:32px;font-size:14px;line-height:20px;letter-spacing:.4px}
.thoughts-screen{padding-inline:24px;max-width:1048px;margin:auto}.thoughts-grid{padding:24px;display:grid;grid-template-columns:repeat(3,256px);justify-content:space-between;column-gap:40px;row-gap:64px}.thought-card{width:256px;display:flex;flex-direction:column;gap:18px;text-align:center;padding:0;background:transparent}.thought-card:hover img{transform:translateY(-4px)}.thought-card img{width:256px;height:248.031px;object-fit:cover;border-radius:24px;transition:transform .25s}.thought-card h2{font-size:24px;line-height:32px;letter-spacing:-.2px;font-weight:600}.thought-card p{font-size:16px;line-height:26px;color:var(--muted);white-space:nowrap;position:relative;left:50%;transform:translateX(-50%);width:max-content;max-width:330px}.lab-list{width:min(700px,100%);margin:auto;list-style:none;padding:0;text-align:center}.lab-list li{padding:24px 0}.lab-list li+li:before{content:'';display:block;width:100px;height:2px;background:var(--text);opacity:.16;margin:-24px auto 24px}.lab-list h2{font-size:18px;line-height:28px;font-weight:600}.lab-list p{font-size:16px;line-height:24px}
.detail{padding:54px 24px 180px;display:flex;flex-direction:column;align-items:center;gap:64px}.back-button{width:56px;height:56px;border-radius:16px;background:var(--badge);font-size:28px;display:grid;place-items:center;transition:transform .2s}.back-button:hover{transform:translateY(-3px)}.nexus-word{width:min(800px,100%);aspect-ratio:800/202.239;overflow:hidden}.nexus-word img{transform-origin:top left;transform:scale(var(--nexus-scale,1))}.detail-image{width:min(864px,100%);aspect-ratio:1200/800;object-fit:cover;border-radius:24px}.case-content{max-width:800px;width:100%;display:flex;flex-direction:column;gap:48px}.case-title{font-size:36px;line-height:54px;color:#60a5fa;display:flex;gap:16px;align-items:center}.case-title span+span{border-inline-start:0;padding-inline-start:0;display:flex;align-items:center;gap:16px}.case-title span+span::before{content:"";display:block;flex:0 0 1px;width:1px;height:32px;background:var(--muted);opacity:.42}.case-body{display:flex;flex-direction:column;gap:40px}.case-body h2{font-size:24px;line-height:31.2px;font-weight:600;margin-bottom:8px}.case-body p{font-size:16px;line-height:25.6px;max-width:600px;color:var(--text);opacity:.92}.contact-area{display:flex;flex-direction:column;gap:64px;align-items:center;width:min(864px,100%)}.section-divider{height:2px;width:min(600px,100%);background:var(--text);opacity:.16}.contact-card{width:256px;height:280px;border-radius:32px;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:24px 16px;text-align:center}.contact-avatar{height:80px;width:80px;border:2px solid #ffffff52;border-radius:50%;position:relative}.contact-avatar img{position:absolute;left:-5.81%;top:-2.98%;height:106.67%;width:106.67%;border-bottom-left-radius:50%;border-bottom-right-radius:50%}.contact-card p{font-size:14px;line-height:21px;font-weight:600}.contact-button{display:flex;align-items:center;justify-content:center;min-height:40px;width:224px;border-radius:16px;font-size:14px;line-height:20px;background:linear-gradient(90deg,#2b7fff,#1447e6);border:1px solid #ffffff66;color:#fff}.contact-button:hover{filter:brightness(1.1)}.related-heading{font-size:36px;line-height:54px;color:#60a5fa;font-weight:600;text-align:center;margin-bottom:24px}.related-grid{display:flex;justify-content:space-between;gap:24px;width:100%}.related-card{width:256px;text-align:center}.related-card img{width:100%;aspect-ratio:514/498;object-fit:cover;border-radius:24px;margin-bottom:18px}.related-card h3{font-size:24px;line-height:32px}.related-card p{font-size:16px;line-height:26px;color:var(--muted)}.about-screen{display:flex;flex-direction:column;align-items:center;gap:32px;justify-content:center;padding-top:80px}.about-heading{font-size:36px;font-weight:600}.about-links{display:flex;gap:24px;color:var(--muted)}.about-links a:hover{color:#2b7fff}
dialog{width:min(620px,calc(100vw - 32px));max-height:85svh;border:1px solid var(--border);border-radius:32px;padding:32px;background:var(--card);color:var(--text);overflow:auto}dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}.dialog-close{position:absolute;right:20px;top:16px;border-radius:50%;width:36px;height:36px;background:var(--badge);font-size:24px}.dialog-image{width:min(380px,100%);aspect-ratio:1;object-fit:cover;margin:24px auto;border-radius:24px}dialog h2{text-align:center;font-size:28px;margin-bottom:12px}dialog p{text-align:center;line-height:1.7;color:var(--muted)}html[lang=fa] .screen,html[lang=fa] .detail,html[lang=fa] dialog{direction:rtl}html[lang=fa] .screen-heading{letter-spacing:0}html[lang=fa] .thought-card p{white-space:normal;width:100%;left:auto;transform:none}
@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1300px){.screen{padding-inline:40px}.projects-grid{padding-inline:24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.thoughts-screen{padding-inline:24px}.thoughts-grid{gap:64px 32px}}
@media(max-width:950px){.thoughts-grid{grid-template-columns:repeat(2,256px);justify-content:space-around}.screen-heading{font-size:28px}.project-card{padding:20px;border-radius:32px}.screen{padding-top:48px}.lab-screen .screen-heading{max-width:620px;margin-inline:auto}}
@media(max-width:600px){#navigation{width:calc(100% - 24px);max-width:440px;height:64px;bottom:max(16px,env(safe-area-inset-bottom));border-radius:22px;padding:10px;gap:10px}.nav-group{gap:6px}.nav-icon,.utility{width:40px;height:40px;border-radius:13px}.nav-label{display:none!important}.nav-divider{margin-inline:3px}.intro-card{width:485px;flex-shrink:0;transform:scale(var(--card-scale,.72))}.screen{padding:36px 20px 112px}.screen-heading{font-size:24px;line-height:36px}.projects-grid{padding:16px 0;grid-template-columns:1fr;gap:24px}.project-card{padding:20px}.project-image{aspect-ratio:514/498}.thoughts-screen{padding-inline:16px}.thoughts-grid{padding:24px 0;grid-template-columns:1fr;justify-items:center;gap:40px}.thought-card{width:min(100%,320px)}.thought-card img{width:100%;height:auto;aspect-ratio:514/498}.thought-card p{max-width:calc(100vw - 32px);white-space:normal}.detail{padding:28px 20px 112px;gap:32px}.case-content{gap:32px}.case-title{font-size:30px;line-height:46px}.related-grid{flex-direction:column;align-items:center;gap:32px}.contact-area{gap:32px}.related-heading{font-size:28px}.about-screen{padding-top:64px}.about-links{gap:16px;flex-wrap:wrap;justify-content:center}}
@media(max-width:350px){#navigation{width:calc(100% - 12px);padding:8px;gap:5px}.nav-group{gap:4px}.nav-icon,.utility{width:36px;height:40px}.nav-divider{margin-inline:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* CMS authored case studies */
.cms-case-study{gap:48px;padding-top:164px}
.cms-case-header{width:min(960px,100%);display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.cms-case-header>p:first-child{color:var(--muted);font-size:14px;letter-spacing:.04em}
.cms-case-header h1{font-size:clamp(42px,7vw,84px);line-height:1.04;letter-spacing:-.055em;font-weight:650}
.cms-case-header>p:last-child{max-width:700px;color:var(--muted);font-size:clamp(17px,2vw,21px);line-height:1.65}
.cms-case-hero{width:min(1200px,100%);max-height:720px;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--border);border-radius:32px;background:var(--card)}
.cms-case-study .case-content{max-width:960px;gap:52px}
.case-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;overflow:hidden;border:1px solid var(--border);border-radius:20px;background:var(--border)}
.case-facts>div{min-height:94px;padding:20px;background:var(--card)}
.case-facts h2{margin:0 0 9px;color:var(--muted);font-size:12px;font-weight:550;text-transform:uppercase;letter-spacing:.08em}
.case-facts p{font-size:15px;line-height:1.5}
.cms-case-study .case-body{gap:52px}
.cms-case-study .case-body>section{display:flex;flex-direction:column;gap:14px}
.cms-case-study .case-body>section>h2{margin:0;font-size:clamp(24px,3vw,34px);line-height:1.2;letter-spacing:-.03em}
.cms-case-study .case-body>section>p{max-width:760px;color:var(--muted);font-size:17px;line-height:1.8;white-space:pre-line}
.cms-case-study .case-body>section>img{width:100%;max-height:680px;object-fit:cover;border-radius:24px;border:1px solid var(--border);margin-top:8px}
.case-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px}
.case-gallery img{width:100%;max-height:620px;aspect-ratio:4/3;object-fit:cover;border-radius:24px;border:1px solid var(--border);background:var(--card)}
.case-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.case-metrics>div{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid var(--border);border-radius:20px;background:var(--card)}
.case-metrics strong{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}
.case-metrics span{color:var(--muted);font-size:14px}
.case-quote{margin:0;padding:clamp(24px,5vw,48px);border-inline-start:3px solid #ed7959;border-radius:0 22px 22px 0;background:var(--card)}
.case-quote p{font-size:clamp(22px,3.5vw,36px);line-height:1.45;letter-spacing:-.025em}
.case-quote cite{display:block;margin-top:18px;color:var(--muted);font-size:14px;font-style:normal}
.case-external-link{align-self:flex-start;padding:12px 18px;border:1px solid var(--border);border-radius:14px;background:var(--card);transition:border-color .2s,transform .2s}
.case-external-link:hover{transform:translateY(-2px);border-color:#ed7959}
.cms-hero-role{font-size:22px!important;line-height:1.2!important;text-align:center;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.cms-case-study{padding-top:120px;gap:30px}.cms-case-header{gap:10px}.cms-case-header h1{font-size:42px}.cms-case-hero{aspect-ratio:4/3;border-radius:20px}.cms-case-study .case-content,.cms-case-study .case-body{gap:34px}.case-facts{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:16px}.case-facts>div{padding:15px;min-height:82px}.cms-case-study .case-body>section>p{font-size:16px}.case-gallery{grid-template-columns:1fr;gap:12px}.case-gallery img{border-radius:18px}.case-quote{border-radius:0 16px 16px 0}}

/* A quiet, living sky behind the home introduction. */
.live-sky{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;direction:ltr}
.live-star{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);border-radius:50%;background:#d9ddff;box-shadow:0 0 8px #a9bcff;opacity:.4;animation:star-shimmer var(--duration) ease-in-out var(--delay) infinite}
.meteor{position:absolute;left:var(--meteor-x);top:var(--meteor-y);width:140px;height:2px;border-radius:50%;background:linear-gradient(90deg,transparent,#b9cdff 85%,#fff);box-shadow:0 0 8px #a9bcff80;opacity:0;transform:rotate(135deg);animation:meteor-pass var(--meteor-duration) linear var(--meteor-delay) infinite}
.meteor-1{--meteor-x:70%;--meteor-y:5%;--meteor-duration:11s;--meteor-delay:-3s}
.meteor-2{--meteor-x:38%;--meteor-y:2%;--meteor-duration:16s;--meteor-delay:-9s}
.meteor-3{--meteor-x:95%;--meteor-y:18%;--meteor-duration:19s;--meteor-delay:-14s}
@keyframes star-shimmer{0%,100%{opacity:.2;transform:scale(.8)}50%{opacity:.85;transform:scale(1.25)}}
@keyframes constellation-shimmer{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes sky-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(8px,-10px,0)}}
@keyframes meteor-pass{0%,72%{opacity:0;transform:translate3d(0,0,0) rotate(135deg)}74%{opacity:.8}84%{opacity:0;transform:translate3d(-350px,350px,0) rotate(135deg)}100%{opacity:0;transform:translate3d(-350px,350px,0) rotate(135deg)}}
html[data-theme=light] .live-star{background:#4668c7;box-shadow:0 0 6px #4668c750}
html[data-theme=light] .meteor{background:linear-gradient(90deg,transparent,#8ba3ee 85%,#4668c7);box-shadow:0 0 8px #4668c740}
@media(max-width:600px){.meteor{width:90px}.live-star:nth-child(n+23){display:none}}
@media(prefers-reduced-motion:reduce){.live-star,.home .stars,.home .stars img{animation:none!important}.meteor{display:none}}

/* Explicit stacking: gradient and lettering, sky, then introduction. */
.hero-art{z-index:0}
.live-sky{z-index:1}
.intro-card{z-index:2}
@keyframes nebula-breathe{0%{transform:scale(1) translate3d(0,0,0);opacity:.94}100%{transform:scale(1.07) translate3d(1%,-1%,0);opacity:1}}
@media(prefers-reduced-motion:reduce){.gradient{animation:none!important}}

/* Home geometry from Figma frame 365:196 (1440 × 1080). */
.home-word.product{width:1054.458px;height:158.133px}
.home-word.designer{width:1051.752px;height:158.133px}
.intro-first > [data-language=en]{width:121px;height:56px;display:flex;align-items:center;flex:none}
.intro-second > [data-language=en]{width:72px;height:56px;display:flex;align-items:center;flex:none}
.intro-name{border:0;position:relative;flex:none}
.intro-name::after{content:"";position:absolute;inset:0;border:1px solid #ffffff3d;border-radius:inherit;pointer-events:none}
.intro-role{border:0;position:relative;flex:none}
.intro-role::after{content:"";position:absolute;left:-.3515625px;top:0;width:300px;height:56px;border:1px solid #ffffff8f;border-radius:inherit;pointer-events:none}
.intro-second{overflow:hidden}
.home .live-star{opacity:.2;animation-name:star-shimmer}
.home .stars.right,@keyframes sky-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(2px,-3px,0)}}
@keyframes nebula-breathe{from{transform:scale(1);opacity:1}to{transform:scale(1.018);opacity:.97}}
/* Procedural grain, matching the textured reference without a bitmap backdrop. */
.gradient::after{content:"";position:absolute;inset:0;opacity:.085;mix-blend-mode:screen;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.nav-item{gap:9px}
.nav-label{line-height:48px;background:linear-gradient(90deg,#155dfc,#193cb8);background-clip:text;-webkit-background-clip:text;color:transparent}
html[lang=fa] .intro-first > [data-language=en],html[lang=fa] .intro-second > [data-language=en]{display:none}

/* Sparse living sky; the Figma star/trail image groups are no longer rendered. */
.home-word{opacity:.12;filter:blur(2.5px)}
html[data-theme=light] .home-word{opacity:.045;filter:blur(2.5px)}
.live-star{box-shadow:0 0 4px #a9bcff50}
.home .live-star{opacity:.15;animation-duration:calc(var(--duration) + 5s)}
@keyframes star-shimmer{0%,100%{opacity:.1;transform:scale(.9)}50%{opacity:.34;transform:scale(1.05)}}
.meteor{width:85px;height:1px;box-shadow:0 0 4px #a9bcff40}
.meteor-1{--meteor-x:78%;--meteor-y:7%;--meteor-duration:23s;--meteor-delay:-5s}
.meteor-2{--meteor-x:35%;--meteor-y:3%;--meteor-duration:31s;--meteor-delay:-18s}
@keyframes meteor-pass{0%,84%{opacity:0;transform:translate3d(0,0,0) rotate(135deg)}85%{opacity:.32}89%{opacity:0;transform:translate3d(-230px,230px,0) rotate(135deg)}100%{opacity:0;transform:translate3d(-230px,230px,0) rotate(135deg)}}
@media(max-width:600px){.meteor{width:55px}.live-star:nth-child(n+11){display:none}}

/* Visible but sparse: stronger stars and an early first meteor pass. */
.live-star{width:calc(var(--size) + .7px);height:calc(var(--size) + .7px);background:#e2eaff;box-shadow:0 0 6px #b5ceff90}
.home .live-star{opacity:.48}
@keyframes star-shimmer{0%,100%{opacity:.32;transform:scale(.95)}50%{opacity:.78;transform:scale(1.15)}}
.meteor{width:125px;height:1.5px;background:linear-gradient(90deg,transparent,#9bbdff 70%,#f3f7ff);box-shadow:0 0 6px #9bbdff70}
.meteor-1{--meteor-duration:13s;--meteor-delay:-9.5s}
.meteor-2{--meteor-duration:19s;--meteor-delay:-4s}
@keyframes meteor-pass{0%,68%{opacity:0;transform:translate3d(0,0,0) rotate(135deg)}70%{opacity:.7}82%{opacity:0;transform:translate3d(-280px,280px,0) rotate(135deg)}100%{opacity:0;transform:translate3d(-280px,280px,0) rotate(135deg)}}
@media(max-width:600px){.meteor{width:85px}}

/* Case study interactions: keep the Figma composition still, then reveal small cues on intent. */
.back-button{color:var(--text);transition:transform .24s cubic-bezier(.2,.75,.25,1),background .24s}
.back-button span{display:block;line-height:1;transition:transform .24s cubic-bezier(.2,.75,.25,1)}
.back-button:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--badge),var(--text) 10%)}
.back-button:hover span{transform:rotate(90deg)}
.detail-image-trigger{position:relative;display:block;width:min(864px,100%);padding:0;border:0;border-radius:24px;overflow:hidden;background:transparent;line-height:0;flex-shrink:0;cursor:zoom-in}
.detail-image-trigger .detail-image{display:block;width:100%;height:auto;transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .35s}
.detail-image-cue{position:absolute;inset:auto 16px 16px auto;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#101319b8;color:#fff;font-size:20px;line-height:1;opacity:0;transform:translateY(5px);transition:opacity .25s,transform .25s;backdrop-filter:blur(8px)}
.detail-image-trigger:hover .detail-image,.detail-image-trigger:focus-visible .detail-image{transform:scale(1.025);filter:brightness(1.04)}
.detail-image-trigger:hover .detail-image-cue,.detail-image-trigger:focus-visible .detail-image-cue{opacity:1;transform:translateY(0)}
.case-title{background:linear-gradient(100deg,#60a5fa,#3976ff 58%,#91bdff);background-clip:text;-webkit-background-clip:text;color:transparent}
.related-card{display:block;border-radius:24px;transition:transform .3s cubic-bezier(.2,.7,.2,1),filter .3s}
.related-card img{transition:transform .4s cubic-bezier(.2,.7,.2,1),filter .3s}
.related-card:hover,.related-card:focus-visible{transform:translateY(-5px)}
.related-card:hover img,.related-card:focus-visible img{transform:scale(1.025);filter:brightness(1.06)}
.case-preview-open{width:min(920px,calc(100vw - 32px));padding:48px 32px 32px}
.case-preview-open .case-preview-image{width:min(840px,100%);height:auto;aspect-ratio:1200/800;object-fit:contain;margin:8px auto 24px}
.case-preview-open h2{margin-bottom:8px}
@media(max-width:600px){.detail-image-trigger{border-radius:18px}.case-preview-open{padding:48px 16px 24px}.detail-image-cue{inset:auto 12px 12px auto;width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.detail-image-trigger .detail-image,.detail-image-cue,.related-card,.related-card img,.back-button,.back-button span{transition:none!important}}

/* Keep the project control pinned to the viewport while the case study scrolls. */
.detail{padding-top:164px}
.nexus-word img{display:block;width:100%;height:100%;object-fit:contain;transform:none}
.nexus-word .wordmark-text{display:none}
.nexus-word.wordmark-fallback .wordmark-image{display:none}
.nexus-word.wordmark-fallback .wordmark-text{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(100deg,#8ec5ff,#2b7fff);background-clip:text;-webkit-background-clip:text;color:transparent;font-size:clamp(88px,14vw,160px);font-weight:750;letter-spacing:-.07em;line-height:1}
.back-button{position:fixed;top:max(54px,env(safe-area-inset-top));left:50%;z-index:25;width:40px;height:40px;padding:8px;box-sizing:border-box;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;border:1px solid #ffffff29;border-radius:20px;background:#171717;color:#fafafa;box-shadow:0 4px 6px #00000014;transition:none}
.back-button:hover{transform:translateX(-50%);background:#202020}
.back-button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;pointer-events:none}
.back-button:focus-visible{outline:2px solid #8ec5ff;outline-offset:3px}
.tab-panel[data-view-route="projects/nexus"]{will-change:auto}
@media(max-width:600px){.detail{padding-top:120px}.back-button{top:max(24px,env(safe-area-inset-top))}}

/* Distinct, staggered twinkles without adding more stars. */
.home .live-star{animation-duration:var(--duration);animation-timing-function:ease-in-out}
@keyframes star-shimmer{
  0%,100%{opacity:.22;transform:translate3d(0,0,0) scale(.85)}
  35%{opacity:.65;transform:translate3d(0,-1px,0) scale(1.1)}
  50%{opacity:1;transform:translate3d(1px,-2px,0) scale(1.45)}
  70%{opacity:.4;transform:translate3d(0,-1px,0) scale(1)}
}
.live-star:nth-child(4n)::before,.live-star:nth-child(4n)::after{content:"";position:absolute;left:50%;top:50%;border-radius:50%;background:#edf3ff;transform:translate(-50%,-50%);opacity:0;animation:star-glint var(--duration) ease-in-out var(--delay) infinite}
.live-star:nth-child(4n)::before{width:9px;height:1px}
.live-star:nth-child(4n)::after{width:1px;height:9px}
@keyframes star-glint{0%,36%,66%,100%{opacity:0}50%{opacity:.7}}
html[data-theme=light] .live-star:nth-child(4n)::before,html[data-theme=light] .live-star:nth-child(4n)::after{background:#4668c7}
@media(prefers-reduced-motion:reduce){.live-star::before,.live-star::after{display:none}}

/* Selected Works: Figma layout, with the requested smaller card size. */
.projects-screen{isolation:isolate;overflow:hidden}
.projects-screen::before{content:"";position:fixed;z-index:-2;pointer-events:none;inset:0;background:radial-gradient(ellipse 42% 48% at 43% 8%,#0746c7 0%,#073187 32%,transparent 77%),radial-gradient(ellipse 70% 75% at 0% 0%,#374c70 0%,#1b2941 37%,transparent 85%),linear-gradient(180deg,#001333 0%,#020812 49%,#000 76%)}
html[data-theme=light] .projects-screen::before{background:radial-gradient(ellipse 60% 65% at 44% 0%,#92b6fa 0%,#c9dcff 40%,transparent 85%),linear-gradient(180deg,#d5e3ff 0%,#f5f8ff 55%,#fff 80%)}
.projects-screen .projects-grid{max-width:1000px;padding:24px;grid-template-columns:repeat(2,minmax(0,440px));justify-content:center;gap:24px}
.projects-screen .project-card{width:100%;padding:20px;gap:16px;border-radius:32px;background:color-mix(in srgb,var(--card) 82%,transparent);transition:transform .25s ease}
.projects-screen .project-card:hover{border-color:var(--border)}
.projects-screen .project-image{border-radius:20px;aspect-ratio:514/498}
.projects-screen .project-copy h2{font-size:24px;line-height:32px}
.projects-screen .project-copy p{font-size:16px;line-height:26px}
.projects-screen .badge{min-height:32px;font-size:14px;line-height:20px}
@media(max-width:950px){.projects-screen{padding-inline:24px}.projects-screen .projects-grid{padding:24px 0;gap:20px}.projects-screen .project-card{padding:18px;border-radius:28px}}
@media(max-width:600px){.projects-screen{padding:36px 20px 112px}.projects-screen .projects-grid{grid-template-columns:minmax(0,400px);padding:16px 0;gap:24px}.projects-screen .project-card{padding:18px}.projects-screen .project-image{border-radius:18px}}

/* Compact project cards with a translucent surface and soft hover depth. */
.projects-screen .project-card{padding:18px;gap:14px;background:color-mix(in srgb,var(--card) 48%,transparent);transition:transform .25s ease,box-shadow .25s ease}
.projects-screen .project-image{aspect-ratio:514/311;object-fit:cover}
@media(hover:hover){.projects-screen .project-card:hover{transform:translateY(-4px);border-color:var(--border);box-shadow:0 12px 32px #0000003d,0 2px 10px #ffffff08}html[data-theme=light] .projects-screen .project-card:hover{box-shadow:0 12px 32px #152d591c,0 2px 10px #152d590a}}

/* Instant procedural backdrop, fixed during scrolling, with a light grain. */
.projects-screen{animation:none}
.projects-screen::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.055;mix-blend-mode:soft-light;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.projects-screen .project-card{padding:14px;gap:10px;border:1px solid #ffffff1c;border-radius:26px}
html[data-theme=light] .projects-screen .project-card{border-color:#152d5926}
.projects-screen .project-image{aspect-ratio:2.45;border-radius:16px;object-fit:cover}
.projects-screen .project-copy h2{font-size:22px;line-height:28px}
.projects-screen .project-copy p{font-size:14px;line-height:22px}
.projects-screen .badge{min-height:28px;padding:4px 12px;font-size:12px;line-height:20px;border-radius:10px}
.projects-screen .project-card:hover{border-color:#ffffff1c}
html[data-theme=light] .projects-screen .project-card:hover{border-color:#152d5926}

/* Darker project atmosphere and Figma card details, with compact imagery. */
.projects-screen::before{background:radial-gradient(ellipse 42% 42% at 43% 0%,#091b3d 0%,#070f20 45%,transparent 80%),radial-gradient(ellipse 60% 65% at 0% 0%,#161d2a 0%,transparent 80%),#020305}
.projects-screen::after{opacity:.13;mix-blend-mode:screen}
html[data-theme=light] .projects-screen::after{opacity:.085;mix-blend-mode:multiply}
.projects-screen .project-card{padding:16px;gap:12px;border:.5px solid #ffffff08;border-radius:32px}
.projects-screen .project-card:hover{border-color:#ffffff08}
html[data-theme=light] .projects-screen .project-card,html[data-theme=light] .projects-screen .project-card:hover{border-color:#0000000b}
.projects-screen .project-image{height:128px;aspect-ratio:auto;border-radius:24px;object-fit:cover;object-position:center}
.projects-screen .project-copy h2{font-size:24px;line-height:32px;letter-spacing:-.2px}
.projects-screen .project-copy p{font-size:16px;line-height:26px}
.projects-screen .badge{min-height:32px;padding:6px 16px;font-size:14px;line-height:20px;border-radius:12px}
@media(max-width:600px){.projects-screen .project-image{height:120px}}

/* Project cards: restore the square Figma artwork and add a restrained live feel. */
.projects-screen::before{
  background:
    radial-gradient(ellipse 38% 32% at 82% 24%,#16366a38 0%,transparent 78%),
    radial-gradient(ellipse 42% 38% at 14% 58%,#172c4933 0%,transparent 82%),
    radial-gradient(ellipse 55% 46% at 50% 0%,#0b1a33 0%,transparent 84%),
    #020305;
}
html[data-theme=light] .projects-screen::before{
  background:
    radial-gradient(ellipse 40% 36% at 82% 22%,#9ab9f04d 0%,transparent 80%),
    radial-gradient(ellipse 50% 40% at 12% 52%,#d2e0fa75 0%,transparent 82%),
    linear-gradient(180deg,#eaf1ff 0%,#f7f9ff 58%,#fff 100%);
}
.projects-screen .screen-heading{
  position:relative;
  width:max-content;
  max-width:100%;
  margin:0 auto 20px;
  opacity:.88;
  text-shadow:0 2px 24px #789bff20;
}
.projects-screen .screen-heading::after{
  content:"";
  display:block;
  width:34px;
  height:2px;
  margin:7px auto 0;
  border-radius:99px;
  background:linear-gradient(90deg,#8bb5ff00,#8bb5ffb8,#8bb5ff00);
}
.projects-screen .project-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(145deg,#ffffff0b 0%,#ffffff04 52%,#9dbdff08 100%);
  box-shadow:0 8px 28px #00000014,inset 0 1px #ffffff08;
  transition:transform .28s ease,box-shadow .28s ease,background .28s ease;
}
html[data-theme=light] .projects-screen .project-card{
  background:linear-gradient(145deg,#ffffffd9 0%,#ffffffad 62%,#e9f0ffb8 100%);
  box-shadow:0 8px 28px #233c6510,inset 0 1px #ffffffc9;
}
.projects-screen .project-image{
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  border-radius:20px;
  object-fit:cover;
  object-position:center;
  box-shadow:0 8px 24px #00000020;
  transition:filter .28s ease,box-shadow .28s ease;
}
.projects-screen .project-copy h2{transition:color .2s ease}
.projects-screen .badge{transition:background .2s ease,transform .2s ease}
@media(hover:hover){
  .projects-screen .project-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 42px #00000045,0 0 34px #709cff0b,inset 0 1px #ffffff12;
    background:linear-gradient(145deg,#ffffff10 0%,#ffffff05 52%,#9dbdff0d 100%);
  }
  .projects-screen .project-card:hover .project-image{filter:saturate(1.08) brightness(1.035);box-shadow:0 10px 28px #0000002b}
  .projects-screen .project-card:hover .project-copy h2{color:#dce8ff}
  html[data-theme=light] .projects-screen .project-card:hover .project-copy h2{color:#244b91}
  .projects-screen .project-card:hover .badge{background:color-mix(in srgb,var(--badge) 82%,#739cff 18%)}
}
@media(max-width:600px){.projects-screen .project-image{aspect-ratio:1 / 1;border-radius:18px}}
@media(prefers-reduced-motion:reduce){.projects-screen .project-card,.projects-screen .project-image,.projects-screen .project-copy h2,.projects-screen .badge{transition:none}}

/* Fixed viewport stage: each destination behaves like a tab, not a new page. */
body{height:100svh;overflow:hidden}
main{
  position:relative;
  height:100svh;
  min-height:100svh;
  overflow:hidden;
  isolation:isolate;
  view-transition-name:none;
}
.tab-panel{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
  will-change:transform;
}
.tab-panel.screen{animation:none}
.tab-panel.home{height:100%;min-height:100%}
.tab-panel.home{overflow:hidden;scrollbar-gutter:auto}
.tab-panel.home{height:100%;min-height:0;overflow:clip;overscroll-behavior:none}

/* Keep the Thoughts viewport full-width so its scrollbar stays at the window edge. */
.tab-panel.thoughts-screen{max-width:none;margin:0}
.thoughts-screen>.thoughts-grid{width:100%;max-width:1000px;margin-inline:auto}

main::before,main::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:0;
  transition:opacity .52s cubic-bezier(.22,.61,.36,1);
}
main[data-view-route="projects"]::before{
  opacity:1;
  background:
    radial-gradient(ellipse 38% 32% at 82% 24%,#16366a38 0%,transparent 78%),
    radial-gradient(ellipse 42% 38% at 14% 58%,#172c4933 0%,transparent 82%),
    radial-gradient(ellipse 55% 46% at 50% 0%,#0b1a33 0%,transparent 84%),
    #020305;
}
html[data-theme=light] main[data-view-route="projects"]::before{
  background:
    radial-gradient(ellipse 40% 36% at 82% 22%,#9ab9f04d 0%,transparent 80%),
    radial-gradient(ellipse 50% 40% at 12% 52%,#d2e0fa75 0%,transparent 82%),
    linear-gradient(180deg,#eaf1ff 0%,#f7f9ff 58%,#fff 100%);
}
main[data-view-route="projects"]::after{
  opacity:.08;
  mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
html[data-theme=light] main[data-view-route="projects"]::after{opacity:.055;mix-blend-mode:multiply}
.projects-screen::before,.projects-screen::after{display:none}
#navigation{transition:box-shadow .28s ease}
.nav-item{gap:0;transition:gap .4s cubic-bezier(.22,.68,.24,1)}
.nav-icon{
  border-color:#e3e5e9;
  transition:transform .32s cubic-bezier(.22,.68,.24,1),background .4s ease,border-color .4s ease,box-shadow .4s ease;
}
.nav-item.active{gap:9px}
.nav-item.active .nav-icon{box-shadow:0 4px 12px #155dfc26}
.nav-label{
  display:block;
  width:0;
  max-width:0;
  overflow:hidden;
  opacity:0;
  transform:translateX(-5px);
  transition:max-width .4s cubic-bezier(.22,.68,.24,1),opacity .3s ease,transform .4s cubic-bezier(.22,.68,.24,1);
}
.nav-item.active .nav-label{width:auto;max-width:95px;opacity:1;transform:translateX(0);transition-delay:0s,.1s,0s}
.nav-item.active .nav-icon:hover{background:linear-gradient(90deg,#155dfc,#193cb8);border-color:#ffffff66}
.nav-item:active .nav-icon,.utility:active{transform:scale(.94)}
.utility{transition:transform .32s cubic-bezier(.22,.68,.24,1),background .32s ease,box-shadow .32s ease}
.utility:hover{box-shadow:0 3px 10px #00000012}
.nav-item:focus-visible{border-radius:16px;outline-offset:5px}
html[lang=fa] .nav-label{direction:rtl;transform:translateX(5px)}
html[lang=fa] .nav-item.active .nav-label{transform:translateX(0)}
@media(max-width:600px){.nav-item{gap:0}.nav-item.active{gap:0}.nav-label{display:none!important}}
@media(prefers-reduced-motion:reduce){
  main::before,main::after{transition:none}
  #navigation,.nav-item,.nav-icon,.nav-label,.utility{transition:none!important}
}

/* Preserve the aspect-ratio height in the scrollable detail flex column. */
.nexus-word{flex:0 0 auto}


/* A quiet Figma-like blue haze, fine grain, and restrained card interaction. */
main[data-view-route="projects"]::before{
  opacity:1;
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(21,93,252,.2) 0%,rgba(21,70,174,.1) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(35,65,105,.09) 0%,transparent 78%),
    linear-gradient(180deg,#05070c 0%,#04060a 64%,#020304 100%);
  transform-origin:50% 10%;
  animation:projects-atmosphere 34s ease-in-out infinite alternate;
}
html[data-theme=light] main[data-view-route="projects"]::before{
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(61,111,218,.14) 0%,rgba(94,131,201,.07) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(105,132,177,.08) 0%,transparent 78%),
    linear-gradient(180deg,#f3f6fb 0%,#f8f9fb 64%,#fff 100%);
}
main[data-view-route="projects"]::after{
  opacity:.055;
  mix-blend-mode:soft-light;
}
html[data-theme=light] main[data-view-route="projects"]::after{
  opacity:.035;
  mix-blend-mode:multiply;
}
@keyframes projects-atmosphere{
  from{transform:scale(1) translate3d(0,0,0)}
  to{transform:scale(1.025) translate3d(.15%,-.25%,0)}
}
.projects-screen .project-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:transform .42s cubic-bezier(.2,.7,.25,1),box-shadow .42s ease,background .42s ease;
}
.projects-screen .project-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(340px circle at var(--pointer-x,50%) var(--pointer-y,18%),rgba(111,157,255,.13),transparent 72%);
  transition:opacity .36s ease;
}
.projects-screen .project-card>*{position:relative;z-index:1}
.projects-screen .project-card:hover::before,
.projects-screen .project-card:focus-visible::before{opacity:1}
.projects-screen .project-image{
  transform:scale(1);
  transition:transform .65s cubic-bezier(.2,.7,.25,1),filter .35s ease,box-shadow .35s ease;
}
@media(hover:hover){
  .projects-screen .project-card:hover .project-image{transform:scale(1.018)}
}
.projects-screen .project-card:focus-visible{
  outline:2px solid #8eb6ff66;
  outline-offset:4px;
}
@media(prefers-reduced-motion:reduce){
  main[data-view-route="projects"]::before{animation:none}
  .projects-screen .project-card,.projects-screen .project-card::before,.projects-screen .project-image{transition:none}
}


/* Keep the same calm atmosphere on the individual project case study. */
main[data-view-route="projects/nexus"]::before{
  opacity:1;
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(21,93,252,.2) 0%,rgba(21,70,174,.1) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(35,65,105,.09) 0%,transparent 78%),
    linear-gradient(180deg,#05070c 0%,#04060a 64%,#020304 100%);
  transform-origin:50% 10%;
  animation:projects-atmosphere 34s ease-in-out infinite alternate;
}
html[data-theme=light] main[data-view-route="projects/nexus"]::before{
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(61,111,218,.14) 0%,rgba(94,131,201,.07) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(105,132,177,.08) 0%,transparent 78%),
    linear-gradient(180deg,#f3f6fb 0%,#f8f9fb 64%,#fff 100%);
}
main[data-view-route="projects/nexus"]::after{
  opacity:.055;
  mix-blend-mode:soft-light;
}
html[data-theme=light] main[data-view-route="projects/nexus"]::after{
  opacity:.035;
  mix-blend-mode:multiply;
}
.detail-image-trigger,.related-card{
  position:relative;
  isolation:isolate;
}
.detail-image-trigger::before,.related-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(360px circle at var(--pointer-x,50%) var(--pointer-y,42%),rgba(116,163,255,.12),transparent 72%);
  transition:opacity .36s ease;
}
.detail-image-trigger>* ,.related-card>*{position:relative;z-index:2}
.detail-image-trigger:hover::before,.detail-image-trigger:focus-visible::before,
.related-card:hover::before,.related-card:focus-visible::before{opacity:1}
.detail-image-trigger .detail-image-cue{z-index:4}
@media(prefers-reduced-motion:reduce){
  main[data-view-route="projects/nexus"]::before{animation:none}
  .detail-image-trigger::before,.related-card::before{transition:none}
}



/* Keep the related projects title white. */
.related-heading{color:#fff}


/* Lock the home panel to the viewport in Safari and hide its scroll rail. */
.tab-panel.home{
  height:100%;
  min-height:0;
  overflow:hidden;
  overscroll-behavior:none;
  scrollbar-width:none;
}
.tab-panel.home::-webkit-scrollbar{display:none;width:0;height:0}

/* Make the procedural texture easier to perceive without roughening the gradient. */
.home .gradient::after{opacity:.19}

/* A soft white halo around the centered card. */
.home .intro-card{box-shadow:0 0 56px rgba(255,255,255,.18),0 0 128px rgba(255,255,255,.075)}

/* Lab frame 470:4034: centered title, four text rows, and restrained interaction. */
main[data-view-route="lab"]::before{
  opacity:1;
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(21,93,252,.2) 0%,rgba(21,70,174,.1) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(35,65,105,.09) 0%,transparent 78%),
    linear-gradient(180deg,#05070c 0%,#04060a 64%,#020304 100%);
  transform-origin:50% 10%;
  animation:projects-atmosphere 34s ease-in-out infinite alternate;
}
html[data-theme=light] main[data-view-route="lab"]::before{
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(61,111,218,.14) 0%,rgba(94,131,201,.07) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(105,132,177,.08) 0%,transparent 78%),
    linear-gradient(180deg,#f3f6fb 0%,#f8f9fb 64%,#fff 100%);
}
main[data-view-route="lab"]::after{
  opacity:.055;
  mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
html[data-theme=light] main[data-view-route="lab"]::after{opacity:.035;mix-blend-mode:multiply}
.lab-screen>.screen-heading{margin:0 auto 16px;white-space:nowrap}
.lab-list li{
  position:relative;
  isolation:isolate;
  border-radius:18px;
  outline:none;
  transition:transform .32s cubic-bezier(.22,.68,.24,1);
}
.lab-list li::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:12px 24px;
  border-radius:24px;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(ellipse at center,rgba(101,146,245,.1),transparent 72%);
  transition:opacity .32s ease;
}
.lab-entry-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}
.lab-list h2,.lab-list p{transition:color .24s ease}
.lab-list h2{font-size:18px;line-height:28px;font-weight:600}
.lab-list p{font-size:16px;line-height:24px;color:var(--text-secondary,#f5f5f5)}
.lab-list li+li::before{position:relative;z-index:1}
@media(hover:hover){.lab-list li:hover{transform:translateY(-2px)}.lab-list li:hover::after{opacity:1}.lab-list li:hover h2{color:#e1ebff}.lab-list li:hover p{color:#fff}}
.lab-list li:focus-visible{outline:1px solid #8eb6ff50;outline-offset:3px}
.lab-list li:focus-visible::after{opacity:1}
@media(max-width:600px){.lab-screen>.screen-heading{white-space:normal}.lab-list li{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){main[data-view-route="lab"]::before{animation:none}.lab-list li,.lab-list li::after,.lab-list h2,.lab-list p{transition:none}}

/* Lab: a quiet editorial index for unfinished work. */
.lab-screen .screen-heading{
  max-width:720px;
  margin:0 auto 38px;
  text-wrap:balance;
}
.lab-list{
  display:block;
  width:min(760px,100%);
  margin:0 auto;
  padding:0;
  list-style:none;
  text-align:start;
}
.lab-list li,.lab-list li+li{
  position:relative;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 20px;
  align-items:center;
  column-gap:22px;
  min-height:112px;
  margin:0;
  padding:23px 4px;
  border:0;
  border-radius:0;
  border-bottom:1px solid color-mix(in srgb,var(--text) 12%,transparent);
  outline:none;
  background:transparent;
  box-shadow:none;
  cursor:default;
  transition:border-color .24s ease;
}
.lab-list li:first-child{border-top:1px solid color-mix(in srgb,var(--text) 12%,transparent)}
.lab-list li+li::before,.lab-list li::after{display:none;content:none}
.lab-index{
  align-self:start;
  padding-top:5px;
  color:color-mix(in srgb,var(--text) 40%,transparent);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  letter-spacing:.08em;
  transition:color .24s ease;
}
.lab-entry-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:start}
.lab-list h2{
  margin:0;
  font-size:20px;
  line-height:1.4;
  font-weight:550;
  letter-spacing:-.02em;
  transition:color .24s ease,transform .24s ease;
}
.lab-list p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  transition:color .24s ease;
}
.lab-entry-arrow{
  align-self:center;
  justify-self:end;
  color:color-mix(in srgb,var(--text) 42%,transparent);
  font-size:17px;
  opacity:.55;
  transform:translate(-2px,2px);
  transition:color .24s ease,opacity .24s ease,transform .24s ease;
}
@media(hover:hover){
  .lab-list li:hover{border-color:color-mix(in srgb,#8db4ff 36%,transparent)}
  .lab-list li:hover .lab-index{color:#8db4ff}
  .lab-list li:hover h2{color:color-mix(in srgb,var(--text) 86%,#8db4ff);transform:translateX(2px)}
  .lab-list li:hover .lab-entry-arrow{color:#9bbcff;opacity:1;transform:translate(0,0)}
}
html[lang=fa] .lab-list{text-align:start}
html[lang=fa] .lab-list li,html[lang=fa] .lab-list li+li{grid-template-columns:20px minmax(0,1fr) 44px}
html[lang=fa] .lab-index{grid-column:3;grid-row:1}
html[lang=fa] .lab-entry-copy{grid-column:2;grid-row:1}
html[lang=fa] .lab-entry-arrow{grid-column:1;grid-row:1;justify-self:start;transform:translate(2px,2px)}
@media(hover:hover){
  html[lang=fa] .lab-list li:hover h2{transform:translateX(-2px)}
  html[lang=fa] .lab-list li:hover .lab-entry-arrow{transform:translate(0,0)}
}
@media(max-width:600px){
  .lab-screen .screen-heading{margin-bottom:24px}
  .lab-list li,.lab-list li+li{grid-template-columns:30px minmax(0,1fr) 18px;column-gap:14px;min-height:96px;padding:20px 2px}
  .lab-list h2{font-size:17px;line-height:1.45}
  .lab-list p{font-size:13px;line-height:1.55;margin-top:4px}
  html[lang=fa] .lab-list li,html[lang=fa] .lab-list li+li{grid-template-columns:18px minmax(0,1fr) 30px}
}
@media(prefers-reduced-motion:reduce){.lab-list li,.lab-index,.lab-list h2,.lab-list p,.lab-entry-arrow{transition:none}}


/* Refine Lab typography and separators. */
.lab-list li,.lab-list li+li{
  border-bottom:.5px solid color-mix(in srgb,var(--text) 7%,transparent);
}
.lab-list li:first-child{
  border-top:.5px solid color-mix(in srgb,var(--text) 7%,transparent);
}
.lab-list h2{font-weight:450}


/* Add a quiet live status and bring the shared blue atmosphere forward. */
.lab-list li:first-child{border-top:0}


/* Give the Thoughts journal the same calm blue atmosphere as Projects and Lab. */
main[data-view-route="thoughts"]::before{
  opacity:1;
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(21,93,252,.32) 0%,rgba(21,70,174,.15) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(35,65,105,.14) 0%,transparent 78%),
    linear-gradient(180deg,#05070c 0%,#04060a 64%,#020304 100%);
  transform-origin:50% 10%;
  animation:projects-atmosphere 34s ease-in-out infinite alternate;
}
html[data-theme=light] main[data-view-route="thoughts"]::before{
  background:
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(61,111,218,.22) 0%,rgba(94,131,201,.11) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(105,132,177,.12) 0%,transparent 78%),
    linear-gradient(180deg,#f3f6fb 0%,#f8f9fb 64%,#fff 100%);
}
main[data-view-route="thoughts"]::after{
  opacity:.055;
  mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
html[data-theme=light] main[data-view-route="thoughts"]::after{opacity:.035;mix-blend-mode:multiply}
@media(prefers-reduced-motion:reduce){main[data-view-route="thoughts"]::before{animation:none}}


/* Give Thoughts titles a quieter hierarchy. */
.thoughts-grid .thought-card h2{font-size:20px;line-height:28px;font-weight:500;letter-spacing:-.15px}


/* Editorial two-pane details for Thoughts cards. */
dialog.thought-detail-open[open]{
  display:grid;
  position:fixed;
  inset:0;
  width:min(1080px,calc(100vw - 48px));
  height:min(720px,calc(100dvh - 48px));
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:0;
  overflow:hidden;
  border:1px solid #ffffff1a;
  border-radius:28px;
  background:linear-gradient(145deg,#0b0e15 0%,#06080d 78%);
  box-shadow:0 36px 110px #000b,0 0 72px #155dfc16;
  direction:ltr;
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  grid-template-areas:"copy media";
  animation:thought-dialog-in .24s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes thought-dialog-in{from{opacity:0;transform:translateY(9px) scale(.992)}to{opacity:1;transform:translateY(0) scale(1)}}
dialog.thought-detail-open::backdrop{background:#000c;backdrop-filter:blur(8px)}
.thought-detail-copy{
  grid-area:copy;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:18px;
  padding:58px 54px;
  overflow-y:auto;
  direction:ltr;
  text-align:left;
  scrollbar-width:thin;
}
.thought-detail-category{
  color:#91b3ff;
  font-size:11px;
  line-height:16px;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.thought-detail-category span{padding:0 5px;color:#69758a}
.thought-detail-copy h2{
  max-width:100%;
  color:var(--text);
  font-size:clamp(25px,3vw,34px);
  line-height:1.2;
  font-weight:500;
  letter-spacing:-.025em;
  text-align:left;
}
.thought-detail-lead{
  max-width:430px;
  color:color-mix(in srgb,var(--text) 76%,transparent);
  font-size:16px;
  line-height:1.75;
  text-align:left;
}
.thought-detail-rule{width:100%;height:1px;margin:4px 0 2px;background:linear-gradient(90deg,#8db4ff28,transparent)}
.thought-source-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 16px;
  border:1px solid #8db4ff25;
  border-radius:14px;
  background:linear-gradient(110deg,#155dfc1b,#193cb80b);
  color:#c6d8ff;
  font-size:14px;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.thought-source-link:hover{transform:translateY(-2px);border-color:#8db4ff55;background:linear-gradient(110deg,#155dfc2b,#193cb81a)}
.thought-source-link span{font-size:17px}
.thought-detail-media{
  grid-area:media;
  min-width:0;
  min-height:0;
  display:grid;
  place-items:center;
  padding:34px;
  border-left:1px solid #ffffff0c;
  background:radial-gradient(ellipse 70% 56% at 50% 6%,#16366a52,transparent 78%),linear-gradient(160deg,#090d15,#05070b 72%);
}
.thought-detail-carousel{position:relative;width:100%;height:100%;min-height:0;display:grid;place-items:center;overflow:hidden;border-radius:24px;clip-path:inset(0 round 24px);touch-action:pan-y}
.thought-detail-image{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:30px;clip-path:inset(0 round 30px);transition:opacity .18s ease;will-change:opacity}
.thought-detail-image.changing{opacity:.35}
.thought-gallery-controls{
  position:absolute;
  left:50%;bottom:14px;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:42px;
  padding:5px 9px;
  border:1px solid #ffffff18;
  border-radius:99px;
  background:#05070bd9;
  color:#fff;
  transform:translateX(-50%);
  backdrop-filter:blur(10px);
}
.thought-gallery-arrow{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:transparent;color:#fff;font-size:18px;transition:background .18s ease,transform .18s ease}
.thought-gallery-arrow:hover{background:#ffffff18;transform:scale(1.06)}
.thought-gallery-count{min-width:42px;color:#c4cad5;font-size:11px;font-variant-numeric:tabular-nums;text-align:center}
.thought-gallery-dots{display:flex;align-items:center;gap:5px}
.thought-gallery-dot{width:5px;height:5px;padding:0;border-radius:99px;background:#ffffff55;transition:width .2s ease,background .2s ease}
.thought-gallery-dot.active{width:16px;background:#8db4ff}
.thought-detail-open .dialog-close{z-index:5;top:16px;right:16px;width:40px;height:40px;border:1px solid #ffffff25;background:#090b10c9;color:#fff;box-shadow:0 4px 18px #0004;transition:background .18s ease,transform .18s ease}
.thought-detail-open .dialog-close:hover{background:#202632;transform:scale(1.03)}
html[lang=fa] .thought-detail-copy{direction:rtl;align-items:stretch;text-align:right}
html[lang=fa] .thought-detail-copy h2,html[lang=fa] .thought-detail-lead{text-align:right}
html[lang=fa] .thought-detail-rule{background:linear-gradient(270deg,#8db4ff28,transparent)}
html[data-theme=light] dialog.thought-detail-open[open]{background:linear-gradient(145deg,#fff 0%,#f7f9fd 78%);border-color:#20375c20;box-shadow:0 36px 110px #172d501f,0 0 72px #155dfc12}
html[data-theme=light] .thought-detail-category{color:#315fae}
html[data-theme=light] .thought-detail-copy h2{color:#111827}
html[data-theme=light] .thought-detail-lead{color:#515c6b}
html[data-theme=light] .thought-detail-media{border-color:#152d5912;background:radial-gradient(ellipse 70% 56% at 50% 6%,#d5e3ffb3,transparent 78%),linear-gradient(160deg,#edf2fb,#f8faff 72%)}
html[data-theme=light] .thought-source-link{color:#244f99;border-color:#315fae26;background:linear-gradient(110deg,#155dfc0f,#193cb805)}
html[data-theme=light] .thought-gallery-controls{background:#111827dd;border-color:#ffffff1d}
html[data-theme=light] .thought-detail-open .dialog-close{background:#111827d9}
@media(max-width:760px){
  dialog.thought-detail-open[open]{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:22px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,.82fr) minmax(240px,1fr);grid-template-areas:"media" "copy"}
  .thought-detail-media{padding:18px;border-left:0;border-bottom:1px solid #ffffff0c}
  .thought-detail-carousel{border-radius:20px;clip-path:inset(0 round 20px)}
  .thought-detail-image{border-radius:22px;clip-path:inset(0 round 22px)}
  .thought-detail-copy{gap:12px;padding:24px 26px 28px}
  .thought-detail-copy h2{font-size:25px}
  .thought-detail-lead{font-size:15px}
  .thought-detail-open .dialog-close{top:12px;right:12px}
}
@media(prefers-reduced-motion:reduce){dialog.thought-detail-open[open]{animation:none}.thought-detail-image,.thought-source-link,.thought-gallery-arrow,.thought-gallery-dot{transition:none}}


/* Place the two panels in the inner modal grid while keeping the close control above them. */
dialog.thought-detail-open[open]{display:block;grid-template-columns:none;grid-template-areas:none}
dialog.thought-detail-open #thought-content{width:100%;height:100%;min-height:0}
.thought-detail-layout{width:100%;height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);grid-template-areas:"copy media";direction:ltr}
@media(max-width:760px){.thought-detail-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,.82fr) minmax(240px,1fr);grid-template-areas:"media" "copy"}}

.thought-detail-copy.has-article{justify-content:flex-start;padding-top:58px;padding-bottom:40px}
.thought-detail-copy.has-article .thought-detail-category{display:flex;flex-wrap:wrap;align-items:center;gap:4px 4px;font-size:12px;letter-spacing:.08em}
.thought-detail-copy.has-article .thought-detail-category span{padding-inline:2px}
.thought-detail-paragraph{width:100%;max-width:520px;color:color-mix(in srgb,var(--text) 78%,transparent);font-size:16px;line-height:1.75;text-align:left}
.thought-detail-paragraph:first-of-type{color:color-mix(in srgb,var(--text) 90%,transparent);font-weight:500}
html[lang=fa] .thought-detail-paragraph{text-align:right}
html[data-theme=light] .thought-detail-paragraph{color:#465263}
html[data-theme=light] .thought-detail-paragraph:first-of-type{color:#273447}
@media(max-width:760px){.thought-detail-copy.has-article{justify-content:flex-start;padding-top:24px;padding-bottom:26px}.thought-detail-paragraph{font-size:16px;line-height:1.7}}

.thought-detail-copy h2+.thought-detail-lead{margin-top:-10px}
@media(max-width:760px){.thought-detail-copy h2+.thought-detail-lead{margin-top:-6px}}

.thought-detail-copy.has-article{gap:8px}
.thought-detail-copy.has-article h2+.thought-detail-lead{margin-top:0}

.thought-detail-copy.has-article h2{margin-bottom:0}


/* Thoughts modal close button: Figma btn / Small / Black / Icon (458:3121). */
.dialog-close,
.thought-detail-open .dialog-close{
  position:absolute;top:16px;right:16px;z-index:10;
  display:grid;place-items:center;
  box-sizing:border-box;width:44px;height:44px;padding:8px;
  border:1px solid rgba(255,255,255,.16);border-radius:16px;
  background:#171717;color:#fafafa;
  box-shadow:0 4px 6px rgba(0,0,0,.08);
  font-size:0;line-height:0;cursor:pointer;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.dialog-close svg,
.thought-detail-open .dialog-close svg{
  display:block;width:24px;height:24px;fill:none;
  stroke:currentColor;stroke-width:1.5;stroke-linecap:round;pointer-events:none;
}
.dialog-close:hover,
.thought-detail-open .dialog-close:hover{
  transform:none;background:#171717;border-color:rgba(255,255,255,.16);
}
.dialog-close:hover svg,
.thought-detail-open .dialog-close:hover svg{opacity:.78}
.dialog-close:active,
.thought-detail-open .dialog-close:active{transform:scale(.97)}
.dialog-close:focus-visible,
.thought-detail-open .dialog-close:focus-visible{outline:2px solid #8ec5ff;outline-offset:3px}
html[data-theme=light] dialog .dialog-close{
  border-color:#fff;background:#f7f7f7;color:#0a0a0a;
  box-shadow:0 4px 6px rgba(0,0,0,.08);
}
html[data-theme=light] dialog .dialog-close:hover{background:#f7f7f7;border-color:#fff}
@media(max-width:760px){
  .thought-detail-open .dialog-close{top:12px;right:12px}
}
@media(prefers-reduced-motion:reduce){.dialog-close{transition:none}}


/* Figma button audit: contact CTA = Small / Brand (458:2993),
   fixed case-study control = Small / Black / Icon (458:3121). */
.contact-button{
  box-shadow:4px 29px 4px rgba(0,0,0,0),3px 18px 3.5px rgba(0,0,0,.01),
    1px 10px 3px rgba(0,0,0,.05),1px 5px 2.5px rgba(0,0,0,.09),
    0 1px 1.5px rgba(0,0,0,.1);
}
.back-button{
  width:44px;height:44px;padding:8px;
  border:1px solid rgba(255,255,255,.16);border-radius:16px;
  background:#171717;color:#fafafa;
  box-shadow:0 4px 6px rgba(0,0,0,.08);
}
.back-button svg{width:24px;height:24px}
.back-button:hover{background:#171717;border-color:rgba(255,255,255,.16)}
html[data-theme=light] .back-button{
  border-color:#fff;background:#f7f7f7;color:#0a0a0a;
  box-shadow:0 4px 6px rgba(0,0,0,.08);
}
html[data-theme=light] .back-button:hover{background:#f7f7f7;border-color:#fff}


/* Compact the navigation after removing language and theme controls. */
#navigation{width:420px;max-width:calc(100vw - 24px);justify-content:center;gap:0}
#navigation>.nav-group{flex:0 0 auto}
@media(max-width:600px){
  #navigation{width:260px;max-width:calc(100vw - 24px);justify-content:center;gap:0}
}
@media(max-width:350px){
  #navigation{width:calc(100vw - 24px);padding:8px}
}


/* White Figma icon variant for the project close control. Keep it in the
   viewport above the scrolling case-study panel. */
.back-button{
  position:fixed;top:max(54px,env(safe-area-inset-top));left:50%;z-index:50;
  width:44px;height:44px;padding:8px;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;
  transform:translateX(-50%);
  border:1px solid #fff;border-radius:16px;
  background:#f7f7f7;color:#0a0a0a;
  box-shadow:0 4px 6px rgba(0,0,0,.08);
  transition:background-color .18s ease,transform .18s ease;
}
.back-button svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.5}
.back-button:hover{transform:translateX(-50%);background:#f7f7f7;border-color:#fff}
@media(max-width:600px){.back-button{top:max(24px,env(safe-area-inset-top))}}


/* About page: a richer profile flow in the site's dark, blue-tinted visual system. */
.about-screen{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:28px;padding:76px 24px 156px;overflow-y:auto;
}
.about-profile,.about-tabs,.about-panel{width:min(800px,100%)}
.about-profile{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.about-identity{display:flex;align-items:center;gap:22px}
.about-avatar{width:88px;height:88px;flex:none;overflow:hidden;border-radius:24px;border:1px solid #ffffff24;background:#0b0d12;box-shadow:0 12px 40px #04163855}
.about-avatar img{width:100%;height:100%;object-fit:cover}
.about-heading-block{display:flex;flex-direction:column;gap:5px}
.about-eyebrow,.about-kicker{font-size:11px;line-height:16px;letter-spacing:.13em;text-transform:uppercase;color:#89aefc}
.about-heading{font-size:clamp(34px,5vw,48px);font-weight:600;line-height:1.08;letter-spacing:-1.4px}
.about-role{font-size:15px;line-height:22px;color:var(--muted)}
.about-intro{max-width:680px;font-size:17px;line-height:1.65;color:#c4c9d2}
.about-profile-links,.about-cv-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.about-cv-actions{margin-top:12px}
.about-profile-links a{padding:8px 12px;border:1px solid #ffffff12;border-radius:99px;color:#c5cad4;font-size:13px;transition:color .18s,border-color .18s,background .18s}
.about-profile-links a:hover{color:#fff;border-color:#2b7fff77;background:#155dfc14}
.about-cv-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:9px 16px;border:1px solid #ffffff2c;border-radius:14px;background:#0a0d13;color:#f5f7fb;font-size:13px;font-weight:500;transition:transform .2s,border-color .2s,background .2s,box-shadow .2s}
.about-cv-button.primary{border-color:#ffffff66;background:linear-gradient(90deg,#2b7fff,#1447e6);box-shadow:0 5px 18px #155dfc30}
.about-cv-button:hover{transform:translateY(-2px);border-color:#8db4ff}
.about-tabs{display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #ffffff12;border-radius:18px;background:#080a0fd9;backdrop-filter:blur(18px)}
.about-tab{flex:1;min-width:0;min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:13px;background:transparent;color:#9399a5;font-size:13px;white-space:nowrap;transition:color .18s,background .18s,border-color .18s,box-shadow .18s}
.about-tab:hover{color:#fff}
.about-tab.active{color:#f8fbff;background:linear-gradient(110deg,#155dfc,#193cb8);border-color:#ffffff35;box-shadow:0 5px 18px #155dfc2b}
.about-tab:focus-visible{outline-offset:2px}
.about-panel{min-height:250px;padding:30px;border:1px solid #ffffff12;border-radius:24px;background:radial-gradient(ellipse 85% 95% at 100% 0%,#12346b28,transparent 70%),linear-gradient(145deg,#0b0d12f2,#06080cf2);box-shadow:0 20px 70px #0006,0 0 52px #155dfc0a;backdrop-filter:blur(16px)}
.about-panel-heading{margin-bottom:22px}
.about-panel-heading h2{font-size:24px;line-height:32px;font-weight:550;letter-spacing:-.35px}
.about-panel-lead{margin-top:6px;color:var(--muted);font-size:14px;line-height:22px}
.about-bio{max-width:690px;display:flex;flex-direction:column;gap:14px;color:#c4c9d2;font-size:16px;line-height:1.75}
.about-skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.about-skill{padding:16px;border:1px solid #ffffff0d;border-radius:16px;background:#ffffff04}
.about-skill h3,.about-tools h3,.about-experience h3,.about-education h3{font-size:15px;line-height:22px;font-weight:550;color:#f4f6fa}
.about-skill p{margin-top:6px;color:#9ca3af;font-size:13px;line-height:1.6}
.about-tools{margin-top:24px;padding-top:20px;border-top:1px solid #ffffff10}
.about-tool-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:14px}
.about-tool-label{display:flex;justify-content:space-between;gap:6px;margin-bottom:8px;color:#bdc3ce;font-size:11px}
.about-tool-label span+span{color:#808999;font-variant-numeric:tabular-nums}
.about-tool-track{height:4px;overflow:hidden;border-radius:99px;background:#ffffff12}
.about-tool-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2b7fff,#77a8ff)}
.about-experience-list{list-style:none;margin:0;padding:0}
.about-experience{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 0;border-top:1px solid #ffffff10}
.about-experience:first-child{padding-top:0;border-top:0}
.about-experience-index{color:#84aaf8;font-size:12px;font-variant-numeric:tabular-nums}
.about-experience-main p{margin-top:4px;color:#929aa8;font-size:13px}
.about-experience-place{display:block;padding:0;border:0;border-radius:0;background:none;color:#abb2c0;font-size:13px;line-height:20px}
.about-education{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px;border:1px solid #ffffff10;border-radius:16px;background:#ffffff04}
.about-education p{margin-top:6px;color:#a4abb8;font-size:13px}
.about-education>span{flex:none;color:#8c95a4;font-size:12px}
.about-contact-grid{display:flex;flex-direction:column}
.about-contact-link{position:relative;min-width:0;min-height:78px;display:flex;align-items:center;gap:13px;padding:14px 6px;border:0;border-top:1px solid #ffffff0d;border-radius:0;background:transparent;color:#f1f3f8;text-decoration:none;transition:transform .22s,border-color .22s,background .22s}
.about-contact-link:first-child{border-top:0}
.about-contact-link:hover{transform:translateX(3px);border-color:#ffffff18;background:#ffffff04}
.about-contact-email{min-height:88px}
.about-contact-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border:1px solid #ffffff10;border-radius:12px;background:#ffffff06;color:#dce7ff}
.about-contact-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.about-contact-mark{font-size:14px;font-weight:650;letter-spacing:-.6px}
.about-contact-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.about-contact-label{color:#8f9bad;font-size:12px;letter-spacing:.1em}
.about-contact-copy strong{overflow:hidden;color:#f2f4f8;font-size:14px;line-height:20px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}
.about-contact-copy small{color:#9ca3af;font-size:12px;line-height:17px}
.about-contact-arrow{margin-left:auto;flex:none;color:#9ca3af;font-size:15px;transition:transform .2s,color .2s}
.about-contact-link:hover .about-contact-arrow{transform:translate(2px,-1px);color:#d9e5ff}
@media(max-width:600px){.about-contact-link{min-height:74px;padding:12px 4px}.about-contact-email{min-height:82px}}
@media(max-width:600px){
  .about-screen{gap:20px;padding:36px 20px 112px}
  .about-identity{gap:16px}
  .about-avatar{width:68px;height:68px;border-radius:20px}
  .about-heading{font-size:34px;letter-spacing:-1px}
  .about-intro{font-size:15px}
  .about-profile-links{gap:7px}
  .about-profile-links a{padding:7px 10px;font-size:12px}
  .about-cv-actions{width:100%;gap:8px}
  .about-cv-button{flex:1;padding-inline:10px;font-size:12px}
  .about-tabs{gap:2px;padding:4px;border-radius:15px}
  .about-tab{min-height:38px;padding:7px 4px;font-size:11px;border-radius:11px}
  .about-panel{min-height:230px;padding:20px;border-radius:20px}
  .about-panel-heading{margin-bottom:18px}
  .about-skill-grid{grid-template-columns:1fr;gap:9px}
  .about-tool-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .about-experience{grid-template-columns:26px minmax(0,1fr);gap:10px;padding:15px 0}
  .about-experience-place{grid-column:2;justify-self:start;margin-top:2px}
  .about-education{align-items:flex-start;flex-direction:column;gap:10px;padding:16px}
  .about-connect-list a{gap:8px;font-size:13px}
  .about-connect-list a span+span{font-size:11px}
}


/* About page refinement: centered profile, neutral tabs and balanced panels. */
.about-screen{
  justify-content:flex-start;
  gap:24px;
  overflow-y:auto;
}
.about-profile{
  align-items:center;
  text-align:center;
  gap:16px;
}
.about-identity{
  flex-direction:column;
  justify-content:center;
  gap:14px;
  text-align:center;
}
.about-avatar{
  width:92px;
  height:92px;
  border-radius:26px;
  box-shadow:0 12px 34px #ffffff10;
}
.about-heading-block{align-items:center;gap:4px}
.about-eyebrow,.about-kicker{color:#9ca3af}
.about-heading{font-size:clamp(36px,5vw,46px);letter-spacing:-1.5px}
.about-intro{max-width:620px;text-align:center}
.about-profile-links,.about-cv-actions{justify-content:center}
.about-profile-links a{border-color:#ffffff18;background:#ffffff04}
.about-profile-links a:hover{color:#fff;border-color:#ffffff38;background:#ffffff0b}
.about-cv-button.primary{
  color:#111;background:#f2f3f5;border-color:#fff;
  box-shadow:0 5px 18px #ffffff12;
}
.about-cv-button:hover{border-color:#fff}
.about-tabs{
  justify-content:space-between;
  gap:18px;
  padding:0 2px;
  border:0;
  border-bottom:1px solid #ffffff20;
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
}
.about-tab{
  position:relative;
  flex:1;
  min-height:48px;
  padding:10px 2px 13px;
  border:0;
  border-radius:0;
  color:#8f949e;
  font-size:13px;
  transition:color .18s ease;
}
.about-tab:hover{color:#e9ebef}
.about-tab.active{
  color:#fff;
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
.about-tab.active::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-1px;
  left:0;
  height:2px;
  border-radius:2px 2px 0 0;
  background:#f4f4f5;
}
.about-panel{
  display:flex;
  flex:0 0 410px;
  flex-direction:column;
  height:410px;
  min-height:410px;
  padding:24px 28px;
  overflow:hidden;
  border-color:#ffffff16;
  background:
    radial-gradient(ellipse 72% 84% at 100% 0%,#8db4ff0b,transparent 72%),
    linear-gradient(145deg,#0b0d12f5,#06080cf5);
  box-shadow:0 20px 70px #0006,0 0 42px #ffffff05;
}
.about-panel-heading{flex:none;margin-bottom:16px}
.about-panel-heading h2{font-size:22px;line-height:29px;font-weight:520}
.about-panel-lead{margin-top:4px}
.about-bio{max-width:660px;margin-block:auto;gap:12px}
.about-skill-grid{flex:none;gap:10px}
.about-skill{padding:12px 14px}
.about-skill p{margin-top:4px;line-height:1.5}
.about-tools{flex:none;margin-top:auto;padding-top:14px}
.about-tools h3{font-size:14px}
.about-tool-list{gap:10px;margin-top:12px}
.about-tool-label{margin-bottom:6px}
.about-tool-track span{background:#d7d9de}
.about-experience-list{
  display:flex;
  flex:1;
  flex-direction:column;
  justify-content:space-between;
}
.about-experience{
  flex:1;
  min-height:0;
  padding:10px 0;
}
.about-experience:first-child{padding-top:0}
.about-experience-index{color:#c0c4cc}
.about-education{
  flex:1;
  min-height:160px;
  margin-block:auto;
  border-color:#ffffff16;
  background:linear-gradient(120deg,#ffffff08,#ffffff03);
}
.about-connect-list{
  flex:1;
  justify-content:space-between;
}
.about-connect-list a{flex:1}
.about-connect-list a span+span{color:#a5a9b1}
.about-connect-list a:hover span+span{color:#fff}

@media(max-width:600px){
  .about-screen{gap:20px;padding:36px 20px 112px}
  .about-profile{gap:14px}
  .about-identity{gap:12px}
  .about-avatar{width:76px;height:76px;border-radius:22px}
  .about-heading{font-size:34px;letter-spacing:-1px}
  .about-intro{font-size:15px}
  .about-cv-actions{gap:8px}
  .about-tabs{gap:12px}
  .about-tab{min-height:44px;padding:9px 0 12px;font-size:11px}
  .about-panel{
    flex:0 0 auto;
    height:auto;
    min-height:0;
    padding:20px;
    overflow:visible;
  }
  .about-panel-heading{margin-bottom:16px}
  .about-bio{margin-block:0}
  .about-skill-grid{grid-template-columns:1fr;gap:9px}
  .about-tools{margin-top:20px}
  .about-tool-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .about-experience-list{flex:none}
  .about-experience{flex:none}
  .about-education{flex:none;min-height:0;margin:0}
  .about-connect-list{flex:none;gap:0}
  .about-connect-list a{flex:none}
}
@media(prefers-reduced-motion:reduce){
  .about-tab{transition:none}
}


/* About: bring back the site's atmospheric blue backdrop and remove the heavy section shell. */
main[data-view-route="about"]::before{
  opacity:1;
  background:
    radial-gradient(420px circle at var(--about-pointer-x,50%) var(--about-pointer-y,26%),rgba(54,112,220,.12),transparent 78%),
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(21,93,252,.2) 0%,rgba(21,70,174,.1) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(35,65,105,.09) 0%,transparent 78%),
    linear-gradient(180deg,#05070c 0%,#04060a 64%,#020304 100%);
  transform-origin:50% 10%;
  animation:projects-atmosphere 34s ease-in-out infinite alternate;
}
html[data-theme="light"] main[data-view-route="about"]::before{
  background:
    radial-gradient(420px circle at var(--about-pointer-x,50%) var(--about-pointer-y,26%),rgba(65,115,210,.1),transparent 78%),
    radial-gradient(ellipse 68% 58% at 50% -8%,rgba(61,111,218,.14) 0%,rgba(94,131,201,.07) 42%,transparent 80%),
    radial-gradient(ellipse 44% 52% at 0% 40%,rgba(105,132,177,.08) 0%,transparent 78%),
    linear-gradient(180deg,#f3f6fb 0%,#f8f9fb 64%,#fff 100%);
}
main[data-view-route="about"]::after{
  opacity:.055;
  mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
html[data-theme="light"] main[data-view-route="about"]::after{opacity:.035;mix-blend-mode:multiply}

.about-screen{gap:24px;padding-top:64px}
.about-profile{gap:16px}
.about-avatar{transition:transform .35s cubic-bezier(.22,.68,.24,1),box-shadow .35s ease}
.about-avatar:hover{transform:translateY(-3px);box-shadow:0 18px 42px #155dfc2b}
.about-eyebrow,.about-kicker{font-size:12px;line-height:18px;letter-spacing:.11em}
.about-tabs{
  position:relative;
  gap:0;
  overflow:visible;
}
.about-tabs::before{
  content:"";
  position:absolute;
  z-index:1;
  right:auto;
  bottom:-1px;
  left:0;
  width:20%;
  height:2px;
  border-radius:2px 2px 0 0;
  background:#f4f4f5;
  transform:translateX(calc(var(--about-tab-index,0) * 100%));
  transition:transform .32s cubic-bezier(.22,.68,.24,1);
  pointer-events:none;
}
.about-tab.active::after{display:none;content:none}
.about-panel{
  display:block;
  flex:0 0 auto;
  height:auto;
  min-height:0;
  padding:10px 0 32px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.about-panel-heading{margin-bottom:26px}
.about-panel-heading h2{font-size:26px;line-height:34px;font-weight:520}
.about-panel-lead{margin-top:8px;font-size:14px}
.about-bio{max-width:700px;margin:0;gap:18px;font-size:17px;line-height:1.8}
.about-skill-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.about-skill{
  position:relative;
  isolation:isolate;
  display:flex;
  min-height:154px;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  padding:17px;
  border:1px solid #ffffff18;
  border-radius:20px;
  background:linear-gradient(145deg,#0b111cd9,#070a10c9);
  box-shadow:0 12px 32px #0002;
  transition:transform .28s cubic-bezier(.22,.68,.24,1),border-color .28s ease,box-shadow .28s ease;
}
.about-skill::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  opacity:0;
  background:radial-gradient(190px circle at var(--skill-x,50%) var(--skill-y,30%),rgba(95,145,235,.2),transparent 75%);
  transition:opacity .3s ease;
}
.about-skill:hover,.about-skill:focus-within{
  transform:translateY(-4px);
  border-color:#9ab9ed55;
  box-shadow:0 16px 36px #0004,0 0 30px #155dfc12;
}
.about-skill:hover::before,.about-skill:focus-within::before{opacity:1}
.about-skill-top{display:flex;align-items:center;justify-content:space-between}
.about-skill-symbol{
  display:grid;
  width:46px;height:46px;
  place-items:center;
  border:1px solid #ffffff20;
  border-radius:15px;
  background:#ffffff08;
  color:#dbe6fa;
}
.about-skill-symbol svg{
  display:block;width:23px;height:23px;fill:none;
  stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;
}
.about-skill-index{font-size:12px;color:#9ca3af;font-variant-numeric:tabular-nums}
.about-skill h3{font-size:15px;line-height:21px;font-weight:520;color:#f4f6fa}
.about-tools{margin-top:27px;padding-top:0;border-top:0}
.about-tools h3{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:500;color:#d8dce5}
.about-tool-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:0}
.about-tool{
  display:inline-flex;
  min-height:38px;
  align-items:center;
  padding:8px 14px;
  border:1px solid #ffffff19;
  border-radius:999px;
  background:#ffffff06;
  color:#cbd0da;
  font-size:13px;
  line-height:20px;
  transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease;
}
.about-tool:hover{transform:translateY(-2px);border-color:#8db4ff55;background:#ffffff0c;color:#fff}
.about-experience-list{width:100%;max-width:840px}
.about-experience{padding:18px 0;border-color:#ffffff18}
.about-experience:first-child{padding-top:0}
.about-experience h3{font-size:16px}
.about-experience-main p{font-size:13px;line-height:20px}
.about-experience-index{font-size:12px}
.about-experience-place{font-size:12px}
.about-education{
  width:min(760px,100%);
  min-height:0;
  flex:none;
  margin:0;
  padding:22px;
  border:1px solid #ffffff1a;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff0a,#ffffff03);
}
.about-education h3{font-size:17px}
.about-education p,.about-education>span{font-size:13px;line-height:20px}
.about-connect-list{width:100%;max-width:760px;flex:none}
.about-connect-list a{min-height:58px;padding:16px 4px;border-color:#ffffff18;font-size:15px}
.about-connect-list a span+span{font-size:13px}
@media(max-width:800px){
  .about-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .about-screen{gap:20px;padding:36px 20px 112px}
  .about-panel{padding-top:4px;padding-bottom:24px}
  .about-panel-heading{margin-bottom:20px}
  .about-panel-heading h2{font-size:23px;line-height:30px}
  .about-bio{font-size:16px;line-height:1.75}
  .about-skill-grid{gap:10px}
  .about-skill{min-height:132px;padding:14px;border-radius:17px}
  .about-skill-symbol{width:40px;height:40px;border-radius:13px}
  .about-skill h3{font-size:14px;line-height:19px}
  .about-tool-list{gap:8px}
  .about-tool{min-height:36px;padding:7px 12px;font-size:12px}
  .about-experience{grid-template-columns:28px minmax(0,1fr);gap:10px;padding:16px 0}
  .about-experience h3{font-size:15px}
  .about-experience-place{grid-column:2;justify-self:start;margin-top:2px}
  .about-education{padding:17px}
  .about-connect-list a{min-height:54px;font-size:13px}
  .about-connect-list a span+span{font-size:12px}
}
@media(max-width:360px){
  .about-tab{font-size:12px}
  .about-skill{padding:12px}
  .about-skill h3{font-size:12px}
  .about-tool{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){
  main[data-view-route="about"]::before{animation:none}
  .about-avatar,.about-tabs::before,.about-skill,.about-skill::before,.about-tool{transition:none}
}


/* Keep the first skills view clear of the fixed navigation at common laptop heights. */
.about-screen{padding-top:52px}
.about-profile{gap:13px}
.about-identity{gap:11px}
.about-avatar{width:80px;height:80px}
.about-intro{max-width:780px}
@media(max-width:600px){
  .about-screen{padding-top:36px}
  .about-avatar{width:76px;height:76px}
  .about-intro{max-width:100%}
}

/* Keep the complete Skills row above the floating nav in the initial view. */
@media(min-width:601px){.about-screen{padding-top:40px}}


/* Resume content: concise profile, expandable skill groups, and experience details. */
.about-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.about-skill{
  display:block;
  min-height:0;
  padding:0 16px;
  cursor:default;
}
.about-skill-summary{
  display:flex;
  min-height:82px;
  align-items:center;
  gap:14px;
  list-style:none;
  cursor:pointer;
}
.about-skill-summary::-webkit-details-marker{display:none}
.about-skill-title{display:flex;min-width:0;flex-direction:column;gap:4px}
.about-skill-title strong{font-size:16px;line-height:22px;font-weight:520;color:#f4f6fa}
.about-skill-index{font-size:12px;line-height:16px}
.about-skill-toggle{
  position:relative;
  display:grid;
  width:28px;height:28px;
  flex:none;
  place-items:center;
  margin-left:auto;
  border:1px solid #ffffff20;
  border-radius:50%;
  color:#cbd5e1;
  transition:transform .25s ease,background .25s ease;
}
.about-skill-toggle::before{content:"+";font-size:20px;line-height:20px}
.about-skill[open] .about-skill-toggle{transform:rotate(45deg);background:#ffffff0c}
.about-skill-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 0 16px 60px;
}
.about-skill-tag{
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:5px 10px;
  border:1px solid #ffffff17;
  border-radius:999px;
  background:#ffffff06;
  color:#cbd0da;
  font-size:12px;
  line-height:18px;
}
.about-skill:hover{transform:translateY(-2px)}
.about-experience{padding:0;border-top:1px solid #ffffff18}
.about-experience:first-child{padding-top:0}
.about-experience-details{width:100%}
.about-experience-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .38s cubic-bezier(.22,.61,.36,1)}
.about-experience-details[open] .about-experience-content{grid-template-rows:1fr}
.about-experience-details.is-closing .about-experience-content{grid-template-rows:0fr}
.about-experience-details.is-closing .about-experience-content>.about-experience-points{opacity:0;transform:translateY(-6px)}
.about-experience-content>.about-experience-points{min-height:0;overflow:hidden;opacity:0;transform:translateY(-6px);transition:opacity .24s ease,transform .38s cubic-bezier(.22,.61,.36,1)}
.about-experience-details[open] .about-experience-content>.about-experience-points{opacity:1;transform:translateY(0)}
.about-experience-summary{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto 28px;
  align-items:center;
  gap:16px;
  min-height:76px;
  list-style:none;
  cursor:pointer;
}
.about-experience-summary::-webkit-details-marker{display:none}
.about-experience-main h3{font-size:16px;line-height:23px}
.about-experience-main p{margin-top:3px;font-size:13px;line-height:20px}
.about-experience-period{font-size:12px;line-height:18px;color:#abb2c0;white-space:nowrap}
.about-experience-place{font-size:12px}
.about-experience-toggle{
  position:relative;
  display:grid;
  width:28px;height:28px;
  place-items:center;
  border:1px solid #ffffff1a;
  border-radius:50%;
  transition:transform .25s ease,background .25s ease;
}
.about-experience-toggle::before{
  content:"";
  width:7px;height:7px;
  border-right:1.5px solid #d5d9e0;
  border-bottom:1.5px solid #d5d9e0;
  transform:translateY(-2px) rotate(45deg);
}
.about-experience-details[open] .about-experience-toggle{transform:rotate(180deg);background:#ffffff0b}
.about-experience-points{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-width:720px;
  margin:0 36px 22px 58px;
  padding-left:18px;
  color:#c2c8d2;
  font-size:14px;
  line-height:1.65;
}
.about-experience-points li{padding-left:3px}
.about-connect-list a{font-size:15px}
.about-connect-list a span+span{font-size:13px}
@media(max-width:600px){
  .about-skill-grid{grid-template-columns:minmax(0,1fr);gap:9px}
  .about-skill{padding-inline:13px}
  .about-skill-summary{min-height:72px;gap:12px}
  .about-skill-tags{padding-left:52px;gap:7px}
  .about-skill-tag{padding-inline:9px}
  .about-experience{padding:0}
  .about-experience-summary{
    grid-template-columns:26px minmax(0,1fr) 28px;
    gap:10px;
    min-height:78px;
    padding:10px 0;
  }
  .about-experience-index{grid-row:1 / span 2;align-self:start;padding-top:4px}
  .about-experience-main{grid-column:2}
  .about-experience-period{grid-column:2;justify-self:start;align-self:start;margin-top:-4px}
  .about-experience-toggle{grid-column:3;grid-row:1}
  .about-experience-points{margin:0 12px 20px 32px;padding-left:17px;font-size:13px}
  .about-connect-list a{font-size:13px}
  .about-connect-list a span+span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .about-skill-toggle,.about-experience-toggle,.about-experience-content,.about-experience-content>.about-experience-points{transition:none}
}


/* Keep skill tags in a floating layer so opening a group never changes page geometry. */
.about-skill-grid{position:relative;align-items:start}
.about-skill{position:relative;z-index:0;overflow:visible}
.about-skill[open]{z-index:8;border-color:#9ab9ed55;border-bottom-left-radius:0;border-bottom-right-radius:0}
.about-skill-tags{
  position:absolute;
  z-index:4;
  top:calc(100% - 1px);
  right:-1px;
  left:-1px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:12px 14px 14px 60px;
  border:1px solid #ffffff18;
  border-top:0;
  border-radius:0 0 16px 16px;
  background:linear-gradient(145deg,#0b111cfa,#070a10fa);
  box-shadow:0 18px 36px #0008,0 0 22px #155dfc12;
  animation:about-skill-pop .18s ease-out both;
}
html[data-theme="light"] .about-skill-tags{border-color:#15233a22;background:#f9fbfff7;box-shadow:0 18px 36px #1c2d4a20}
@keyframes about-skill-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.about-tools{position:relative;z-index:1}

/* Experience items use the full content width; old grid rules had collapsed the details column. */
.about-experience-list{display:flex;flex:0 0 auto;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;width:100%;max-width:840px}
.about-experience{display:block;flex:none;min-width:0;width:100%;padding:0;border-top:1px solid #ffffff18}
.about-experience-details{display:block;width:100%;min-width:0}
.about-experience-summary{display:grid;width:100%;grid-template-columns:42px minmax(0,1fr) auto 28px;align-items:center;gap:16px;min-height:76px;padding:10px 0}
.about-experience-main{min-width:0}
.about-experience-main h3{font-size:16px;line-height:23px}
.about-experience-main p{margin-top:3px;font-size:13px;line-height:20px}
.about-experience-place{white-space:nowrap}
.about-experience-points{max-width:720px;margin:0 36px 22px 58px}
@media(max-width:600px){
  .about-skill-tags{padding:11px 12px 13px 52px;gap:7px}
  .about-experience-list{flex:none}
  .about-experience-summary{grid-template-columns:26px minmax(0,1fr) 28px;gap:10px;min-height:78px;padding:10px 0}
  .about-experience-index{grid-row:1 / span 2;align-self:start;padding-top:4px}
  .about-experience-main{grid-column:2}
  .about-experience-place{grid-column:2;justify-self:start;margin-top:-4px;white-space:normal}
  .about-experience-toggle{grid-column:3;grid-row:1}
  .about-experience-points{margin:0 12px 20px 32px;padding-left:17px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.about-skill-tags{animation:none}}


/* Skill popovers follow the pointer without changing the card grid or page height. */
.about-skill[open]{z-index:8;border-radius:20px}
.about-skill-tags{
  position:fixed!important;
  z-index:100;
  top:var(--skill-popover-top,50%);
  left:var(--skill-popover-left,50%);
  right:auto;
  width:min(340px,calc(100vw - 28px));
  max-height:min(260px,calc(100vh - 28px));
  overflow:auto;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:8px;
  margin:0;
  padding:14px;
  border:1px solid #ffffff22;
  border-radius:17px;
  background:linear-gradient(145deg,#101722f5,#080b12f5);
  box-shadow:0 20px 56px #0009,0 0 34px #4e86df1a;
  backdrop-filter:blur(16px) saturate(130%);
  opacity:0;
  transform:translateY(8px) scale(.98);
  transform-origin:top left;
  transition:opacity .2s cubic-bezier(.22,.68,.24,1),transform .24s cubic-bezier(.22,.68,.24,1);
}
.about-skill[open] .about-skill-tags{opacity:1;transform:translateY(0) scale(1)}
.about-skill.is-closing .about-skill-tags{opacity:0;transform:translateY(8px) scale(.98);pointer-events:none}
html[data-theme="light"] .about-skill-tags{
  border-color:#22375422;
  background:linear-gradient(145deg,#fffffff5,#f2f6fff5);
  box-shadow:0 20px 56px #20375924,0 0 34px #4e86df12;
}
.about-skill[open] .about-skill-summary{border-radius:19px}
@media(prefers-reduced-motion:reduce){.about-skill-tags{transition:none}}


/* Avoid making the fixed skill popover relative to a hovered card. */
.about-skill[open],
.about-skill[open]:hover,
.about-skill[open]:focus-within{transform:none}


/* Cursor-following skill panel refinement: remove the redundant right-side toggle. */
.about-skill-toggle{display:none!important}
.about-skill-summary{justify-content:flex-start}
.about-skill-title{flex:1}
.about-skill[open],
.about-skill[open]:hover,
.about-skill[open]:focus-within{transform:none;border-color:#9ab9ed55;border-radius:20px}
.about-skill-tags{
  width:min(320px,calc(100vw - 28px));
  max-height:min(250px,calc(100vh - 28px));
  padding:14px;
  gap:8px;
  border-radius:18px;
  background:
    radial-gradient(ellipse 100% 120% at 0% 0%,#2b68cb23,transparent 76%),
    linear-gradient(145deg,#101722f7,#080b12f7);
  box-shadow:0 18px 48px #0009,0 0 30px #4e86df20;
  transition:left .08s linear,top .08s linear,opacity .2s ease,transform .24s cubic-bezier(.16,1,.3,1);
}
.about-skill[open] .about-skill-tags{
  animation:about-skill-follow-enter .3s cubic-bezier(.16,1,.3,1) both;
}
.about-skill.is-closing .about-skill-tags{
  animation:none;
  transition:left .08s linear,top .08s linear,opacity .16s ease,transform .16s ease;
}
@keyframes about-skill-follow-enter{
  from{opacity:0;transform:translate3d(0,10px,0) scale(.96);filter:blur(3px)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}
}
html[data-theme="light"] .about-skill-tags{
  background:
    radial-gradient(ellipse 100% 120% at 0% 0%,#7398d51c,transparent 76%),
    linear-gradient(145deg,#fffffff8,#f2f6fff8);
  box-shadow:0 18px 48px #20375924,0 0 30px #4e86df13;
}
@media(prefers-reduced-motion:reduce){
  .about-skill[open] .about-skill-tags{animation:none}
  .about-skill-tags{transition:none}
}

.about-course-section{margin-top:40px}
.about-course-heading{max-width:720px;margin-bottom:24px}
.about-course-heading .about-kicker{margin-bottom:7px;font-size:12px}
.about-course-heading h3{margin:0;font-size:clamp(22px,3vw,28px);font-weight:520;line-height:1.2;letter-spacing:-.55px;color:#f2f4f8}
.about-course-heading>p:last-child{margin:9px 0 0;color:#aeb7c5;font-size:14px;line-height:22px}
.about-learning-path{position:relative;display:flex;flex-direction:column;gap:26px}
.about-learning-path::before{position:absolute;top:15px;bottom:38px;left:33px;width:1px;background:linear-gradient(180deg,#5f94f966,#4778ce40 68%,#ffffff12);content:""}
.about-learning-stage{position:relative;display:grid;grid-template-columns:68px minmax(0,1fr);align-items:start;gap:16px}
.about-stage-index{position:relative;z-index:1;display:grid;width:68px;height:30px;place-items:center;border:1px solid #75a6f844;border-radius:999px;background:linear-gradient(100deg,#1a2d49,#101827);box-shadow:0 0 22px #4382e51f;color:#c8dcff;font-size:12px;font-variant-numeric:tabular-nums;transition:border-color .22s ease,box-shadow .22s ease,color .22s ease}
.about-stage-content{min-width:0;padding-top:3px}
.about-stage-content>h4{margin:0;color:#aebed7;font-size:15px;font-weight:540;line-height:24px;letter-spacing:.01em;transition:color .22s ease}
.about-course-list{list-style:none;margin:7px 0 0;padding:0}
.about-course-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:12px 0;transition:transform .22s ease}
.about-course-list li+li{margin-top:3px}
.about-course-list h5{margin:0;color:#e6eaf1;font-size:16px;font-weight:520;line-height:22px;transition:color .22s ease}
.about-course-list p{margin-top:3px;color:#9da7b6;font-size:13px;line-height:19px}
.about-learning-stage:hover .about-stage-index{border-color:#8bb6ff88;box-shadow:0 0 28px #4382e533;color:#e3edff}
.about-learning-stage:hover>.about-stage-content>h4{color:#d6e4fb}
.about-course-list li:hover{transform:translateX(3px)}
.about-course-list li:hover h5{color:#fff}
.about-course-list li:hover time{color:#c9dcff}
.about-course-list time{color:#96b9f5;font-size:13px;line-height:18px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme="light"] .about-course-heading h3{color:#151a23}
html[data-theme="light"] .about-course-heading>p:last-child{color:#626d7c}
html[data-theme="light"] .about-learning-path::before{background:linear-gradient(180deg,#4e83d966,#4e83d944 68%,#22375418)}
html[data-theme="light"] .about-stage-index{border-color:#4e83d944;background:linear-gradient(100deg,#e5efff,#f5f8fd);box-shadow:0 0 22px #4382e511;color:#315e9e}
html[data-theme="light"] .about-stage-content>h4{color:#202633}
html[data-theme="light"] .about-course-list h5{color:#252c38}
html[data-theme="light"] .about-course-list p{color:#626d7c}
html[data-theme="light"] .about-course-list time{color:#3569b5}
@media(max-width:600px){.about-course-section{margin-top:30px}.about-course-heading{margin-bottom:20px}.about-course-heading>p:last-child{font-size:13px}.about-learning-path{gap:22px}.about-learning-stage{grid-template-columns:68px minmax(0,1fr);gap:12px}.about-stage-index{width:68px;height:28px}.about-learning-path::before{left:33px}.about-course-list li{gap:10px;padding:11px 0}.about-course-list h5{font-size:15px}.about-course-list time{font-size:12px}}

