*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Montserrat",sans-serif;color:#101827;background:#fff;overflow-x:hidden;min-height:100vh}a{text-decoration:none;color:inherit}button,input{font:inherit}:root{--ink:#101827;--muted:#64748b;--paper:#fff;--card:rgba(255,255,255,.88);--line:#e4eaf3;--blue:#2563eb;--purple:#7c3aed;--pink:#ec4899;--nav:#0b132a}body.dark{--ink:#f8fafc;--muted:#a8b1c2;--paper:#0c111c;--card:rgba(17,25,39,.84);--line:#2a3448;--nav:#f8fafc;background:#0c111c}.site-bg{position:fixed;inset:0;z-index:-5;background:url('watercolor-page-bg.webp') center/cover no-repeat;opacity:.92;pointer-events:none;transition:.35s}.site-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.18),rgba(255,255,255,.05))}body.dark .site-bg{opacity:.14;filter:saturate(.8) brightness(.8)}body.dark .site-bg:after{background:rgba(7,12,23,.23)}
/* loader */body.loading{overflow:hidden}.page-loader{position:fixed;inset:0;z-index:50000;display:grid;place-items:center;background:#fff;transition:opacity .4s ease,visibility .4s ease}body.dark .page-loader{background:#07101f}.page-loader.hide{opacity:0;visibility:hidden;pointer-events:none}.loader-wrap{text-align:center}.honeycomb{height:24px;position:relative;width:24px;margin:0 auto 40px;filter:drop-shadow(0 10px 18px rgba(37,99,235,.2))}@keyframes honey{0%,20%,80%,100%{opacity:0;transform:scale(0)}30%,70%{opacity:1;transform:scale(1)}}.honeycomb div{animation:honey 2.1s infinite backwards;background:#2563eb;height:12px;margin-top:6px;position:absolute;width:24px}.honeycomb div:nth-child(2n){background:#7c3aed}.honeycomb div:nth-child(3n){background:#ec4899}.honeycomb div:after,.honeycomb div:before{content:"";border-left:12px solid transparent;border-right:12px solid transparent;position:absolute;left:0;right:0}.honeycomb div:after{top:-6px;border-bottom:6px solid #2563eb}.honeycomb div:before{bottom:-6px;border-top:6px solid #2563eb}.honeycomb div:nth-child(2n):after{border-bottom-color:#7c3aed}.honeycomb div:nth-child(2n):before{border-top-color:#7c3aed}.honeycomb div:nth-child(3n):after{border-bottom-color:#ec4899}.honeycomb div:nth-child(3n):before{border-top-color:#ec4899}.honeycomb div:nth-child(1){left:-28px;top:0}.honeycomb div:nth-child(2){left:-14px;top:22px;animation-delay:.1s}.honeycomb div:nth-child(3){left:14px;top:22px;animation-delay:.2s}.honeycomb div:nth-child(4){left:28px;top:0;animation-delay:.3s}.honeycomb div:nth-child(5){left:14px;top:-22px;animation-delay:.4s}.honeycomb div:nth-child(6){left:-14px;top:-22px;animation-delay:.5s}.honeycomb div:nth-child(7){left:0;top:0;animation-delay:.6s}.loader-brand{font-size:11px;font-weight:800;letter-spacing:.2em;color:#64748b}.loader-brand strong{display:block;font-size:14px;color:var(--ink);letter-spacing:.08em;margin-bottom:6px}
/* header */.page-header{position:sticky;top:0;z-index:2000;padding:14px 22px 8px;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.48),transparent);backdrop-filter:blur(4px)}body.dark .page-header{background:linear-gradient(180deg,rgba(12,17,28,.88),rgba(12,17,28,.52),transparent)}.page-nav{width:min(1420px,calc(100vw - 44px));height:88px;margin:auto;border:1px solid var(--line);border-radius:46px;background:rgba(255,255,255,.89);box-shadow:0 18px 48px rgba(15,23,42,.09);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 20px;position:relative}body.dark .page-nav{background:rgba(12,17,28,.9);box-shadow:0 18px 48px rgba(0,0,0,.28)}.brand-mini{display:flex;align-items:center;gap:12px;min-width:0}.brand-mini img{width:58px;height:58px;object-fit:cover;border-radius:50%;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.12)}.brand-mini strong{font-size:13px;display:block}.brand-mini span{font-size:9px;letter-spacing:.16em;color:var(--muted);font-weight:700}.page-links{display:flex;align-items:center;gap:6px;margin-left:22px}.page-links a{padding:12px 15px;border-radius:999px;font-size:12px;font-weight:700;color:var(--muted);transition:.25s}.page-links a:hover,.page-links a.active{background:#0d1424;color:#fff;box-shadow:0 8px 20px rgba(15,23,42,.14)}body.dark .page-links a:hover,body.dark .page-links a.active{background:#f8fafc;color:#0b132a}.center-logo{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;text-align:center;background:#08111f;color:#fff;border:3px solid #60a5fa;box-shadow:0 0 0 4px rgba(236,72,153,.12),0 10px 24px rgba(15,23,42,.2);position:relative}.center-logo strong{font-size:28px;line-height:1;font-weight:900}.center-logo span{display:block;font-size:6px;letter-spacing:.22em;margin-top:4px}.page-actions{justify-self:end;display:flex;align-items:center;gap:9px}.social-dot,.theme-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:var(--paper);color:var(--ink);cursor:pointer;transition:.22s}.social-dot:hover,.theme-btn:hover{transform:translateY(-2px)}.hire-top{padding:12px 18px;border-radius:999px;background:#0d1424;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;gap:8px}.hire-top:hover{background:#fff;color:#0d1424;box-shadow:0 0 0 1px #0d1424}body.dark .hire-top{background:#f8fafc;color:#0d1424}.mobile-bottom{display:none}
/* page shells */.page-main{width:min(1360px,calc(100% - 34px));margin:0 auto;padding:70px 0 120px}.page-hero{text-align:center;max-width:880px;margin:0 auto 48px}.eyebrow{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;letter-spacing:.22em;text-transform:uppercase;font-weight:800;color:#2563eb;margin-bottom:14px}.eyebrow:before,.eyebrow:after{content:"";width:36px;height:1px;background:linear-gradient(90deg,transparent,#3b82f6)}.eyebrow:after{transform:scaleX(-1)}.page-hero h1{margin:0 0 16px;font-size:clamp(42px,6vw,78px);line-height:.95;letter-spacing:-.05em;font-weight:900}.page-hero p{margin:0 auto;color:var(--muted);font-size:15px;line-height:1.85;max-width:760px}.glass{background:var(--card);border:1px solid var(--line);box-shadow:0 12px 38px rgba(15,23,42,.055);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
/* projects */.filters{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:-18px auto 34px}.filter-btn{border:1px solid var(--line);background:var(--card);color:var(--muted);padding:11px 19px;border-radius:999px;font-weight:700;font-size:12px;cursor:pointer}.filter-btn.active{background:linear-gradient(90deg,#3b82f6,#8b5cf6,#ec4899);color:#fff;border-color:transparent}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.project-card{border-radius:25px;padding:14px;display:flex;flex-direction:column;transition:.3s}.project-card:hover{transform:translateY(-7px);box-shadow:0 20px 46px rgba(59,130,246,.12)}.project-thumb{height:220px;border-radius:18px;overflow:hidden;background:#0b132a}.project-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.5s}.project-card:hover .project-thumb img{transform:scale(1.05)}.project-info{padding:15px 3px 2px}.project-row{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.project-row h3{font-size:17px;margin:0;font-weight:800;line-height:1.35}.tag{font-size:10px;font-weight:800;padding:7px 10px;border-radius:999px;background:#eff6ff;color:#2563eb;white-space:nowrap}.project-info p{color:var(--muted);font-size:12.5px;line-height:1.7;margin:8px 0 16px}.project-actions{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:13px}.project-actions a{font-size:12px;font-weight:800}.view-btn{flex:1;border:1px solid #bfd1ff;border-radius:12px;padding:11px 12px;color:#2563eb;text-align:center}.detail-btn{padding:11px 8px;color:var(--muted)}
/* project detail */.back-link{display:inline-flex;gap:8px;align-items:center;font-weight:800;font-size:12px;color:var(--muted);margin-bottom:24px}.detail-title{text-align:center;margin-bottom:26px}.detail-title h1{font-size:clamp(34px,5vw,66px);margin:6px 0 10px;letter-spacing:-.045em;line-height:1}.detail-title p{color:var(--muted);max-width:760px;margin:auto;line-height:1.8;font-size:14px}.detail-chips{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:17px}.detail-chips span{padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);font-size:11px;font-weight:800;color:#5b6a85}.detail-media{border-radius:28px;padding:14px;margin-bottom:24px}.detail-media img{width:100%;height:min(52vw,560px);object-fit:cover;border-radius:20px;display:block}.code-player{border-radius:28px;margin:24px 0;padding:0;overflow:hidden}.code-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line)}.code-tabs{display:flex;gap:6px}.code-tab{border:0;background:transparent;color:var(--muted);padding:8px 11px;border-radius:9px;font-size:11px;font-weight:800;cursor:pointer}.code-tab.active{background:#111827;color:#fff}body.dark .code-tab.active{background:#f8fafc;color:#111827}.code-grid{display:grid;grid-template-columns:1.15fr .85fr}.code-area{background:#08111f;color:#cbd5e1;padding:20px;min-height:330px;overflow:auto}.code-area pre{margin:0;font:12px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.preview-area{padding:18px;background:rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center}body.dark .preview-area{background:rgba(15,23,42,.6)}.preview-frame{width:100%;height:290px;border:1px solid var(--line);border-radius:18px;background:#fff}.detail-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:22px}.detail-card{border-radius:26px;padding:25px}.detail-card h2,.detail-card h3{margin:0 0 12px;font-size:20px}.detail-card p{color:var(--muted);font-size:13.5px;line-height:1.85}.feature-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.feature{display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:12.5px}.feature i{color:#4f46e5;margin-top:2px}.meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.meta{padding:14px;border-radius:16px;background:rgba(248,250,252,.7);border:1px solid var(--line)}body.dark .meta{background:rgba(15,23,42,.5)}.meta b{display:block;font-size:11px;color:#2563eb;margin-bottom:5px}.meta span{font-size:12px;color:var(--muted)}.detail-cta{display:flex;gap:12px;margin-top:18px}.detail-cta a{flex:1;padding:14px;border-radius:14px;text-align:center;font-weight:800;font-size:12px}.live-btn{background:linear-gradient(90deg,#2563eb,#7c3aed);color:#fff}.back-btn{border:1px solid var(--line);background:var(--card)}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:18px;border:1px solid var(--line)}
/* about */.about-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:28px;align-items:start}.about-photo{border-radius:32px;padding:18px;position:sticky;top:120px}.about-photo img{display:block;width:100%;max-height:650px;object-fit:contain}.about-card{border-radius:28px;padding:26px;margin-bottom:20px}.about-card h2{font-size:25px;margin:0 0 14px}.about-card p{color:var(--muted);font-size:13.5px;line-height:1.9}.info-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.info-pills span{padding:9px 12px;border-radius:999px;border:1px solid var(--line);font-size:11px;color:var(--muted);font-weight:700}.edu-grid,.strength-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.mini-card{border-radius:20px;padding:18px}.mini-card i{width:42px;height:42px;border-radius:13px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;margin-bottom:12px}.mini-card h3{font-size:14px;margin:0 0 5px}.mini-card p{font-size:11.8px;margin:0;color:var(--muted);line-height:1.65}.contact-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px}.contact-chip{padding:13px 14px;border-radius:15px;border:1px solid var(--line);display:flex;gap:10px;align-items:center;font-size:11.5px;color:var(--muted)}.contact-chip i{color:#2563eb}
/* articles */.article-controls{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:-18px auto 30px}.article-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.article-box{border-radius:26px;overflow:hidden}.article-head{padding:22px}.article-head small{color:#2563eb;font-weight:800;letter-spacing:.12em}.article-head h2{font-size:23px;margin:8px 0 10px;line-height:1.25}.article-head p{font-size:13px;line-height:1.75;color:var(--muted);margin:0}.article-meta{display:flex;gap:12px;align-items:center;margin-top:14px;color:var(--muted);font-size:11px}.article-body{border-top:1px solid var(--line);padding:0 22px 22px}.article-body details{padding-top:16px}.article-body summary{cursor:pointer;color:#2563eb;font-size:12px;font-weight:800}.article-body h3{font-size:16px;margin:20px 0 8px}.article-body p,.article-body li{color:var(--muted);font-size:13px;line-height:1.9}.article-body ul{padding-left:20px}.notice{padding:14px 16px;border-left:3px solid #7c3aed;background:rgba(124,58,237,.06);border-radius:0 14px 14px 0;color:var(--muted);font-size:12.5px;line-height:1.8;margin:14px 0}
/* footer */.page-footer{width:100%;padding:0 0 18px}.footer-inner{width:calc(100% - 22px);margin:auto;border-radius:30px;padding:28px;color:#f8fafc;background:radial-gradient(circle at 8% 10%,rgba(37,99,235,.2),transparent 24%),radial-gradient(circle at 92% 6%,rgba(236,72,153,.13),transparent 20%),linear-gradient(180deg,#071126,#050b17);border:1px solid rgba(255,255,255,.08)}body.dark .footer-inner{color:#0f172a;background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(247,249,255,.98));border-color:#d9e2f1}.footer-grid{display:grid;grid-template-columns:1.05fr .75fr .9fr 1.1fr;gap:22px}.footer-face{width:104px;height:88px;position:relative;margin-bottom:8px}.footer-face img{width:96px;height:96px;object-fit:cover;border-radius:50%}.footer-brand h3{font-size:23px;margin:4px 0 8px}.footer-brand p{max-width:300px;color:#b7c1d6;font-size:12.5px;line-height:1.65;margin:0}body.dark .footer-brand p{color:#64748b}.footer-title{font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:800;margin:0 0 12px}.footer-list{list-style:none;margin:0;padding:0}.footer-list li,.footer-list a{color:#b7c1d6;font-size:12px;line-height:1.5}body.dark .footer-list li,body.dark .footer-list a{color:#64748b}.footer-list li{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.07)}body.dark .footer-list li{border-bottom-color:#e3e8f0}.footer-list i{width:19px;color:#60a5fa}.footer-cta-card{border-radius:22px;padding:12px;background:rgba(4,9,18,.55);border:1px solid rgba(120,148,225,.2)}body.dark .footer-cta-card{background:#fff;border-color:#dbe4f3}.footer-cta-card img{width:100%;height:115px;object-fit:cover;border-radius:16px}.footer-cta-card h3{font-size:19px;margin:10px 0 6px}.footer-cta-card h3 span{background:linear-gradient(90deg,#60a5fa,#e879f9);-webkit-background-clip:text;color:transparent}.footer-cta-card p{font-size:11.5px;line-height:1.65;color:#b7c1d6}body.dark .footer-cta-card p{color:#64748b}.footer-cta-card a{display:flex;justify-content:center;padding:11px;border-radius:999px;background:linear-gradient(90deg,#3b82f6,#ec4899);font-weight:800;font-size:12px;color:#fff}.footer-bottom{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#aeb9cf}body.dark .footer-bottom{border-top-color:#e3e8f0;color:#64748b}.footer-socials{display:flex;gap:8px;margin-top:12px}.footer-socials a{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04)}body.dark .footer-socials a{border-color:#e3e8f0;background:#fff}
/* mouse */.trail-dot{position:fixed;width:14px;height:14px;border-radius:50%;pointer-events:none;z-index:30000;transform:translate(-50%,-50%);filter:drop-shadow(0 0 7px currentColor)}
@media(max-width:1050px){.page-links,.page-actions .social-dot{display:none}.page-nav{grid-template-columns:1fr auto 1fr}.hire-top{display:none}.project-grid{grid-template-columns:repeat(2,1fr)}.about-grid{grid-template-columns:1fr}.about-photo{position:relative;top:auto;max-width:520px;margin:auto}.detail-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.about-card h2{text-align:center}.about-card>.edu-grid,.about-card>.strength-grid{margin-top:4px}.info-pills{justify-content:center}.about-card p{text-align:center}.mini-card{text-align:center}.mini-card i{margin-left:auto;margin-right:auto}.contact-chip{justify-content:center;text-align:center}body{padding-bottom:94px}.page-header{padding:10px 10px 0}.page-nav{width:calc(100vw - 20px);height:66px;padding:0 10px;border-radius:34px}.brand-mini img{width:46px;height:46px}.brand-mini div{display:none}.center-logo{width:66px;height:66px;border-width:2px}.center-logo strong{font-size:25px}.page-actions{gap:0}.theme-btn{width:38px;height:38px}.page-main{width:calc(100% - 24px);padding:55px 0 86px}.page-hero{margin-bottom:34px}.page-hero h1{font-size:44px}.page-hero p{font-size:13px;line-height:1.75}.mobile-bottom{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;height:78px;z-index:4000;background:rgba(255,255,255,.95);border-top:1px solid #e6ebf4;box-shadow:0 -10px 30px rgba(15,23,42,.08);align-items:end;padding:7px 4px 8px;backdrop-filter:blur(12px)}body.dark .mobile-bottom{background:rgba(11,17,29,.95);border-color:#283248}.mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#657187;font-size:10px;font-weight:700;height:61px}.mobile-bottom a i{font-size:18px}.mobile-bottom a.active{color:#2563eb}.book-wrap{position:relative;height:78px;display:flex;justify-content:center}.mobile-bottom .book{position:absolute;bottom:4px;width:76px;height:76px;border-radius:50%;background:#fff;color:#2563eb;border:1px solid #c8d6f1;box-shadow:0 8px 24px rgba(37,99,235,.17);gap:2px}body.dark .mobile-bottom .book{background:#111827;border-color:#41506d}.mobile-bottom .book i{font-size:22px}.project-grid,.article-grid,.edu-grid,.strength-grid,.contact-list{grid-template-columns:1fr}.project-thumb{height:210px}.code-grid{grid-template-columns:1fr}.code-area{min-height:260px}.preview-frame{height:260px}.feature-list,.meta-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr}.footer-inner{width:100%;border-radius:26px 26px 0 0;padding:22px 16px}.footer-grid{grid-template-columns:1fr}.footer-cta-card img{height:150px}.page-footer{padding-bottom:0}.about-card{padding:20px}.article-head,.article-body{padding-left:18px;padding-right:18px}.project-actions{gap:5px}}

/* ===== SECONDARY PAGES: FULL LIGHT / DARK THEME SUPPORT ===== */
html{color-scheme:light}
body.dark{color-scheme:dark}
body,
.page-nav,
.glass,
.project-card,
.article-box,
.about-card,
.mini-card,
.contact-chip,
.detail-card,
.code-player,
.meta,
.filter-btn,
.detail-chips span,
.mobile-bottom,
.footer-inner,
.footer-cta-card{
  transition:background-color .36s ease,color .36s ease,border-color .36s ease,box-shadow .36s ease,filter .36s ease;
}
body.dark .glass,
body.dark .project-card,
body.dark .article-box,
body.dark .about-card,
body.dark .mini-card,
body.dark .detail-card,
body.dark .code-player{
  background:rgba(17,25,39,.84);
  border-color:#2a3448;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}
body.dark .project-row h3,
body.dark .article-head h2,
body.dark .article-body h3,
body.dark .about-card h2,
body.dark .mini-card h3,
body.dark .detail-card h2,
body.dark .detail-card h3,
body.dark .detail-title h1,
body.dark .page-hero h1{color:#f8fafc}
body.dark .tag{background:rgba(37,99,235,.15);color:#93c5fd}
body.dark .mini-card i{background:rgba(37,99,235,.14);color:#93c5fd}
body.dark .detail-chips span{background:rgba(17,25,39,.72);color:#c7d2fe;border-color:#334155}
body.dark .contact-chip{background:rgba(17,25,39,.46);border-color:#334155;color:#b8c3d6}
body.dark .filter-btn{background:rgba(17,25,39,.76);border-color:#334155;color:#aeb8ca}
body.dark .filter-btn:hover{color:#fff;border-color:#475569}
body.dark .filter-btn.active{background:linear-gradient(90deg,#2563eb,#7c3aed,#db2777);color:#fff;border-color:transparent}
body.dark .article-body{border-top-color:#2a3448}
body.dark .notice{background:rgba(124,58,237,.13);color:#c5cce0;border-left-color:#a78bfa}
body.dark .project-actions{border-top-color:#2a3448}
body.dark .view-btn{border-color:#3b4f78;background:rgba(37,99,235,.08);color:#93c5fd}
body.dark .detail-btn{color:#aeb8ca}
body.dark .code-head{border-bottom-color:#2a3448}
body.dark .code-area{background:#050b14;color:#d7deec}
body.dark .preview-frame{border-color:#334155;background:#fff}
body.dark .back-btn{background:rgba(17,25,39,.76);color:#e5e7eb;border-color:#334155}
body.dark .meta{background:rgba(15,23,42,.60);border-color:#334155}
body.dark .gallery img{border-color:#334155}
body.dark .social-dot,
body.dark .theme-btn{background:#111827;color:#f8fafc;border-color:#334155}
body.dark .social-dot:hover,
body.dark .theme-btn:hover{background:#172033}
body.dark .brand-mini img{background:#111827}
body.dark .page-loader{color:#f8fafc}

/* Exact split-screen theme transition used on the Home page. */
.secondary-theme-layer-top,
.secondary-theme-layer-bottom{
  position:fixed;
  left:0;
  width:100%;
  height:50vh;
  z-index:99999;
  pointer-events:none;
  will-change:transform;
  transition:transform .9s cubic-bezier(.77,0,.175,1);
}
.secondary-theme-layer-top{top:0;background:#fff;transform:translateY(-101%)}
.secondary-theme-layer-bottom{bottom:0;background:#111;transform:translateY(101%)}
.secondary-theme-layer-top.cover,.secondary-theme-layer-bottom.cover{transform:translateY(0)}
.secondary-theme-layer-top.exit{transform:translateY(-101%)}
.secondary-theme-layer-bottom.exit{transform:translateY(101%)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.trail-dot{display:none!important}.secondary-theme-layer-top,.secondary-theme-layer-bottom{transition-duration:.01ms!important}}
/* ===== PROJECTS / DETAIL SIMPLIFIED FLOW ===== */
.projects-only{padding-top:24px}
.projects-direct{margin-top:0}
.detail-simple-main{padding-top:26px}
.detail-code-first{margin-top:0;margin-bottom:22px}
.detail-code-head{gap:18px}
.detail-code-project{display:flex;flex-direction:column;gap:4px;min-width:0}
.detail-code-project strong{font-size:17px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:720px}
.detail-code-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;color:#2563eb;text-transform:uppercase;display:flex;align-items:center;gap:7px}
.preview-shell{width:100%}
.preview-label{display:flex;align-items:center;gap:7px;margin:0 0 10px;font-size:9px;font-weight:900;letter-spacing:.14em;color:#64748b}
.preview-live-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12),0 0 12px rgba(34,197,94,.42)}
.simple-overview{max-width:960px;margin:0 auto;padding:28px}
.simple-overview-heading{display:flex;align-items:center;gap:14px;margin-bottom:15px}
.simple-overview-heading h2{margin:3px 0 0;font-size:24px}
.overview-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.14);color:#2563eb;font-size:19px;flex:0 0 auto}
.overview-kicker{font-size:9px;font-weight:900;letter-spacing:.18em;color:#7c3aed}
.simple-overview>p{font-size:14px;line-height:1.9;margin:0;color:var(--muted)}
.simple-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.simple-detail-actions a{min-height:50px;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:900;transition:transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease}
.simple-detail-actions .live-btn{background:linear-gradient(90deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 13px 26px rgba(79,70,229,.18)}
.simple-detail-actions .book-now-btn{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.simple-detail-actions a:hover{transform:translateY(-2px)}
.simple-detail-actions .book-now-btn:hover{background:#111827;color:#fff;border-color:#111827}
body.dark .simple-detail-actions .book-now-btn:hover{background:#f8fafc;color:#111827;border-color:#f8fafc}
body.dark .detail-code-project strong,body.dark .simple-overview-heading h2{color:#f8fafc}
body.dark .preview-label{color:#a9b5c8}
@media(max-width:700px){
  .projects-only{padding-top:18px!important}
  .projects-direct{gap:20px}
  .detail-simple-main{padding-top:18px!important;padding-bottom:86px}
  .detail-code-first{border-radius:22px;margin-bottom:18px}
  .detail-code-head{align-items:flex-start;flex-direction:column;padding:14px 14px 12px}
  .detail-code-project strong{font-size:15px;max-width:100%;white-space:normal}
  .code-tabs{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .code-tab{width:100%;text-align:center}
  .code-area{min-height:220px;padding:15px}
  .code-area pre{font-size:10.5px;line-height:1.7}
  .preview-area{padding:13px}
  .preview-frame{height:240px;border-radius:15px}
  .simple-overview{padding:20px;border-radius:22px}
  .simple-overview-heading{justify-content:center;text-align:center;flex-direction:column;gap:9px}
  .simple-overview-heading h2{font-size:23px}
  .simple-overview>p{text-align:center;font-size:13px;line-height:1.82}
  .simple-detail-actions{grid-template-columns:1fr;gap:10px;margin-top:20px}
  .simple-detail-actions a{min-height:48px;font-size:12.5px}
}


/* ===== UNIFIED MOBILE BOTTOM NAV: MATCH HOME PAGE EXACTLY ===== */
@media(max-width:980px){
  body{padding-bottom:112px!important}
  .mobile-bottom{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    height:calc(78px + env(safe-area-inset-bottom))!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:start!important;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;
    border:1px solid rgba(226,232,240,.94)!important;
    border-left:0!important;
    border-right:0!important;
    border-bottom:0!important;
    border-radius:28px 28px 0 0!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 -9px 28px rgba(15,23,42,.10)!important;
    backdrop-filter:blur(20px) saturate(1.15)!important;
    -webkit-backdrop-filter:blur(20px) saturate(1.15)!important;
    z-index:4000!important;
    isolation:isolate;
  }
  .mobile-bottom > a,
  .mobile-bottom .book{
    position:relative;
    height:60px;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#667085;
    border-radius:20px;
    font-size:9.5px;
    font-weight:700;
    letter-spacing:-.01em;
    -webkit-tap-highlight-color:transparent;
    transition:color .22s ease,transform .22s ease,background .22s ease;
  }
  .mobile-bottom > a i{font-size:20px;line-height:1}
  .mobile-bottom > a span,.mobile-bottom .book span{white-space:nowrap}
  .mobile-bottom > a:active{transform:scale(.94)}
  .mobile-bottom > a.active{color:#2563eb!important}
  .mobile-bottom > a.active::after{
    content:"";
    position:absolute;
    bottom:1px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#2563eb;
    box-shadow:0 0 9px rgba(37,99,235,.65);
  }
  .book-wrap{
    position:relative!important;
    height:71px!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    z-index:4!important;
  }
  .book-paint{
    position:absolute;
    left:50%;
    top:-37px;
    width:108px;
    height:82px;
    object-fit:cover;
    transform:translateX(-50%);
    opacity:.40;
    pointer-events:none;
    z-index:-1;
    filter:saturate(.9);
  }
  .mobile-bottom .book{
    position:relative!important;
    bottom:auto!important;
    width:76px!important;
    height:76px!important;
    margin-top:-25px!important;
    border-radius:50%!important;
    gap:4px!important;
    color:#2563eb!important;
    background:rgba(255,255,255,.97)!important;
    border:3px solid rgba(255,255,255,.98)!important;
    outline:1px solid rgba(37,99,235,.16)!important;
    box-shadow:0 12px 26px rgba(15,23,42,.17),0 0 0 6px rgba(37,99,235,.035)!important;
    font-size:10px!important;
    font-weight:800!important;
  }
  .mobile-bottom .book i{font-size:23px!important}
  .mobile-bottom .book:active{transform:scale(.94) translateY(1px)}
  .mobile-bottom .book::after{
    content:"";
    position:absolute;
    bottom:7px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#2563eb;
    box-shadow:0 0 8px rgba(37,99,235,.68);
  }
  body.dark .mobile-bottom{
    background:rgba(10,16,30,.91)!important;
    border-color:rgba(148,163,184,.14)!important;
    box-shadow:0 -5px 20px rgba(0,0,0,.13),0 18px 42px rgba(0,0,0,.34)!important;
  }
  body.dark .mobile-bottom > a{color:#9aa5b7!important}
  body.dark .mobile-bottom > a.active{color:#69a6ff!important}
  body.dark .mobile-bottom > a.active::after{background:#69a6ff!important}
  body.dark .mobile-bottom .book{
    color:#79adff!important;
    background:rgba(13,22,40,.98)!important;
    border-color:rgba(135,177,255,.72)!important;
    outline-color:rgba(98,151,255,.25)!important;
    box-shadow:0 14px 28px rgba(0,0,0,.34),0 0 22px rgba(37,99,235,.18)!important;
  }
  body.dark .mobile-bottom .book::after{background:#79adff!important}
  body.dark .book-paint{opacity:.24;filter:saturate(.85) brightness(.92)}
}
@media(max-width:380px){
  .mobile-bottom{border-radius:24px 24px 0 0!important;padding-left:3px!important;padding-right:3px!important}
  .mobile-bottom > a{font-size:8.7px!important;gap:3px!important}
  .mobile-bottom > a i{font-size:18px!important}
  .mobile-bottom .book{width:70px!important;height:70px!important;margin-top:-22px!important}
  .mobile-bottom .book i{font-size:21px!important}
  .book-paint{width:98px!important;top:-33px!important}
}


/* ===== ARTICLES INDEX + INDIVIDUAL ARTICLE PAGES ===== */
.articles-index-main{padding-top:24px!important}
.article-index-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.article-list-card{border-radius:26px;overflow:hidden;display:flex;flex-direction:column;min-height:300px;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.article-list-card:hover{transform:translateY(-6px);box-shadow:0 20px 46px rgba(59,130,246,.11);border-color:rgba(156,185,255,.82)}
.article-list-content{padding:24px 25px 18px;display:flex;flex-direction:column;flex:1}
.article-list-category{font-size:12px;font-weight:900;letter-spacing:.13em;color:#2563eb;margin-bottom:12px;line-height:1.5}
.article-list-card h2{margin:0 0 14px;color:var(--ink);font-size:clamp(22px,2vw,30px);line-height:1.24;letter-spacing:-.035em;font-weight:900}
.article-list-card p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.9;flex:1}
.article-list-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:11.5px;margin-top:18px}
.article-list-meta span{display:inline-flex;align-items:center;gap:7px}
.article-list-action{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.article-list-action a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:11px 17px;border-radius:999px;background:#fff;border:1px solid #bfd1ff;color:#2563eb;font-size:12.5px;font-weight:900;transition:.22s}
.article-list-action a:hover{background:#111827;color:#fff;border-color:#111827;transform:translateY(-1px)}
body.dark .article-list-action a{background:rgba(17,25,39,.72);border-color:#415379;color:#9dc2ff}
body.dark .article-list-action a:hover{background:#f8fafc;color:#111827;border-color:#f8fafc}

.article-detail-main{width:min(1120px,calc(100% - 34px));padding-top:24px!important}
.article-video-card{position:relative;border-radius:28px;padding:13px;margin:0 0 24px;overflow:hidden}
.article-video-wrap{position:relative;width:100%;aspect-ratio:16/9;border-radius:20px;overflow:hidden;background:#050b14}
.article-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.article-video-badge{position:absolute;left:28px;top:28px;z-index:2;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:rgba(7,12,23,.78);color:#fff;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;backdrop-filter:blur(10px)}
.article-video-badge i{color:#ef4444}
.article-detail-card{border-radius:30px;padding:34px 38px}
.article-detail-head{text-align:center;max-width:900px;margin:0 auto 34px}
.article-detail-head .article-detail-category{font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:#2563eb;margin-bottom:12px}
.article-detail-head h1{margin:0 0 16px;font-size:clamp(34px,5.4vw,66px);line-height:1.02;letter-spacing:-.055em;font-weight:900;color:var(--ink)}
.article-detail-head .lead{margin:0 auto;color:var(--muted);font-size:15px;line-height:1.9;max-width:820px}
.article-detail-meta{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px;color:var(--muted);font-size:11.5px}
.article-detail-meta span{display:inline-flex;align-items:center;gap:7px}
.article-copy-section{max-width:850px;margin:0 auto;padding:24px 0;border-top:1px solid var(--line)}
.article-copy-section:first-of-type{border-top:0;padding-top:0}
.article-copy-section h2{margin:0 0 12px;font-size:26px;line-height:1.25;letter-spacing:-.035em;color:var(--ink)}
.article-copy-section h3{margin:22px 0 8px;font-size:18px;color:var(--ink)}
.article-copy-section p,.article-copy-section li{color:var(--muted);font-size:14px;line-height:2}
.article-copy-section p{margin:0 0 13px}
.article-copy-section ul,.article-copy-section ol{padding-left:22px;margin:10px 0 0}
.article-copy-section li+li{margin-top:6px}
.article-tip{max-width:850px;margin:18px auto;padding:16px 18px;border-radius:18px;border:1px solid rgba(124,58,237,.17);background:linear-gradient(135deg,rgba(37,99,235,.055),rgba(236,72,153,.05));color:var(--muted);font-size:13px;line-height:1.85}
.article-tip strong{color:var(--ink)}
.article-detail-actions{max-width:850px;margin:30px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.article-detail-actions a{min-height:50px;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:900;transition:.22s}
.article-back-btn{border:1px solid var(--line);background:var(--card);color:var(--ink)}
.article-book-btn{background:linear-gradient(90deg,#3b82f6,#7c3aed,#ec4899);color:#fff;box-shadow:0 14px 30px rgba(124,58,237,.16)}
.article-back-btn:hover,.article-book-btn:hover{transform:translateY(-2px)}
body.dark .article-detail-card,body.dark .article-video-card{background:rgba(17,25,39,.84);border-color:#2a3448}
body.dark .article-tip{background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(236,72,153,.08));border-color:#334155;color:#b7c2d6}

@media(max-width:760px){
  .articles-index-main{width:calc(100% - 24px)!important;padding-top:18px!important;padding-bottom:88px!important}
  .article-index-grid{grid-template-columns:1fr;gap:18px}
  .article-list-card{min-height:auto;border-radius:24px}
  .article-list-content{padding:22px 22px 18px}
  .article-list-category{text-align:left;font-size:11.5px;margin-bottom:10px}
  .article-list-card h2{font-size:27px;line-height:1.28;text-align:left}
  .article-list-card p{font-size:13px;line-height:1.85;text-align:left}
  .article-list-meta{gap:12px;font-size:10.8px}
  .article-list-action a{width:100%;min-height:46px}
  .article-detail-main{width:calc(100% - 24px)!important;padding-top:18px!important;padding-bottom:88px!important}
  .article-video-card{padding:8px;border-radius:22px;margin-bottom:16px}
  .article-video-wrap{border-radius:16px}
  .article-video-badge{left:18px;top:18px;padding:7px 10px;font-size:8.8px}
  .article-detail-card{padding:24px 20px;border-radius:24px}
  .article-detail-head{margin-bottom:24px}
  .article-detail-head .article-detail-category{font-size:10.5px;line-height:1.5}
  .article-detail-head h1{font-size:36px;line-height:1.07}
  .article-detail-head .lead{font-size:13px;line-height:1.85}
  .article-detail-meta{gap:11px;font-size:10.5px}
  .article-copy-section{padding:20px 0}
  .article-copy-section h2{text-align:center;font-size:24px}
  .article-copy-section h3{font-size:17px}
  .article-copy-section p,.article-copy-section li{font-size:13px;line-height:1.92}
  .article-tip{text-align:center;font-size:12.5px}
  .article-detail-actions{grid-template-columns:1fr;gap:10px;margin-top:22px}
}


/* Verified / source-backed article enhancements */
.article-verified-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.16);color:#2563eb;font-size:11px;font-weight:800;letter-spacing:.04em;margin-bottom:14px}
body.dark .article-verified-badge{background:rgba(96,165,250,.10);border-color:rgba(96,165,250,.20);color:#93c5fd}
.article-decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.article-decision{padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.52)}
.article-decision h3{margin:0 0 8px;font-size:15px;color:var(--ink)}
.article-decision p{margin:0!important;font-size:13px!important;line-height:1.7!important}
body.dark .article-decision{background:rgba(15,23,42,.42)}
.article-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 0;padding:0;list-style:none}
.article-checklist li{display:flex;gap:10px;align-items:flex-start;padding:12px 13px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.46);font-size:13px;line-height:1.6;color:var(--muted)}
.article-checklist li i{color:#2563eb;margin-top:3px}
body.dark .article-checklist li{background:rgba(15,23,42,.42)}
.article-sources{margin-top:24px;padding:20px;border-radius:20px;border:1px solid rgba(37,99,235,.16);background:linear-gradient(135deg,rgba(37,99,235,.055),rgba(124,58,237,.045),rgba(236,72,153,.035))}
.article-sources h2{margin:0 0 8px!important;font-size:18px!important}
.article-sources p{margin:0 0 12px!important;font-size:12.5px!important;color:var(--muted)!important;line-height:1.65!important}
.article-sources ul{margin:0;padding-left:20px}
.article-sources li{margin:8px 0;color:var(--muted);font-size:12.5px;line-height:1.55}
.article-sources a{color:#2563eb;text-decoration:underline;text-underline-offset:3px;font-weight:700;word-break:break-word}
body.dark .article-sources{border-color:#334155;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(124,58,237,.07),rgba(236,72,153,.05))}
body.dark .article-sources a{color:#93c5fd}
.article-local-card{border-color:rgba(37,99,235,.20)!important;box-shadow:0 12px 34px rgba(37,99,235,.07)!important}
.article-local-card .article-list-category{color:#7c3aed}
.article-local-card .article-list-action a{background:linear-gradient(90deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}
body.dark .article-local-card .article-list-action a{background:linear-gradient(90deg,#3b82f6,#8b5cf6);color:#fff;border-color:transparent}
@media(max-width:680px){.article-decision-grid,.article-checklist{grid-template-columns:1fr}.article-sources{padding:16px}.article-verified-badge{font-size:10px}}

.article-related{margin-top:20px;padding:18px;border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.42)}
.article-related h2{margin:0 0 12px!important;font-size:18px!important}
.article-related-links{display:flex;flex-wrap:wrap;gap:10px}
.article-related a{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:999px;border:1px solid rgba(37,99,235,.16);background:rgba(37,99,235,.06);color:#2563eb;font-size:12px;font-weight:800}
.article-related a:hover{background:#2563eb;color:#fff}
body.dark .article-related{background:rgba(15,23,42,.42)}
body.dark .article-related a{color:#93c5fd;border-color:#334155;background:rgba(37,99,235,.10)}
body.dark .article-related a:hover{background:#3b82f6;color:#fff}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


/* ===== VIDEO ARTICLE CARD GRID ===== */
.article-index-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
}
.article-video-list-card{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  min-width:0;
  display:flex;
  flex-direction:column;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.article-video-list-card:hover{
  transform:translateY(-7px);
  box-shadow:0 22px 50px rgba(59,130,246,.13);
  border-color:rgba(156,185,255,.82);
}
.article-list-video{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#050b14;
  border-bottom:1px solid var(--line);
}
.article-list-video iframe{
  position:absolute;inset:0;width:100%;height:100%;border:0;display:block;
  pointer-events:none;
}
.article-list-video img.article-list-thumb{
  position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;
  transition:transform .5s ease;
}
.article-video-list-card:hover .article-list-video img.article-list-thumb{transform:scale(1.035)}
.article-list-video::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,transparent 58%,rgba(5,11,20,.26));
}
.article-list-video-badge{
  position:absolute;left:12px;bottom:11px;z-index:3;
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 10px;border-radius:999px;
  background:rgba(6,12,24,.76);color:#fff;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.article-list-video-badge i{color:#60a5fa;font-size:12px}
.article-video-list-content{
  padding:18px 18px 16px;
  display:flex;flex-direction:column;flex:1;min-height:270px;
}
.article-video-list-card .article-list-category{margin-bottom:9px;font-size:10.5px}
.article-video-list-card h2{
  margin:0 0 10px;color:var(--ink);
  font-size:18px;line-height:1.34;letter-spacing:-.035em;font-weight:900;
}
.article-video-list-card p{
  margin:0;color:var(--muted);font-size:12.2px;line-height:1.72;flex:1;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
}
.article-video-list-card .article-list-meta{
  margin-top:14px;padding-top:13px;border-top:1px solid var(--line);
  gap:10px;font-size:9.8px;
}
.article-video-list-card .article-list-meta span:nth-child(n+3){display:none}
.article-video-card-footer{
  margin-top:13px;color:#2563eb;font-size:11.5px;font-weight:900;
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
}
.article-video-card-footer i{transition:transform .22s ease}
.article-video-list-card:hover .article-video-card-footer i{transform:translateX(4px)}
.article-card-overlay-link{
  position:absolute;inset:0;z-index:8;border-radius:inherit;
}
.article-card-overlay-link:focus-visible{outline:3px solid #3b82f6;outline-offset:-3px}
body.dark .article-list-video{border-bottom-color:#2a3448}
body.dark .article-list-video-badge{background:rgba(8,13,25,.86)}
@media(max-width:1180px){
  .article-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .article-index-grid{grid-template-columns:1fr!important;gap:18px!important}
  .article-video-list-card{border-radius:24px}
  .article-video-list-content{padding:19px 20px 17px;min-height:0}
  .article-video-list-card h2{font-size:24px;line-height:1.28;text-align:left}
  .article-video-list-card p{font-size:13px;line-height:1.82;text-align:left;-webkit-line-clamp:5}
  .article-video-list-card .article-list-category{text-align:left;font-size:11px}
  .article-video-list-card .article-list-meta{font-size:10.5px}
  .article-video-card-footer{font-size:12.5px;justify-content:flex-start}
}


/* ===== ABOUT PAGE: TRANSPARENT CARD STYLE ===== */
body[data-page="about"] .about-grid{
  gap:34px;
}
body[data-page="about"] .about-photo{
  background:rgba(255,255,255,.28);
  border:1px solid rgba(203,213,225,.72);
  box-shadow:0 16px 38px rgba(148,163,184,.14);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body[data-page="about"] .about-card{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  margin-bottom:28px;
}
body[data-page="about"] .about-card h2{
  font-size:26px;
  margin:0 0 16px;
  letter-spacing:-.02em;
}
body[data-page="about"] .about-card p{
  font-size:13.8px;
}
body[data-page="about"] .info-pills span,
body[data-page="about"] .mini-card,
body[data-page="about"] .contact-chip{
  background:rgba(255,255,255,.34);
  border:1px solid rgba(203,213,225,.78);
  box-shadow:0 12px 26px rgba(148,163,184,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body[data-page="about"] .mini-card{
  border-radius:22px;
}
body[data-page="about"] .contact-list{
  margin-top:8px;
}
body[data-page="about"] .contact-chip{
  min-height:54px;
}
body[data-page="about"] .mini-card i{
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.12);
}
body.dark[data-page="about"] .about-photo{
  background:rgba(10,16,28,.34);
  border-color:rgba(71,85,105,.66);
  box-shadow:0 16px 36px rgba(0,0,0,.24);
}
body.dark[data-page="about"] .about-card{
  background:transparent;
  border:0;
  box-shadow:none;
}
body.dark[data-page="about"] .info-pills span,
body.dark[data-page="about"] .mini-card,
body.dark[data-page="about"] .contact-chip{
  background:rgba(15,23,42,.38);
  border-color:rgba(71,85,105,.62);
  box-shadow:0 14px 28px rgba(0,0,0,.16);
}
body.dark[data-page="about"] .mini-card i{
  background:rgba(37,99,235,.15);
  border-color:rgba(96,165,250,.14);
}
@media(max-width:700px){
  body[data-page="about"] .about-card{
    margin-bottom:24px;
  }
  body[data-page="about"] .about-card h2{
    text-align:center;
    margin-bottom:14px;
  }
  body[data-page="about"] .about-card p{
    text-align:center;
  }
  body[data-page="about"] .mini-card,
  body[data-page="about"] .contact-chip{
    text-align:center;
  }
}


/* ===== ABOUT PAGE: TRUE NO-CARD CLEAN STYLE ===== */
body[data-page="about"] .about-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:42px;
  align-items:start;
}
body[data-page="about"] .about-photo{
  position:sticky;
  top:120px;
  text-align:center;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
body[data-page="about"] .about-photo img{
  display:block;
  width:100%;
  max-height:680px;
  object-fit:contain;
  margin:0 auto;
}
body[data-page="about"] .photo-note{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(203,213,225,.65);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
body[data-page="about"] .photo-note i{color:#2563eb}
body[data-page="about"] .about-content{
  display:block;
}
body[data-page="about"] .about-section{
  padding:0 0 26px;
  margin-bottom:28px;
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid rgba(203,213,225,.62);
  box-shadow:none !important;
}
body[data-page="about"] .about-section:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:0;
}
body[data-page="about"] .about-section h2{
  font-size:26px;
  margin:0 0 16px;
  letter-spacing:-.02em;
  color:var(--text);
}
body[data-page="about"] .about-section p{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13.8px;
  line-height:1.9;
}
body[data-page="about"] .info-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
body[data-page="about"] .info-pills span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  border:0 !important;
  border-bottom:1px solid rgba(203,213,225,.7) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding-bottom:6px;
  font-size:11.5px;
  color:var(--muted);
  font-weight:700;
}
body[data-page="about"] .plain-grid.two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 22px;
}
body[data-page="about"] .plain-item,
body[data-page="about"] .stack-item,
body[data-page="about"] .contact-row{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
body[data-page="about"] .plain-item,
body[data-page="about"] .stack-item{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:14px;
  align-items:start;
  padding:10px 0 14px;
  border-bottom:1px solid rgba(226,232,240,.9);
}
body[data-page="about"] .plain-grid .plain-item:nth-last-child(-n+2){
  border-bottom:1px solid rgba(226,232,240,.9);
}
body[data-page="about"] .stack-list{
  display:grid;
  gap:2px;
}
body[data-page="about"] .plain-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#2563eb;
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.12);
}
body[data-page="about"] .plain-item h3,
body[data-page="about"] .stack-item h3{
  margin:0 0 6px;
  font-size:17px;
  color:var(--text);
}
body[data-page="about"] .plain-item p,
body[data-page="about"] .stack-item p{
  margin:0 0 6px;
  font-size:13px;
}
body[data-page="about"] .contact-plain{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 22px;
}
body[data-page="about"] .contact-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  color:var(--muted);
  border-bottom:1px solid rgba(226,232,240,.9) !important;
  text-decoration:none;
  min-width:0;
}
body[data-page="about"] .contact-row span{word-break:break-word}
body[data-page="about"] .contact-row i{color:#2563eb;width:18px;text-align:center;flex:0 0 18px}
body.dark[data-page="about"] .photo-note{
  border-top-color:rgba(71,85,105,.62);
}
body.dark[data-page="about"] .about-section{
  border-bottom-color:rgba(71,85,105,.58);
}
body.dark[data-page="about"] .info-pills span,
body.dark[data-page="about"] .plain-item,
body.dark[data-page="about"] .stack-item,
body.dark[data-page="about"] .contact-row{
  border-bottom-color:rgba(71,85,105,.5) !important;
}
body.dark[data-page="about"] .plain-icon{
  background:rgba(37,99,235,.15);
  border-color:rgba(96,165,250,.18);
}
@media(max-width:1050px){
  body[data-page="about"] .about-grid{grid-template-columns:1fr}
  body[data-page="about"] .about-photo{position:relative;top:auto;max-width:520px;margin:0 auto}
}
@media(max-width:760px){
  body[data-page="about"] .plain-grid.two-col,
  body[data-page="about"] .contact-plain{grid-template-columns:1fr}
}
@media(max-width:700px){
  body[data-page="about"] .about-section h2,
  body[data-page="about"] .about-section p,
  body[data-page="about"] .photo-note{ text-align:center }
  body[data-page="about"] .info-pills{justify-content:center}
  body[data-page="about"] .plain-item,
  body[data-page="about"] .stack-item{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }
  body[data-page="about"] .contact-row{justify-content:center;text-align:center}
}


/* ===== ABOUT PAGE HERO + WHO I AM CHIP REFINEMENT ===== */
body[data-page="about"] .page-hero{
  max-width:980px;
  margin:0 auto 38px;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body[data-page="about"] .page-hero h1{
  margin:0 0 18px;
}
body[data-page="about"] .page-hero p{
  max-width:760px;
}
body[data-page="about"] .info-pills{
  gap:12px;
  margin-top:20px;
}
body[data-page="about"] .info-pills span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px !important;
  border:1px solid rgba(203,213,225,.86) !important;
  background:rgba(255,255,255,.40) !important;
  box-shadow:0 8px 22px rgba(148,163,184,.08) !important;
  backdrop-filter:blur(8px) !important;
  -webkit-backdrop-filter:blur(8px) !important;
  color:var(--muted);
  font-size:11.6px;
  font-weight:700;
  line-height:1;
  padding-bottom:10px;
}
body[data-page="about"] .info-pills span i{
  color:#64748b;
}
body.dark[data-page="about"] .info-pills span{
  background:rgba(15,23,42,.34) !important;
  border-color:rgba(71,85,105,.68) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.14) !important;
}
body.dark[data-page="about"] .info-pills span i{
  color:#cbd5e1;
}
@media(max-width:760px){
  body[data-page="about"] .page-hero{
    margin-bottom:30px;
  }
  body[data-page="about"] .info-pills{
    justify-content:flex-start;
  }
}
@media(max-width:700px){
  body[data-page="about"] .page-hero{
    margin-bottom:26px;
  }
  body[data-page="about"] .info-pills{
    justify-content:center;
  }
}


/* ===== ABOUT FINAL BOTTOM-LINE ALIGNMENT ===== */
body[data-page="about"] .photo-note{
  margin-top:16px;
  padding-top:0 !important;
  padding-bottom:14px;
  border-top:0 !important;
  border-bottom:1px solid rgba(226,232,240,.9) !important;
}
body.dark[data-page="about"] .photo-note{
  border-top:0 !important;
  border-bottom-color:rgba(71,85,105,.5) !important;
}


/* ===== ARTICLES INDEX SEARCH ===== */
body[data-page="articles"] .articles-search-shell{
  width:min(1420px,calc(100vw - 48px));
  margin:10px auto 4px;
  position:relative;
  z-index:30;
}
body[data-page="articles"] .articles-search-bar{
  height:62px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 18px 0 22px;
  border:1px solid rgba(203,213,225,.86);
  border-radius:32px;
  background:rgba(255,255,255,.68);
  box-shadow:0 14px 34px rgba(15,23,42,.065);
  backdrop-filter:blur(16px) saturate(1.08);
  -webkit-backdrop-filter:blur(16px) saturate(1.08);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
body[data-page="articles"] .articles-search-bar:focus-within{
  border-color:rgba(37,99,235,.42);
  box-shadow:0 16px 38px rgba(37,99,235,.10);
}
body[data-page="articles"] .articles-search-bar>i{color:#2563eb;font-size:17px;flex:0 0 auto}
body[data-page="articles"] #articleSearch{
  flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--text);font-family:"Montserrat",sans-serif;font-size:14px;font-weight:600;
}
body[data-page="articles"] #articleSearch::placeholder{color:#8995aa;opacity:1;font-weight:600}
body[data-page="articles"] #articleSearchClear{
  width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:#94a3b8;cursor:pointer;opacity:0;pointer-events:none;transform:scale(.88);transition:.2s ease;
}
body[data-page="articles"] #articleSearchClear.show{opacity:1;pointer-events:auto;transform:scale(1)}
body[data-page="articles"] #articleSearchClear:hover{background:rgba(148,163,184,.13);color:#2563eb}
body[data-page="articles"] .articles-search-status{min-height:18px;padding:5px 20px 0;text-align:right;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.03em}
body[data-page="articles"] .articles-no-results{text-align:center;padding:48px 20px 30px;color:var(--muted)}
body[data-page="articles"] .articles-no-results i{display:block;font-size:26px;margin-bottom:12px;color:#94a3b8}
body[data-page="articles"] .articles-no-results strong{display:block;color:var(--text);font-size:18px;margin-bottom:6px}
body[data-page="articles"] .articles-no-results span{font-size:12px}
body.dark[data-page="articles"] .articles-search-bar{background:rgba(10,16,28,.72);border-color:rgba(71,85,105,.68);box-shadow:0 16px 36px rgba(0,0,0,.22)}
body.dark[data-page="articles"] #articleSearch{color:#f8fafc}
@media(max-width:760px){
  body[data-page="articles"] .articles-search-shell{width:calc(100% - 24px);margin:8px auto 0}
  body[data-page="articles"] .articles-search-bar{height:56px;border-radius:28px;padding:0 14px 0 18px}
  body[data-page="articles"] #articleSearch{font-size:13px}
  body[data-page="articles"] .articles-search-status{text-align:center;padding-top:5px}
}


/* ===== ARTICLE TYPOGRAPHY + OVERFLOW POLISH ===== */
.article-video-list-card,.article-video-list-content,.article-detail-card,.article-detail-head,.article-copy-section,.article-tip,.article-detail-actions{min-width:0}
.article-video-list-card{overflow:hidden}
.article-video-list-content{overflow:hidden}
.article-list-category{font-weight:700!important;letter-spacing:.10em!important}
.article-video-list-card h2,.article-list-card h2{font-weight:700!important;letter-spacing:-.025em!important}
.article-video-card-footer,.article-list-action a{font-weight:700!important}
.article-video-badge,.article-list-video-badge{font-weight:700!important;letter-spacing:.09em!important}
.article-detail-card{overflow:hidden}
.article-detail-head .article-detail-category{font-weight:700!important;letter-spacing:.12em!important}
.article-detail-head h1{font-weight:800!important;letter-spacing:-.042em!important;overflow-wrap:anywhere;word-break:normal}
.article-detail-head .lead{font-weight:400!important}
.article-copy-section h2{font-weight:700!important;letter-spacing:-.02em!important}
.article-copy-section h3{font-weight:700!important}
.article-copy-section p,.article-copy-section li{font-weight:400!important}
.article-copy-section strong,.article-tip strong{font-weight:700!important}
.article-detail-actions a{font-weight:700!important}
.article-copy-section,.article-copy-section p,.article-copy-section li,.article-copy-section a,.article-tip,.article-detail-head .lead{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.article-copy-section a{max-width:100%;display:inline;}
.article-copy-section pre,.article-copy-section code{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.article-copy-section img,.article-copy-section video,.article-copy-section iframe{max-width:100%;height:auto}
.article-copy-section ul,.article-copy-section ol{max-width:100%;padding-right:4px}
.articles-search-status{display:none!important}
@media(max-width:760px){
  .article-detail-head h1{font-size:clamp(30px,9vw,38px)!important;line-height:1.12!important;letter-spacing:-.032em!important}
  .article-copy-section h2{font-size:21px!important;line-height:1.32!important;text-align:left!important}
  .article-copy-section h3{font-size:16px!important;line-height:1.4!important}
  .article-copy-section p,.article-copy-section li{font-size:12.9px!important;line-height:1.86!important}
  .article-video-list-card h2,.article-list-card h2{font-size:24px!important;line-height:1.34!important}
}


/* ===== ARTICLES SEARCH: STICKY UNDER NAVBAR ===== */
body[data-page="articles"] .articles-search-shell{
  position:sticky !important;
  top:112px;
  z-index:920;
  margin-top:10px;
  margin-bottom:8px;
}
body[data-page="articles"] .articles-search-bar{
  background:rgba(255,255,255,.86);
  box-shadow:0 12px 30px rgba(15,23,42,.09);
  backdrop-filter:blur(18px) saturate(1.12);
  -webkit-backdrop-filter:blur(18px) saturate(1.12);
}
body.dark[data-page="articles"] .articles-search-bar{
  background:rgba(10,16,28,.88);
}
@media(max-width:1180px){
  body[data-page="articles"] .articles-search-shell{top:106px}
}
@media(max-width:980px){
  body[data-page="articles"] .articles-search-shell{top:88px}
}
@media(max-width:560px){
  body[data-page="articles"] .articles-search-shell{top:79px}
}


/* ===== ARTICLES VISIBILITY + COMPACT STICKY FLOW FIX ===== */
body[data-page="articles"] .articles-search-shell{
  margin-bottom:0 !important;
}
body[data-page="articles"] .articles-index-main{
  margin-top:0 !important;
  padding-top:16px !important;
}
body[data-page="articles"] .article-index-grid{
  margin:0 !important;
  padding-top:0 !important;
  align-items:start;
}
/* Never let the huge 71-card grid itself become an invisible reveal wrapper. */
body[data-page="articles"] .article-index-grid.kt-scroll-reveal{
  opacity:1 !important;
  transform:none !important;
  filter:none !important;
}
@media(max-width:760px){
  body[data-page="articles"] .articles-index-main{padding-top:12px !important;}
}


/* ===== PROJECT DETAIL: OPEN, CARD-FREE CASE STUDY LAYOUT ===== */
body[data-page="projects"] .project-detail-open{
  width:min(1120px,calc(100% - 34px));
  padding:54px 0 110px;
}
body[data-page="projects"] .project-detail-intro{
  max-width:900px;
  margin:0 auto 34px;
  text-align:center;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body[data-page="projects"] .project-detail-intro h1{
  margin:0 0 14px;
  font-size:clamp(40px,6vw,72px);
  line-height:1.02;
  letter-spacing:-.055em;
  font-weight:800;
  color:var(--text);
}
body[data-page="projects"] .project-detail-intro>p{
  max-width:760px;
  margin:0 auto;
  color:var(--muted);
  font-size:14px;
  line-height:1.85;
}
body[data-page="projects"] .project-inline-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px 22px;
  margin-top:22px;
  color:var(--muted);
  font-size:11.5px;
}
body[data-page="projects"] .project-inline-meta span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
body[data-page="projects"] .project-inline-meta span+span:before{
  content:"";
  width:1px;
  height:15px;
  margin-right:14px;
  background:rgba(148,163,184,.45);
}
body[data-page="projects"] .project-inline-meta i{color:#2563eb}
body[data-page="projects"] .project-inline-meta b{color:var(--text);font-weight:700}
body[data-page="projects"] .project-inline-meta em{font-style:normal}
body[data-page="projects"] .project-media-section{
  width:100%;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body[data-page="projects"] .project-media-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:26px;
  background:#0b1220;
  border:1px solid rgba(203,213,225,.7);
  box-shadow:0 18px 50px rgba(15,23,42,.10);
}
body[data-page="projects"] .project-media-frame img,
body[data-page="projects"] .project-media-frame iframe{
  width:100%;height:100%;display:block;border:0;
}
body[data-page="projects"] .project-media-frame img{object-fit:cover}
body[data-page="projects"] .project-media-label{
  position:absolute;
  left:18px;bottom:16px;
  display:flex;align-items:center;gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(10,15,25,.64);
  color:#fff;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.16em;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
body[data-page="projects"] .project-media-label span{
  width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 12px rgba(52,211,153,.75)
}
body[data-page="projects"] .project-detail-divider{
  height:1px;
  margin:34px 0 30px;
  background:linear-gradient(90deg,transparent,rgba(148,163,184,.36) 14%,rgba(148,163,184,.36) 86%,transparent);
}
body[data-page="projects"] .project-detail-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body[data-page="projects"] .project-detail-column{
  min-width:0;
  padding:12px 40px 4px 0;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body[data-page="projects"] .project-purpose-column{
  padding:12px 0 4px 40px;
  border-left:1px solid rgba(203,213,225,.68) !important;
}
body[data-page="projects"] .project-detail-heading{
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:16px;
}
body[data-page="projects"] .project-detail-icon{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  flex:0 0 auto;
  font-size:14px;
  background:rgba(37,99,235,.08);
  color:#2563eb;
  border:1px solid rgba(37,99,235,.10);
}
body[data-page="projects"] .project-detail-icon.purpose{
  color:#a855f7;
  background:rgba(168,85,247,.08);
  border-color:rgba(168,85,247,.10);
}
body[data-page="projects"] .project-detail-heading h2{
  margin:0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.025em;
  color:var(--text);
}
body[data-page="projects"] .project-detail-column>p{
  margin:0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.9;
}
body[data-page="projects"] .project-detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
body[data-page="projects"] .project-primary-action,
body[data-page="projects"] .project-secondary-action{
  min-height:46px;
  padding:0 18px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:12.5px;
  font-weight:800;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
body[data-page="projects"] .project-primary-action{
  color:#fff;
  background:linear-gradient(100deg,#2563eb,#6d5dfc);
  box-shadow:0 10px 24px rgba(37,99,235,.20);
}
body[data-page="projects"] .project-secondary-action{
  color:var(--text);
  background:transparent;
  border:1px solid rgba(203,213,225,.84);
}
body[data-page="projects"] .project-primary-action:hover,
body[data-page="projects"] .project-secondary-action:hover{transform:translateY(-2px)}
body[data-page="projects"] .project-role-line{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:24px;
  padding-top:17px;
  border-top:1px solid rgba(226,232,240,.85);
  font-size:12px;
  color:var(--muted);
}
body[data-page="projects"] .project-role-line span{font-weight:700;white-space:nowrap}
body[data-page="projects"] .project-role-line strong{font-weight:700;color:var(--text)}
body.dark[data-page="projects"] .project-media-frame{border-color:rgba(71,85,105,.62);box-shadow:0 20px 54px rgba(0,0,0,.28)}
body.dark[data-page="projects"] .project-purpose-column{border-left-color:rgba(71,85,105,.58)!important}
body.dark[data-page="projects"] .project-secondary-action{border-color:rgba(71,85,105,.68)}
body.dark[data-page="projects"] .project-role-line{border-top-color:rgba(71,85,105,.5)}
@media(max-width:760px){
  body[data-page="projects"] .project-detail-open{width:calc(100% - 24px);padding:32px 0 86px}
  body[data-page="projects"] .project-detail-intro{margin-bottom:26px}
  body[data-page="projects"] .project-detail-intro h1{font-size:clamp(36px,11vw,52px)}
  body[data-page="projects"] .project-inline-meta{gap:10px 14px}
  body[data-page="projects"] .project-inline-meta span+span:before{display:none}
  body[data-page="projects"] .project-media-frame{border-radius:20px}
  body[data-page="projects"] .project-media-label{left:12px;bottom:12px}
  body[data-page="projects"] .project-detail-divider{margin:26px 0 18px}
  body[data-page="projects"] .project-detail-columns{grid-template-columns:1fr}
  body[data-page="projects"] .project-detail-column,
  body[data-page="projects"] .project-purpose-column{padding:18px 0!important;border-left:0!important}
  body[data-page="projects"] .project-purpose-column{border-top:1px solid rgba(203,213,225,.68)!important;margin-top:8px;padding-top:28px!important}
  body.dark[data-page="projects"] .project-purpose-column{border-top-color:rgba(71,85,105,.58)!important}
  body[data-page="projects"] .project-detail-actions{flex-direction:column}
  body[data-page="projects"] .project-primary-action,
  body[data-page="projects"] .project-secondary-action{width:100%}
}


/* ===== ARTICLE DETAIL: OPEN / CARD-FREE LAYOUT ===== */
body[data-page="articles"] .article-detail-main{
  width:min(1160px,calc(100% - 34px));
  margin:0 auto;
  padding-top:42px;
}
body[data-page="articles"] .article-detail-card{
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  padding:28px 8px 42px !important;
  overflow:visible !important;
}
body[data-page="articles"] .article-detail-head{
  max-width:980px;
  margin:0 auto 34px;
  padding:0 10px 30px;
  border-bottom:1px solid rgba(203,213,225,.68);
  text-align:center;
}
body[data-page="articles"] .article-detail-head .lead{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}
body[data-page="articles"] .article-detail-meta{
  justify-content:center;
}
body[data-page="articles"] .article-copy-section{
  max-width:920px;
  margin:0 auto;
  padding:28px 10px;
  border-bottom:1px solid rgba(226,232,240,.82);
  background:transparent !important;
  box-shadow:none !important;
}
body[data-page="articles"] .article-copy-section:last-of-type{border-bottom:0}
body[data-page="articles"] .article-tip{
  max-width:920px;
  margin:28px auto;
}
body[data-page="articles"] .article-detail-actions{
  max-width:920px;
  margin:30px auto 0;
}
body.dark[data-page="articles"] .article-detail-head{
  border-bottom-color:rgba(71,85,105,.58);
}
body.dark[data-page="articles"] .article-copy-section{
  border-bottom-color:rgba(71,85,105,.48);
}
@media(max-width:760px){
  body[data-page="articles"] .article-detail-main{width:calc(100% - 24px);padding-top:24px}
  body[data-page="articles"] .article-detail-card{padding:20px 0 32px !important}
  body[data-page="articles"] .article-detail-head{padding:0 4px 24px;margin-bottom:18px}
  body[data-page="articles"] .article-copy-section{padding:22px 4px}
  body[data-page="articles"] .article-tip{margin:22px 4px}
  body[data-page="articles"] .article-detail-actions{margin:24px 4px 0}
}


/* ===== V10 ARTICLE THUMBNAIL FIT FIX =====
   Force generated 16:9 thumbnails to scale inside article cards.
   !important + inline sizing in backend-client protects against stale/older cached CSS. */
body[data-page="articles"] .article-list-video{
  background:#f7faff;
}
body[data-page="articles"] .article-list-video > img.article-list-thumb{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
}
body[data-page="articles"] .article-video-list-card:hover .article-list-video > img.article-list-thumb{
  transform:scale(1.015);
}


/* ===== PROJECT CARD CLICK FLOW V19 ===== */
/* Card body opens the project detail page. Only the Live Preview button opens the external website. */
.project-card{position:relative;cursor:pointer}
.project-card .project-thumb,
.project-card .project-info{position:relative;z-index:1}
.project-detail-overlay{position:absolute;inset:0;z-index:2;border-radius:inherit;text-decoration:none}
.project-card .project-actions{position:relative;z-index:3}
.project-actions .view-btn{position:relative;z-index:4;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #bfd1ff;border-radius:13px;padding:11px 12px;color:#2563eb;text-align:center;min-height:40px}
.project-actions .view-btn.is-disabled{opacity:.46;cursor:not-allowed;pointer-events:none}
.project-actions .detail-btn{position:relative;z-index:4;border-radius:12px}
.project-card:focus-within{outline:2px solid rgba(37,99,235,.35);outline-offset:3px}
body.dark .project-actions .view-btn{border-color:#3b4f78;background:rgba(37,99,235,.08);color:#93c5fd}
@media(max-width:700px){.project-actions .view-btn{min-height:42px;border-radius:13px}.project-actions .detail-btn{padding:11px 10px}}

