/* BASE */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font-main);background:var(--bg);color:var(--text);line-height:1.6;transition:background .5s,color .5s;overflow-x:hidden;padding-top:56px;}
a{color:inherit;text-decoration:none;}img{max-width:100%;display:block;}

/* SWITCHER */
.theme-switcher{position:fixed;top:0;left:0;right:0;z-index:10000;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px;background:rgba(0,0,0,.9);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1);}
.theme-switcher button{background:transparent;border:1px solid rgba(255,255,255,.2);color:#fff;padding:6px 16px;border-radius:20px;cursor:pointer;font-family:'JetBrains Mono',monospace;font-size:.8rem;transition:all .3s;}
.theme-switcher button.active{background:#fff;color:#000;border-color:#fff;}
.theme-switcher button:hover{border-color:#fff;}

/* LOADER */
body:not(.data-loaded) .page-shell{display:none!important;}
body.data-loaded .page-shell{animation:fade .6s ease;}
@keyframes fade{from{opacity:0}to{opacity:1}}
.loading-overlay{position:fixed;inset:0;background:var(--bg);z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;transition:opacity .6s;}
.loading-overlay.hidden{opacity:0;pointer-events:none;}
.loading-logo{width:120px;height:120px;object-fit:contain;animation:pulse 1.8s ease-in-out infinite;}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.loading-text{font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.4em;text-transform:uppercase;color:var(--accent);animation:fade2 1.6s ease-in-out infinite;}
@keyframes fade2{0%,100%{opacity:.4}50%{opacity:1}}
.loading-dots{display:flex;gap:8px;margin-top:-14px;}
.loading-dots span{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:dot 1.4s ease-in-out infinite;}
.loading-dots span:nth-child(2){animation-delay:.2s}.loading-dots span:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1.15)}}

/* BASE UTILITIES */
.wrap{max-width:1200px;margin:0 auto;padding:0 24px;}
.sec{padding:var(--section-pad);}
.sec-head{margin-bottom:48px;}
.sec-head h2{font-size:2.5rem;margin-bottom:16px;}
.sec-head p{color:var(--text-muted);max-width:600px;}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);text-transform:uppercase;font-size:.75rem;letter-spacing:.1em;margin-bottom:16px;color:var(--accent);}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);}

/* NAV */
.nav{position:fixed;top:56px;left:0;right:0;z-index:100;padding:16px 0;transition:background .3s;}
.nav.solid{background:var(--bg);box-shadow:0 2px 10px rgba(0,0,0,.1);}
.nav-in{display:flex;justify-content:space-between;align-items:center;}
.brand{display:flex;align-items:center;gap:12px;}
.brand-mark svg{width:40px;height:40px;color:var(--accent);}
.brand-text strong{display:block;font-size:1.1rem;}
.brand-text small{display:block;font-size:.7rem;opacity:.7;}
.nav-links{display:flex;gap:24px;align-items:center;}
.nav-links a{font-weight:500;font-size:.9rem;}
.nav-cta{background:var(--accent);color:var(--accent-text)!important;padding:8px 16px;border-radius:var(--radius);}
.burger{display:none;background:none;border:none;cursor:pointer;}
.mobile-menu{display:none;}

/* MARQUEE */
.marquee{padding:16px 0;overflow:hidden;white-space:nowrap;display:flex;}
.marquee-track{display:inline-flex;animation:marq 30s linear infinite;gap:32px;}
.marquee-item{font-family:var(--font-mono);font-size:.9rem;text-transform:uppercase;letter-spacing:.1em;}
@keyframes marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* FOOTER */
.footer{padding:48px 0;border-top:1px solid var(--border);}
.footer-in{display:flex;flex-direction:column;gap:24px;align-items:center;text-align:center;}
.footer-brand{display:flex;align-items:center;gap:12px;}
.footer-brand strong{display:block;}
.footer-brand small{font-size:.75rem;color:var(--text-muted);}
.footer-links{display:flex;gap:24px;flex-wrap:wrap;justify-content:center;}
.footer-links a{font-size:.9rem;color:var(--text-muted);}
.footer-links a:hover{color:var(--accent);}
.footer-copy{font-size:.8rem;color:var(--text-muted);}

/* THEME 4: ORIGINAL */
body.theme-original{
  --bg:#0A2540;--text:#fff;--text-muted:#94A3B8;--accent:#22D3EE;--accent-text:#0A2540;--border:#1E293B;
  --font-main:'Inter',sans-serif;--font-mono:'JetBrains Mono',monospace;--radius:12px;--section-pad:100px 0;
}
body.theme-original .theme-switcher{background:#0A2540;border-bottom:1px solid #1E293B;}
body.theme-original .theme-switcher button.active{background:var(--accent);color:#0A2540;}
body.theme-original .sec-head{text-align:center;}
body.theme-original .sec-head p{margin:0 auto;}
body.theme-original h1,body.theme-original h2,body.theme-original h3{font-weight:700;letter-spacing:-.02em;}
body.theme-original .hero-in{max-width:800px;text-align:left;}
body.theme-original .hero h1{font-size:3.5rem;line-height:1.1;margin:24px 0;}
body.theme-original .grad{color:var(--accent);}
body.theme-original .hero-lede{color:var(--text-muted);margin-bottom:32px;font-size:1.1rem;max-width:600px;}
body.theme-original .hero-cta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:48px;}
body.theme-original .hero-stats{display:flex;gap:32px;flex-wrap:wrap;}
body.theme-original .hero-stats div{display:flex;flex-direction:column;}
body.theme-original .hero-stats strong{font-size:1.5rem;}
body.theme-original .hero-stats span{font-size:.8rem;color:var(--text-muted);}
body.theme-original .card,body.theme-original .service-card,body.theme-original .partner-card,body.theme-original .intro-card,body.theme-original .module,body.theme-original .step{
  border:1px solid var(--border);border-radius:12px;background:#112A45;padding:32px;
}
body.theme-original .btn{background:var(--accent);color:#0A2540;border:none;border-radius:12px;padding:14px 28px;font-weight:600;display:inline-block;}
body.theme-original .btn:hover{background:#06B6D4;}
body.theme-original .bg-dark{background:#06182B;}
body.theme-original .intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;}
body.theme-original .intro-left h2{font-size:2.5rem;margin-bottom:24px;}
body.theme-original .intro-left p{color:var(--text-muted);margin-bottom:16px;}
body.theme-original .intro-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
body.theme-original .services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
body.theme-original .service-card.wide{grid-column:span 2;}
body.theme-original .svc-num{font-family:var(--font-mono);color:var(--accent);font-size:.85rem;margin-bottom:12px;}
body.theme-original .service-card h3{font-size:1.3rem;margin-bottom:12px;}
body.theme-original .service-card p{font-size:.9rem;color:var(--text-muted);margin-bottom:16px;}
body.theme-original .service-card ul{list-style:none;}
body.theme-original .service-card li{font-size:.85rem;padding-left:16px;position:relative;margin-bottom:6px;color:var(--text-muted);}
body.theme-original .service-card li::before{content:'→ ';position:absolute;left:0;color:var(--accent);}
body.theme-original .product-hero{display:grid;grid-template-columns:1fr 1.2fr;gap:48px;}
body.theme-original .product-logo{font-size:3rem;font-weight:800;}
body.theme-original .product-logo span:last-child{font-size:1.5rem;opacity:.7;}
body.theme-original .product-tag{font-family:var(--font-mono);color:var(--accent);margin:16px 0;font-size:.9rem;}
body.theme-original .product-desc{color:var(--text-muted);margin-bottom:24px;}
body.theme-original .module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
body.theme-original .module{padding:20px;display:flex;flex-direction:column;gap:4px;}
body.theme-original .module-mark{font-family:var(--font-mono);color:var(--accent);font-weight:700;font-size:1.1rem;}
body.theme-original .module small{font-size:.75rem;color:var(--text-muted);}
body.theme-original .partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
body.theme-original .partner-card{text-align:center;}
body.theme-original .partner-logo{font-size:2.5rem;font-weight:800;color:var(--accent);margin-bottom:16px;}
body.theme-original .partner-badge{display:inline-block;font-size:.7rem;font-family:var(--font-mono);text-transform:uppercase;border:1px solid var(--accent);color:var(--accent);padding:4px 8px;}
body.theme-original .process-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:24px;}
body.theme-original .step-num{font-family:var(--font-mono);color:var(--accent);font-size:.9rem;font-weight:700;}
body.theme-original .step h3{margin:12px 0 8px;}
body.theme-original .step p{font-size:.9rem;color:var(--text-muted);}
body.theme-original .final{text-align:center;}
body.theme-original .final-in{max-width:700px;margin:0 auto;}
body.theme-original .final-in h2{font-size:3rem;margin-bottom:16px;}
body.theme-original .final-cta,body.theme-original .final-contact{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;}
body.theme-original .final-cta{margin:32px 0;}
body.theme-original .contact-item{display:flex;flex-direction:column;gap:4px;}
body.theme-original .contact-lbl{font-size:.75rem;text-transform:uppercase;color:var(--text-muted);}
body.theme-original .contact-val{font-weight:600;}

/* THEME 1: LAB (Neo-Brutalist Engineering) */
body.theme-lab{
  --bg:#F4F4F0;--text:#0A0A0A;--text-muted:#555;--accent:#00E676;--accent-text:#000;--border:#0A0A0A;
  --font-main:'Inter',sans-serif;--font-mono:'JetBrains Mono',monospace;--radius:0;--section-pad:80px 0;
}
body.theme-lab .theme-switcher{background:#0A0A0A;}
body.theme-lab .theme-switcher button.active{background:var(--accent);color:#000;}
body.theme-lab h1,body.theme-lab h2,body.theme-lab h3{text-transform:uppercase;font-weight:800;letter-spacing:-.02em;}
body.theme-lab .sec-head{text-align:left;border-bottom:4px solid var(--border);padding-bottom:24px;}
body.theme-lab .card,body.theme-lab .service-card,body.theme-lab .partner-card,body.theme-lab .intro-card,body.theme-lab .module,body.theme-lab .step,body.theme-lab .spec-item,body.theme-lab .stack-item,body.theme-lab .team-member{
  border:2px solid var(--border);border-radius:0;box-shadow:4px 4px 0 var(--border);background:#fff;padding:24px;
}
body.theme-lab .card:hover,body.theme-lab .service-card:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #0A0A0A;}
body.theme-lab .btn{background:var(--accent);color:#000;border:2px solid #000;box-shadow:3px 3px 0 #000;border-radius:0;font-weight:700;text-transform:uppercase;padding:12px 24px;display:inline-block;}
body.theme-lab .btn:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 #000;}
body.theme-lab .bg-dark{background:#0A0A0A;color:#fff;}
body.theme-lab .bg-dark .card,body.theme-lab .bg-dark .service-card,body.theme-lab .bg-dark .partner-card,body.theme-lab .bg-dark .stack-item,body.theme-lab .bg-dark .spec-item{background:#1A1A1A;color:#fff;border-color:#fff;box-shadow:4px 4px 0 #fff;}
body.theme-lab .bg-dark .card:hover,body.theme-lab .bg-dark .service-card:hover{box-shadow:6px 6px 0 #fff;}
body.theme-lab .bg-dark .sec-head{border-bottom-color:#fff;}
body.theme-lab .hero-in{display:grid;grid-template-columns:2fr 1fr;gap:16px 48px;max-width:100%;align-items:start;}
body.theme-lab .hero-badge{grid-column:1;}
body.theme-lab .hero h1{grid-column:1;font-size:4rem;}
body.theme-lab .hero-lede{grid-column:1;color:var(--text-muted);margin-bottom:32px;}
body.theme-lab .hero-cta{grid-column:1;display:flex;gap:16px;flex-wrap:wrap;}
body.theme-lab .hero-stats{grid-column:2;grid-row:1/5;display:flex;flex-direction:column;gap:16px;border-left:4px solid var(--border);padding-left:24px;}
body.theme-lab .hero-stats div{display:flex;flex-direction:column;padding-bottom:12px;border-bottom:1px solid var(--border);}
body.theme-lab .hero-stats div:last-child{border:none;}
body.theme-lab .hero-stats strong{font-size:1.5rem;}
body.theme-lab .hero-stats span{font-size:.8rem;color:var(--text-muted);}
body.theme-lab .intro-grid{display:block;}
body.theme-lab .intro-left{border-bottom:4px solid var(--border);padding-bottom:32px;margin-bottom:32px;}
body.theme-lab .intro-left h2{font-size:2.5rem;margin-bottom:24px;}
body.theme-lab .intro-left p{color:var(--text-muted);margin-bottom:16px;}
body.theme-lab .intro-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
body.theme-lab .services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
body.theme-lab .service-card{display:flex;flex-direction:column;}
body.theme-lab .service-card.wide{grid-column:span 2;}
body.theme-lab .svc-num{font-family:var(--font-mono);color:var(--accent);font-size:.85rem;margin-bottom:12px;}
body.theme-lab .service-card h3{margin-bottom:12px;}
body.theme-lab .service-card p{font-size:.9rem;margin-bottom:16px;flex-grow:1;}
body.theme-lab .bg-dark .service-card p,body.theme-lab .bg-dark .service-card li{color:#aaa;}
body.theme-lab .service-card ul{list-style:none;}
body.theme-lab .service-card li{font-size:.85rem;padding-left:16px;position:relative;margin-bottom:6px;}
body.theme-lab .service-card li::before{content:'▸ ';position:absolute;left:0;color:var(--accent);}
body.theme-lab .product-hero{display:block;}
body.theme-lab .product-hero-left{margin-bottom:32px;border-bottom:4px solid var(--border);padding-bottom:32px;}
body.theme-lab .product-logo{font-size:3rem;font-weight:800;}
body.theme-lab .product-logo span:last-child{font-size:1.5rem;opacity:.7;}
body.theme-lab .product-tag{font-family:var(--font-mono);color:var(--accent);margin:16px 0;font-size:.9rem;}
body.theme-lab .product-desc{color:var(--text-muted);margin-bottom:24px;}
body.theme-lab .module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
body.theme-lab .module{display:flex;flex-direction:column;gap:4px;}
body.theme-lab .module-mark{font-family:var(--font-mono);color:var(--accent);font-weight:700;font-size:1.1rem;}
body.theme-lab .module small{font-size:.75rem;color:var(--text-muted);}
body.theme-lab .partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
body.theme-lab .partner-card{text-align:center;}
body.theme-lab .partner-logo{font-size:2.5rem;font-weight:800;color:var(--accent);margin-bottom:16px;}
body.theme-lab .partner-badge{display:inline-block;font-size:.7rem;font-family:var(--font-mono);text-transform:uppercase;border:2px solid var(--border);padding:4px 8px;}
body.theme-lab .process-grid{display:block;}
body.theme-lab .step{display:grid;grid-template-columns:100px 1fr;gap:24px;align-items:baseline;margin-bottom:12px;border-left:6px solid var(--border)!important;}
body.theme-lab .step-num{font-size:2rem;font-family:var(--font-mono);color:var(--accent);}
body.theme-lab .step h3,body.theme-lab .step p{grid-column:2;}

/* NEW LAB SECTIONS: spec, matrix, stack, team */
body.theme-lab .spec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
body.theme-lab .spec-item{display:flex;flex-direction:column;gap:8px;padding:32px 24px;text-align:left;}
body.theme-lab .spec-metric{font-family:var(--font-mono);font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;opacity:.7;}
body.theme-lab .spec-value{font-size:3rem;font-weight:800;color:var(--accent);font-family:var(--font-mono);}
body.theme-lab .spec-note{font-size:.8rem;opacity:.7;}
body.theme-lab .matrix-table{border:2px solid var(--border);overflow-x:auto;}
body.theme-lab .matrix-table table{width:100%;border-collapse:collapse;}
body.theme-lab .matrix-table th,body.theme-lab .matrix-table td{padding:16px 20px;border-bottom:2px solid var(--border);text-align:left;font-size:.9rem;}
body.theme-lab .matrix-table th:first-child{width:40%;font-weight:700;text-transform:uppercase;letter-spacing:.05em;}
body.theme-lab .matrix-table thead th{background:#0A0A0A;color:#fff;font-family:var(--font-mono);text-transform:uppercase;font-size:.75rem;}
body.theme-lab .matrix-table tr:last-child th,body.theme-lab .matrix-table tr:last-child td{border-bottom:none;}
body.theme-lab .matrix-table .ok{color:var(--accent);font-size:1.5rem;}
body.theme-lab .matrix-table .no{color:#ccc;font-size:1.5rem;}
body.theme-lab .stack-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;}
body.theme-lab .stack-item{display:flex;flex-direction:column;gap:4px;padding:20px;text-align:center;align-items:center;}
body.theme-lab .stack-item strong{font-family:var(--font-mono);font-size:1rem;}
body.theme-lab .stack-item small{font-size:.7rem;color:var(--text-muted);}
body.theme-lab .bg-dark .stack-item small{color:#aaa;}
body.theme-lab .team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
body.theme-lab .team-member{display:flex;flex-direction:column;gap:6px;align-items:flex-start;}
body.theme-lab .team-initial{font-size:2.5rem;font-family:var(--font-mono);font-weight:800;color:var(--accent);width:60px;height:60px;display:flex;align-items:center;justify-content:center;border:2px solid var(--border);margin-bottom:8px;}
body.theme-lab .team-member strong{font-size:1rem;}
body.theme-lab .team-member small{font-family:var(--font-mono);font-size:.75rem;text-transform:uppercase;color:var(--accent);}
body.theme-lab .team-member p{font-size:.85rem;color:var(--text-muted);margin-top:8px;}

/* THEME 2: STUDIO (Editorial Magazine) */
body.theme-studio{
  --bg:#FDFBF7;--text:#2C2C2C;--text-muted:#7A7A7A;--accent:#D4A373;--accent-text:#fff;--border:#E5E5E5;
  --font-main:'Playfair Display',serif;--font-mono:'Inter',sans-serif;--radius:0;--section-pad:140px 0;
}
body.theme-studio .theme-switcher{background:#2C2C2C;}
body.theme-studio .theme-switcher button.active{background:var(--accent);color:#fff;}
body.theme-studio h1,body.theme-studio h2,body.theme-studio h3{font-weight:400;}
body.theme-studio .eyebrow{font-family:'Inter',sans-serif;color:var(--accent);}
body.theme-studio .sec-head{text-align:left;max-width:900px;margin-bottom:72px;}
body.theme-studio .sec-head h2{font-size:3.5rem;font-style:italic;line-height:1.05;}
body.theme-studio .sec-head p{margin:16px 0 0;font-size:1.1rem;}
body.theme-studio .card,body.theme-studio .service-card,body.theme-studio .partner-card,body.theme-studio .intro-card,body.theme-studio .module,body.theme-studio .step,body.theme-studio .work-card,body.theme-studio .journal-entry,body.theme-studio .team-member{
  border:none;background:transparent;padding:0;
}
body.theme-studio .marquee{display:none;}
body.theme-studio .btn{background:var(--accent);color:#fff;border:none;border-radius:50px;padding:16px 32px;font-family:'Inter',sans-serif;font-size:.85rem;letter-spacing:.05em;display:inline-block;}
body.theme-studio .bg-dark{background:#2C2C2C;color:#fff;}
body.theme-studio .bg-dark .sec-head p{color:#aaa;}
body.theme-studio .hero{padding:200px 0 120px;}
body.theme-studio .hero-in{display:grid;grid-template-columns:3fr 1fr;gap:64px;max-width:100%;align-items:end;}
body.theme-studio .hero-badge{grid-column:1/-1;font-family:'Inter',sans-serif;}
body.theme-studio .hero h1{grid-column:1;font-size:5.5rem;line-height:.95;font-style:italic;}
body.theme-studio .grad{color:var(--accent);}
body.theme-studio .hero-lede{grid-column:1;font-size:1.2rem;color:var(--text-muted);margin-bottom:32px;}
body.theme-studio .hero-cta{grid-column:1;display:flex;gap:16px;flex-wrap:wrap;}
body.theme-studio .hero-stats{grid-column:2;display:flex;flex-direction:column;}
body.theme-studio .hero-stats div{display:flex;flex-direction:column;padding:20px 0;border-bottom:1px solid var(--border);}
body.theme-studio .hero-stats strong{font-size:2.5rem;}
body.theme-studio .hero-stats span{font-size:.85rem;color:var(--text-muted);}
body.theme-studio .services-grid{display:block;max-width:900px;}
body.theme-studio .service-card{display:grid;grid-template-columns:180px 1fr;gap:32px;padding:64px 0!important;border-bottom:1px solid var(--border);text-align:left;}
body.theme-studio .service-card .svc-num{font-size:4rem;font-style:italic;color:var(--accent);line-height:1;margin:0;}
body.theme-studio .service-card h3{font-size:2.2rem;margin-bottom:16px;}
body.theme-studio .service-card p{font-size:1.1rem;color:var(--text-muted);margin-bottom:16px;}
body.theme-studio .service-card ul{display:flex;gap:32px;flex-wrap:wrap;list-style:none;}
body.theme-studio .service-card li{font-style:italic;color:var(--text-muted);}
body.theme-studio .service-card li::before{content:'— ';color:var(--accent);}
body.theme-studio .bg-dark .service-card{border-bottom-color:#444;}
body.theme-studio .bg-dark .service-card p,body.theme-studio .bg-dark .service-card li{color:#aaa;}
body.theme-studio .product-hero{display:block;}
body.theme-studio .product-hero-left{max-width:700px;margin:0 auto;text-align:center;}
body.theme-studio .product-logo{font-size:4rem;font-style:italic;}
body.theme-studio .product-logo span:last-child{font-size:2rem;opacity:.7;}
body.theme-studio .product-tag{font-family:'Inter',sans-serif;color:var(--accent);margin:16px 0;font-size:.9rem;letter-spacing:.1em;text-transform:uppercase;}
body.theme-studio .product-desc{color:var(--text-muted);margin-bottom:24px;font-size:1.1rem;}
body.theme-studio .module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:48px;}
body.theme-studio .module{border-top:1px solid var(--border);padding:20px 0;text-align:left;}
body.theme-studio .module-mark{font-style:italic;color:var(--accent);font-size:1.1rem;}
body.theme-studio .module small{color:var(--text-muted);font-size:.8rem;}
body.theme-studio .partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;}
body.theme-studio .partner-card{border-right:1px solid var(--border);padding:48px 32px;text-align:center;}
body.theme-studio .partner-card:last-child{border-right:none;}
body.theme-studio .bg-dark .partner-card{border-right-color:#444;}
body.theme-studio .partner-logo{font-size:2.5rem;font-style:italic;color:var(--accent);margin-bottom:16px;}
body.theme-studio .partner-card p{font-size:.95rem;color:var(--text-muted);margin-bottom:16px;}
body.theme-studio .partner-badge{font-family:'Inter',sans-serif;font-size:.7rem;text-transform:uppercase;border:1px solid var(--accent);color:var(--accent);padding:4px 10px;letter-spacing:.1em;}
body.theme-studio .process-grid{display:block;max-width:800px;}
body.theme-studio .step{display:grid;grid-template-columns:180px 1fr;gap:32px;padding:48px 0!important;border-bottom:1px solid var(--border);text-align:left;}
body.theme-studio .step-num{font-size:4rem;color:var(--accent);font-style:italic;}
body.theme-studio .step h3{font-size:1.8rem;margin-bottom:12px;}
body.theme-studio .step p{color:var(--text-muted);font-size:1.05rem;}

/* NEW STUDIO SECTIONS: manifesto, work, journal, team */
body.theme-studio .manifesto-wrap{max-width:760px;margin:0 auto;}
body.theme-studio .manifesto-wrap h2{font-size:3.5rem;font-style:italic;line-height:1.05;margin-bottom:48px;}
body.theme-studio .manifesto-body p{font-size:1.15rem;line-height:1.85;color:var(--text-muted);margin-bottom:24px;}
body.theme-studio .manifesto-quote{font-size:2rem;font-style:italic;line-height:1.4;color:var(--accent);border-left:3px solid var(--accent);padding-left:32px;margin:48px 0;}
body.theme-studio .manifesto-sign{font-family:'Inter',sans-serif;font-size:.85rem;text-transform:uppercase;letter-spacing:.15em;color:var(--text-muted);}
body.theme-studio .work-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:64px 48px;}
body.theme-studio .work-card{border-top:1px solid var(--border);padding-top:24px;}
body.theme-studio .work-client{font-family:'Inter',sans-serif;font-size:.75rem;text-transform:uppercase;letter-spacing:.15em;color:var(--accent);}
body.theme-studio .work-card h3{font-size:2rem;font-style:italic;margin:12px 0 16px;}
body.theme-studio .work-card p{color:var(--text-muted);font-size:1.05rem;margin-bottom:16px;}
body.theme-studio .work-result{font-family:'Inter',sans-serif;font-size:.85rem;color:var(--accent);border-bottom:1px solid var(--accent);padding-bottom:2px;}
body.theme-studio .journal-list{display:grid;grid-template-columns:1fr;gap:0;max-width:800px;}
body.theme-studio .journal-entry{display:grid;grid-template-columns:140px 1fr;gap:32px;padding:32px 0;border-bottom:1px solid #444;text-align:left;}
body.theme-studio .journal-date{font-family:'Inter',sans-serif;font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;color:var(--accent);}
body.theme-studio .journal-entry h3{font-size:1.6rem;font-style:italic;margin-bottom:8px;color:#fff;}
body.theme-studio .journal-entry p{color:#aaa;font-size:1rem;}
body.theme-studio .team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:48px;}
body.theme-studio .team-member{border-top:1px solid var(--border);padding-top:24px;text-align:left;}
body.theme-studio .team-initial{display:none;}
body.theme-studio .team-member strong{font-size:1.6rem;font-style:italic;display:block;margin-bottom:4px;}
body.theme-studio .team-member small{font-family:'Inter',sans-serif;font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;color:var(--accent);display:block;margin-bottom:16px;}
body.theme-studio .team-member p{color:var(--text-muted);font-size:1rem;}

/* THEME 3: TERMINAL (Developer CLI) */
body.theme-terminal{
  --bg:#0A0E17;--text:#E2E8F0;--text-muted:#64748B;--accent:#22D3EE;--accent-text:#0A0E17;--border:#1E293B;
  --font-main:'JetBrains Mono',monospace;--font-mono:'JetBrains Mono',monospace;--radius:4px;--section-pad:100px 0;
}
body.theme-terminal .theme-switcher{background:#000;border-bottom:1px solid var(--border);}
body.theme-terminal .theme-switcher button.active{background:var(--accent);color:#000;box-shadow:0 0 15px var(--accent);}
body.theme-terminal h1,body.theme-terminal h2,body.theme-terminal h3{font-weight:700;text-shadow:0 0 10px rgba(34,211,238,.3);}
body.theme-terminal .sec-head{text-align:left;}
body.theme-terminal .sec-head h2{font-size:2rem;}
body.theme-terminal .sec-head h2::before{content:'> ';color:var(--accent);}
body.theme-terminal .sec-head p{font-size:.9rem;max-width:700px;}
body.theme-terminal .marquee{display:none;}
body.theme-terminal .card,body.theme-terminal .service-card,body.theme-terminal .partner-card,body.theme-terminal .intro-card,body.theme-terminal .module,body.theme-terminal .step,body.theme-terminal .spec-item{
  border:1px solid var(--border);border-radius:4px;background:rgba(30,41,59,.4);padding:24px;position:relative;overflow:hidden;
}
body.theme-terminal .card::before{content:'';position:absolute;top:0;left:0;width:100%;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.5;}
body.theme-terminal .btn{background:transparent;color:var(--accent);border:1px solid var(--accent);border-radius:4px;padding:12px 24px;display:inline-block;}
body.theme-terminal .btn:hover{background:var(--accent);color:#000;box-shadow:0 0 20px var(--accent);}
body.theme-terminal .bg-dark{background:#000;}
body.theme-terminal .hero-in{max-width:100%;border:1px solid var(--border);padding:56px 48px 40px;background:rgba(0,0,0,.4);border-radius:6px;position:relative;}
body.theme-terminal .hero-in::before{content:'● ● ●   ~/concept-lab — zsh';position:absolute;top:14px;left:20px;font-size:.75rem;color:var(--text-muted);}
body.theme-terminal .hero-badge::before{content:'$ ';color:var(--accent);}
body.theme-terminal .hero h1{font-size:2.5rem;line-height:1.4;margin:32px 0 24px;}
body.theme-terminal .grad{color:var(--accent);}
body.theme-terminal .hero-lede{color:var(--text-muted);margin-bottom:24px;font-size:1rem;}
body.theme-terminal .hero-cta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;}
body.theme-terminal .hero-stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px dashed var(--border);padding-top:24px;margin-top:32px;gap:0;}
body.theme-terminal .hero-stats div{border-right:1px dashed var(--border);padding:0 16px;display:flex;flex-direction:column;}
body.theme-terminal .hero-stats div:last-child{border-right:none;}
body.theme-terminal .hero-stats strong{font-size:1.4rem;color:var(--accent);}
body.theme-terminal .hero-stats span{font-size:.75rem;color:var(--text-muted);}
body.theme-terminal .services-grid{display:grid;grid-template-columns:1fr;gap:8px;}
body.theme-terminal .service-card{display:grid;grid-template-columns:80px 2fr 1fr;gap:24px;align-items:start;padding:20px 24px!important;}
body.theme-terminal .service-card .svc-num{grid-row:1/3;margin:0;font-size:1.5rem;color:var(--accent);font-family:var(--font-mono);}
body.theme-terminal .service-card h3{grid-column:2;margin:0 0 8px;font-size:1.1rem;}
body.theme-terminal .service-card h3::before{content:'> ';color:var(--accent);}
body.theme-terminal .service-card p{grid-column:2;margin:0;font-size:.85rem;color:var(--text-muted);}
body.theme-terminal .service-card ul{grid-column:3;grid-row:1/3;margin:0;list-style:none;}
body.theme-terminal .service-card li{font-size:.8rem;color:var(--text-muted);margin-bottom:4px;padding:0;}
body.theme-terminal .service-card li::before{content:'├── ';color:var(--text-muted);}
body.theme-terminal .service-card.wide{grid-column:span 1;}
body.theme-terminal .product-hero{display:grid;grid-template-columns:1fr;gap:48px;}
body.theme-terminal .product-logo{font-size:2.5rem;color:var(--accent);}
body.theme-terminal .product-logo::before{content:'pkg: ';color:var(--text-muted);font-size:.9rem;}
body.theme-terminal .product-logo span:last-child{font-size:1.2rem;opacity:.7;}
body.theme-terminal .product-tag{color:var(--text-muted);font-size:.85rem;margin:16px 0;}
body.theme-terminal .product-desc{color:var(--text-muted);font-size:.9rem;margin-bottom:24px;}
body.theme-terminal .module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
body.theme-terminal .module{padding:12px 16px!important;display:flex;flex-direction:column;gap:4px;}
body.theme-terminal .module-mark{color:var(--accent);font-size:1rem;}
body.theme-terminal .module strong{font-size:.9rem;}
body.theme-terminal .module strong::before{content:'├── ';color:var(--accent);}
body.theme-terminal .module small{font-size:.7rem;color:var(--text-muted);}
body.theme-terminal .partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
body.theme-terminal .partner-logo{font-size:2rem;color:var(--accent);margin-bottom:12px;}
body.theme-terminal .partner-logo::before{content:'@ ';}
body.theme-terminal .partner-card h3{font-size:1rem;margin-bottom:8px;}
body.theme-terminal .partner-card p{font-size:.85rem;color:var(--text-muted);margin-bottom:12px;}
body.theme-terminal .partner-badge{font-size:.7rem;border:1px solid var(--accent);color:var(--accent);padding:3px 8px;display:inline-block;}
body.theme-terminal .process-grid{display:grid;grid-template-columns:1fr;gap:8px;}
body.theme-terminal .step{display:grid;grid-template-columns:80px 1fr;gap:24px;padding:16px 24px!important;border-left:3px solid var(--accent)!important;border-radius:0!important;}
body.theme-terminal .step-num{font-size:.9rem;color:var(--accent);}
body.theme-terminal .step-num::before{content:'[';}
body.theme-terminal .step-num::after{content:']';}
body.theme-terminal .step h3{margin:0 0 8px;font-size:1rem;}
body.theme-terminal .step p{grid-column:2;margin:0;font-size:.85rem;color:var(--text-muted);}

/* NEW TERMINAL SECTIONS: install, api, status, changelog */
body.theme-terminal .install-block{border:1px solid var(--border);background:#000;border-radius:6px;padding:24px;font-family:var(--font-mono);}
body.theme-terminal .install-cmd{display:flex;gap:12px;align-items:center;font-size:1rem;margin-bottom:16px;}
body.theme-terminal .install-cmd .prompt{color:var(--accent);}
body.theme-terminal .install-cmd code{color:var(--text);}
body.theme-terminal .install-out{font-size:.85rem;color:var(--text-muted);line-height:1.7;white-space:pre;border-top:1px dashed var(--border);padding-top:16px;}
body.theme-terminal .api-list{display:grid;grid-template-columns:1fr;gap:8px;}
body.theme-terminal .api-row{display:grid;grid-template-columns:80px 1fr 1.5fr;gap:24px;align-items:center;padding:16px 24px;border:1px solid var(--border);border-radius:4px;background:rgba(30,41,59,.4);}
body.theme-terminal .api-method{font-size:.75rem;font-weight:700;padding:4px 8px;border-radius:3px;text-align:center;letter-spacing:.05em;}
body.theme-terminal .api-get{background:#22D3EE;color:#000;}
body.theme-terminal .api-post{background:#00E676;color:#000;}
body.theme-terminal .api-put{background:#FFB020;color:#000;}
body.theme-terminal .api-delete{background:#EF4444;color:#fff;}
body.theme-terminal .api-path{color:var(--accent);font-family:var(--font-mono);font-size:.9rem;}
body.theme-terminal .api-desc{font-size:.85rem;color:var(--text-muted);}
body.theme-terminal .status-table{display:grid;grid-template-columns:1fr;gap:8px;border:1px solid var(--border);border-radius:6px;padding:8px;background:rgba(30,41,59,.4);}
body.theme-terminal .status-row{display:grid;grid-template-columns:20px 1fr 120px 80px;gap:16px;align-items:center;padding:12px 16px;border-radius:4px;}
body.theme-terminal .status-row:hover{background:rgba(34,211,238,.05);}
body.theme-terminal .status-dot{width:10px;height:10px;border-radius:50%;background:#EF4444;}
body.theme-terminal .status-dot.on{background:#00E676;box-shadow:0 0 10px #00E676;}
body.theme-terminal .status-name{font-size:.9rem;}
body.theme-terminal .status-uptime{font-size:.85rem;color:var(--accent);}
body.theme-terminal .status-state{font-size:.75rem;text-transform:uppercase;color:var(--text-muted);letter-spacing:.05em;}
body.theme-terminal .changelog-list{display:grid;grid-template-columns:1fr;gap:16px;}
body.theme-terminal .release{border:1px solid var(--border);border-radius:4px;background:rgba(30,41,59,.4);padding:20px 24px;border-left:3px solid var(--accent);}
body.theme-terminal .release-head{display:flex;gap:16px;align-items:baseline;margin-bottom:12px;}
body.theme-terminal .release-version{color:var(--accent);font-weight:700;font-size:1rem;}
body.theme-terminal .release-date{font-size:.75rem;color:var(--text-muted);}
body.theme-terminal .release ul{list-style:none;padding:0;}
body.theme-terminal .release li{font-size:.85rem;color:var(--text-muted);padding-left:16px;position:relative;margin-bottom:6px;}
body.theme-terminal .release li::before{content:'+ ';color:var(--accent);position:absolute;left:0;}

/* FINAL (all themes) */
.final-in h2{font-size:3rem;margin-bottom:16px;}
.final-sub{color:var(--text-muted);margin-bottom:32px;}
.final-cta{display:flex;gap:16px;margin-bottom:32px;flex-wrap:wrap;}
.final-contact{display:flex;gap:32px;flex-wrap:wrap;}
.contact-item{display:flex;flex-direction:column;gap:4px;}
.contact-lbl{font-size:.75rem;text-transform:uppercase;color:var(--text-muted);font-family:var(--font-mono);}
.contact-val{font-weight:600;}
body.theme-terminal .final-in h2::before{content:'$ ';color:var(--accent);}
body.theme-terminal .final-in h2{font-size:1.8rem;}
body.theme-terminal .final-cta,body.theme-terminal .final-contact{justify-content:flex-start;}
body.theme-studio .final-in h2{font-style:italic;}

/* RESPONSIVE */
@media (max-width:900px){
  body.theme-lab .hero-in,body.theme-studio .hero-in{grid-template-columns:1fr!important;}
  body.theme-lab .hero-stats{grid-row:auto;border-left:none;padding-left:0;border-top:4px solid var(--border);padding-top:16px;flex-direction:row;flex-wrap:wrap;}
  body.theme-studio .hero-stats{flex-direction:row;}
  body.theme-lab .intro-cards{grid-template-columns:repeat(2,1fr);}
  body.theme-lab .services-grid{grid-template-columns:1fr;}
  body.theme-lab .service-card.wide{grid-column:span 1;}
  body.theme-lab .module-grid,body.theme-terminal .module-grid{grid-template-columns:repeat(2,1fr);}
  body.theme-lab .partner-grid,body.theme-terminal .partner-grid{grid-template-columns:1fr;}
  body.theme-lab .spec-grid{grid-template-columns:repeat(2,1fr);}
  body.theme-lab .stack-grid{grid-template-columns:repeat(3,1fr);}
  body.theme-lab .team-grid{grid-template-columns:repeat(2,1fr);}
  body.theme-terminal .hero-stats{grid-template-columns:repeat(2,1fr);}
  body.theme-terminal .service-card{grid-template-columns:1fr;}
  body.theme-terminal .service-card .svc-num,body.theme-terminal .service-card h3,body.theme-terminal .service-card p,body.theme-terminal .service-card ul{grid-column:auto;grid-row:auto;}
  body.theme-terminal .api-row{grid-template-columns:1fr;}
  body.theme-terminal .status-row{grid-template-columns:20px 1fr 80px 60px;}
  body.theme-studio .service-card,body.theme-studio .step{grid-template-columns:1fr!important;}
  body.theme-studio .intro-cards,body.theme-studio .work-grid,body.theme-studio .team-grid,body.theme-studio .module-grid,body.theme-studio .partner-grid{grid-template-columns:1fr!important;}
  body.theme-studio .partner-card{border-right:none;border-bottom:1px solid var(--border);}
  body.theme-studio .journal-entry{grid-template-columns:1fr;}
  body.theme-original .intro-grid,body.theme-original .intro-cards,body.theme-original .services-grid,body.theme-original .product-hero,body.theme-original .module-grid,body.theme-original .partner-grid,body.theme-original .process-grid{grid-template-columns:1fr!important;}
  body.theme-original .service-card.wide{grid-column:span 1;}
}
@media (max-width:768px){
  .nav-links{display:none;}
  .burger{display:block;width:30px;height:20px;position:relative;}
  .burger span,.burger::before,.burger::after{content:'';position:absolute;height:2px;width:100%;background:var(--text);left:0;transition:all .3s;}
  .burger::before{top:0;}.burger span{top:9px;}.burger::after{top:18px;}
  .burger.open span{opacity:0;}.burger.open::before{transform:rotate(45deg);top:9px;}.burger.open::after{transform:rotate(-45deg);top:9px;}
  .mobile-menu{position:fixed;inset:0;background:var(--bg);z-index:99;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding-top:60px;}
  .mobile-menu.open{display:flex!important;}
  .mobile-menu a{font-size:1.5rem;font-weight:600;}
  .hero h1{font-size:2.5rem!important;}
}