/* ════════════════════════════════════════════════════════
   Josh_d_Guru — Portfolio Styles
   Responsive: 320px → 2560px+  (Mobile-first + max-width)
   ════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────── */
:root {
  --bg:          #080808;
  --bg-alt:      #0E0E0E;
  --surface:     #141414;
  --surface-2:   #1C1C1C;
  --surface-3:   #262626;
  --gold:        #C8A96E;
  --gold-dim:    rgba(200,169,110,0.15);
  --gold-glow:   rgba(200,169,110,0.35);
  --text:        #F0EDE8;
  --text-muted:  #888880;
  --border:      rgba(200,169,110,0.18);
  --border-dim:  rgba(255,255,255,0.07);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(200,169,110,0.14);
  --font-display:'Inter Tight', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-serif:  'Playfair Display', serif;
  --font-mono:   'JetBrains Mono', monospace;
  --nav-h:       72px;
  --container:   1200px;
  --sec-pad:     120px;
  --gap:         2rem;
}

/* ─── Reset ─────────────────────────────────────────── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  background:var(--bg);color:var(--text);
  font-family:var(--font-body);font-size:16px;line-height:1.65;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;height:auto;}
button{border:none;background:none;font-family:inherit;}
input,textarea,select{font-family:inherit;}
em{font-family:var(--font-serif);font-style:italic;}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar{width:5px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--gold);border-radius:99px;}

/* ─── Noise Overlay ─────────────────────────────────── */
.noise-overlay{
  pointer-events:none;position:fixed;inset:0;z-index:9999;opacity:0.025;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Custom Cursor ─────────────────────────────────── */
.cursor,.cursor-trail{display:none;}
@media(hover:hover)and(pointer:fine){
  body,button{cursor:none;}
  .cursor{
    display:block;position:fixed;width:8px;height:8px;
    border-radius:50%;background:var(--gold);pointer-events:none;
    z-index:10000;transform:translate(-50%,-50%);
    transition:width .2s,height .2s;
  }
  .cursor-trail{
    display:block;position:fixed;width:32px;height:32px;border-radius:50%;
    border:1px solid var(--gold);pointer-events:none;z-index:9999;
    transform:translate(-50%,-50%);opacity:.5;
    transition:width .3s,height .3s,opacity .3s;
  }
}

/* ─── Utilities ─────────────────────────────────────── */
.container{max-width:var(--container);margin:0 auto;padding:0 var(--gap);width:100%;}
.section{padding:var(--sec-pad) 0;}
.gold{
  color:var(--gold);
  font-family:var(--font-serif) !important;
  font-style:italic !important;
  font-weight:500 !important;
  text-transform:none !important;
}
.section-tag{
  display:inline-block;font-family:var(--font-mono);font-size:.75rem;
  letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem;
}
.section-title{
  font-family:var(--font-display);font-size:clamp(2.2rem,4.5vw,3.8rem);
  font-weight:800;line-height:1.05;letter-spacing:-.02em;margin-bottom:1.5rem;
}
.section-title em{
  font-family:var(--font-serif);
  font-weight:500;
  font-style:italic;
  color:var(--gold);
  text-transform:none;
}
.section-header{margin-bottom:4rem;}
.section-header.centered{text-align:center;}
.section-sub{color:var(--text-muted);max-width:480px;font-size:1.05rem;}

/* ─── Buttons ───────────────────────────────────────── */
.btn-primary{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--gold);color:#080808;padding:.85rem 2rem;
  border-radius:6px;font-family:var(--font-display);font-weight:700;
  font-size:.95rem;letter-spacing:.02em;transition:all .25s;
  position:relative;overflow:hidden;cursor:pointer;
}
.btn-primary::before{
  content:'';position:absolute;inset:0;background:rgba(255,255,255,.12);
  transform:translateX(-110%);transition:transform .35s ease;
}
.btn-primary:hover::before{transform:translateX(0);}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px var(--gold-glow);}

.btn-ghost{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 2rem;border-radius:6px;border:1px solid var(--border);
  font-family:var(--font-display);font-weight:600;font-size:.95rem;
  color:var(--text);transition:all .25s;cursor:pointer;
}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px);}

/* ─── Reveal Animations ─────────────────────────────── */
.reveal-up{
  opacity:0;transform:translateY(30px);
  animation:revealUp .8s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay:var(--d,0s);
}
.reveal-right{
  opacity:0;transform:translateX(50px);
  animation:revealRight .9s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay:var(--d,0s);
}
@keyframes revealUp{to{opacity:1;transform:translateY(0);}}
@keyframes revealRight{to{opacity:1;transform:translateX(0);}}

/* ─── Loading Spinner ───────────────────────────────── */
.loading-spinner{
  width:36px;height:36px;border:3px solid var(--border-dim);
  border-top-color:var(--gold);border-radius:50%;
  animation:spin .8s linear infinite;margin:0 auto .8rem;
}
@keyframes spin{to{transform:rotate(360deg);}}
.projects-loading{
  text-align:center;padding:3rem;color:var(--text-muted);
  font-family:var(--font-mono);font-size:.85rem;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
#navbar{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  height:var(--nav-h);transition:background .4s,border-bottom .4s,backdrop-filter .4s;
}
#navbar.scrolled{
  background:rgba(8,8,8,.88);backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:var(--container);margin:0 auto;padding:0 var(--gap);
  height:100%;display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{
  font-family:var(--font-display);font-size:1.15rem;font-weight:800;
  letter-spacing:-.01em;white-space:nowrap;flex-shrink:0;
}
.logo-bracket{color:var(--gold);}

.nav-links{
  display:flex;align-items:center;gap:2.5rem;
}
.nav-link{
  font-family:var(--font-mono);font-size:.82rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text-muted);transition:color .2s;
  position:relative;white-space:nowrap;
}
.nav-link::after{
  content:'';position:absolute;bottom:-3px;left:0;
  width:0;height:1px;background:var(--gold);transition:width .3s;
}
.nav-link:hover{color:var(--text);}
.nav-link:hover::after,.nav-link.active::after{width:100%;}
.nav-link.active{color:var(--gold);}

.nav-cta{
  font-family:var(--font-display);font-size:.82rem;font-weight:700;
  letter-spacing:.05em;color:var(--gold);padding:.5rem 1.2rem;
  border:1px solid var(--border);border-radius:5px;transition:all .2s;
  white-space:nowrap;
}
.nav-cta:hover{background:var(--gold-dim);}

.hamburger{
  display:none;flex-direction:column;gap:5px;
  padding:6px;background:none;border:none;cursor:pointer;z-index:10;
}
.hamburger span{
  display:block;width:22px;height:2px;background:var(--text);
  border-radius:2px;transition:all .3s;
}
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.hamburger.open span:nth-child(2){opacity:0;transform:translateX(-8px);}
.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}

.mobile-menu-overlay{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);
  z-index:98;backdrop-filter:blur(4px);
}
.mobile-menu-overlay.visible{display:block;}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero{
  min-height:100vh;display:flex;align-items:center;
  padding-top:var(--nav-h);position:relative;overflow:hidden;
}
.hero-bg-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(200,169,110,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(200,169,110,.04) 1px,transparent 1px);
  background-size:60px 60px;
}
.hero-dotted-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.65;
}
.hero-dotted-surface canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-orb{position:absolute;border-radius:50%;pointer-events:none;filter:blur(80px);opacity:.5;}
.hero-orb-1{width:500px;height:500px;background:radial-gradient(circle,rgba(200,169,110,.15),transparent 70%);top:-100px;right:10%;}
.hero-orb-2{width:350px;height:350px;background:radial-gradient(circle,rgba(255,104,48,.1),transparent 70%);bottom:10%;left:-80px;}

.hero-content{
  max-width:var(--container);margin:0 auto;padding:4rem var(--gap);
  display:grid;grid-template-columns:1fr 1fr;gap:5rem;
  align-items:center;width:100%;
}
.hero-tag{
  font-family:var(--font-mono);font-size:.78rem;color:var(--gold);
  letter-spacing:.12em;text-transform:uppercase;
  display:flex;align-items:center;gap:.5rem;margin-bottom:1.2rem;
}
.hero-name{
  font-family:var(--font-display);font-size:clamp(3rem,6vw,6rem);
  font-weight:800;line-height:.95;letter-spacing:-.03em;margin-bottom:1.5rem;
}
.name-gold{
  color:var(--gold);
  font-family:var(--font-serif) !important;
  font-style:italic !important;
  font-weight:500 !important;
  text-transform:none !important;
}

.hero-roles{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem;}
.role-pill{
  font-family:var(--font-mono);font-size:.75rem;padding:.4rem .9rem;
  border:1px solid var(--border-dim);border-radius:99px;color:var(--text-muted);
  transition:all .3s;
}
.role-pill.active{border-color:var(--gold);color:var(--gold);background:var(--gold-dim);}

.hero-bio{
  color:var(--text-muted);font-size:1.05rem;line-height:1.7;
  max-width:500px;margin-bottom:2rem;
}
.hero-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-bottom:3rem;}

.hero-stats{display:flex;align-items:center;gap:2rem;}
.stat{display:flex;flex-direction:column;}
.stat-num{
  font-family:var(--font-display);font-size:2rem;font-weight:800;
  color:var(--gold);line-height:1;
}
.stat-num::after{content:'+';font-size:1.4rem;}
.stat-label{
  font-family:var(--font-mono);font-size:.7rem;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.1em;margin-top:.2rem;
}
.stat-divider{width:1px;height:40px;background:var(--border);}

/* Photo Frame */
.hero-visual{position:relative;display:flex;justify-content:center;align-items:center;}
.photo-frame{position:relative;width:380px;height:460px;}
.hero-photo{
  width:100%;height:100%;object-fit:cover;border-radius:var(--radius-lg);
  position:relative;z-index:2;filter:grayscale(10%);transition:filter .4s;
}
.hero-photo:hover{filter:grayscale(0%);}
.photo-ring{
  position:absolute;inset:-12px;border-radius:26px;
  border:1px solid var(--border);z-index:1;
  animation:ringPulse 3s ease-in-out infinite;
}
.photo-ring-2{inset:-24px;border-color:rgba(200,169,110,.08);animation-delay:.5s;}
@keyframes ringPulse{0%,100%{opacity:.6;transform:scale(1);}50%{opacity:1;transform:scale(1.01);}}

.photo-badge{
  position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);z-index:3;
  background:var(--surface-2);border:1px solid var(--border);
  padding:.5rem 1.2rem;border-radius:99px;font-size:.78rem;
  font-family:var(--font-mono);white-space:nowrap;
  display:flex;align-items:center;gap:.5rem;
}
.badge-dot{
  width:8px;height:8px;border-radius:50%;background:#3DFF6E;
  animation:blink 1.5s ease-in-out infinite;flex-shrink:0;
}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.3;}}

.floating-tag{
  position:absolute;background:var(--surface-2);border:1px solid var(--border);
  padding:.45rem .9rem;border-radius:8px;font-family:var(--font-mono);
  font-size:.72rem;color:var(--gold);z-index:4;
  animation:floatTag 4s ease-in-out infinite;
}
.tag-1{top:20px;left:-70px;animation-delay:0s;}
.tag-2{top:120px;right:-75px;animation-delay:1s;}
.tag-3{bottom:100px;left:-60px;animation-delay:2s;}
.tag-4{bottom:30px;right:-80px;animation-delay:.5s;}
@keyframes floatTag{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}

.scroll-indicator{
  position:absolute;bottom:2.5rem;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  font-family:var(--font-mono);font-size:.68rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--text-muted);
}
.scroll-line{
  width:1px;height:40px;
  background:linear-gradient(to bottom,var(--gold),transparent);
  animation:scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{transform:scaleY(0);transform-origin:top;}
  50%{transform:scaleY(1);transform-origin:top;}
  51%{transform:scaleY(1);transform-origin:bottom;}
  100%{transform:scaleY(0);transform-origin:bottom;}
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about{background:var(--bg-alt);}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:start;}
.about-lead{
  font-size:1.2rem;font-weight:500;line-height:1.6;color:var(--text);
  margin-bottom:1.5rem;border-left:3px solid var(--gold);padding-left:1.2rem;
}
.about-text p{color:var(--text-muted);margin-bottom:1rem;font-size:1rem;}
.about-text em{
  color:var(--gold);
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:500;
}
.about-meta{
  display:grid;grid-template-columns:1fr 1fr;gap:.8rem;
  margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border-dim);
}
.meta-item{display:flex;align-items:center;gap:.6rem;font-size:.9rem;color:var(--text-muted);}
.meta-icon{font-size:1.1rem;}

.about-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
.about-card{
  background:var(--surface);border:1px solid var(--border-dim);
  border-radius:var(--radius);padding:1.8rem;transition:all .3s;
}
.about-card:hover{border-color:var(--border);transform:translateY(-4px);box-shadow:var(--shadow-gold);}
.about-card-gold{border-color:var(--border);}
.about-card-icon{font-size:1.8rem;margin-bottom:.8rem;}
.about-card h3{font-family:var(--font-display);font-size:1rem;font-weight:700;margin-bottom:.5rem;}
.about-card p{font-size:.875rem;color:var(--text-muted);line-height:1.6;}

/* ═══════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════ */
.skills{background:var(--bg);}
.skills-tabs{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;margin-bottom:3rem;}
.tab-btn{
  font-family:var(--font-mono);font-size:.78rem;letter-spacing:.08em;
  padding:.6rem 1.4rem;border-radius:99px;border:1px solid var(--border-dim);
  color:var(--text-muted);transition:all .25s;cursor:pointer;
}
.tab-btn:hover{border-color:var(--border);color:var(--text);}
.tab-btn.active{background:var(--gold);border-color:var(--gold);color:#080808;font-weight:600;}

.skills-panels{position:relative;}
.skills-panel{display:none;animation:fadeIn .4s ease;}
.skills-panel.active{display:block;}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

.skill-bars{max-width:760px;margin:0 auto 2.5rem;}
.skill-item{margin-bottom:1.4rem;}
.skill-info{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.9rem;}
.skill-pct{color:var(--gold);font-family:var(--font-mono);font-size:.8rem;}
.skill-bar{height:5px;background:var(--surface-3);border-radius:99px;overflow:hidden;}
.skill-fill{
  height:100%;background:linear-gradient(90deg,var(--gold),#E8C987);
  border-radius:99px;width:0;transition:width 1.2s cubic-bezier(.16,1,.3,1);
}
.skill-tags{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;max-width:760px;margin:0 auto;}
.stag{
  font-family:var(--font-mono);font-size:.75rem;padding:.4rem .9rem;
  background:var(--surface);border:1px solid var(--border-dim);
  border-radius:6px;color:var(--text-muted);transition:all .2s;
}
.stag:hover{border-color:var(--gold);color:var(--gold);}

/* ═══════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════ */
.projects{background:var(--bg-alt);}
.projects-filter{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:3rem;}
.filter-btn{
  font-family:var(--font-mono);font-size:.78rem;letter-spacing:.08em;
  padding:.5rem 1.2rem;border-radius:6px;border:1px solid var(--border-dim);
  color:var(--text-muted);transition:all .25s;cursor:pointer;
}
.filter-btn:hover{border-color:var(--border);color:var(--text);}
.filter-btn.active{background:var(--gold);border-color:var(--gold);color:#080808;font-weight:600;}

.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}

.project-card{
  background:var(--surface);border:1px solid var(--border-dim);
  border-radius:var(--radius-lg);overflow:hidden;transition:all .35s;
  display:flex;flex-direction:column;
}
.project-card:hover{border-color:var(--border);transform:translateY(-6px);box-shadow:var(--shadow);}
.project-thumb{width:100%;aspect-ratio:16/9;background:var(--surface-3);position:relative;overflow:hidden;}
.project-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s;}
.project-card:hover .project-thumb img{transform:scale(1.05);}
/* ── Curated Project Preview Card (no-image fallback) ── */
.curated-preview-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #131313 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 1;
}
.cp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  z-index: 1;
}
.cp-orb {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.1), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  z-index: 1;
  transition: opacity 0.4s;
}
.project-card:hover .cp-orb {
  opacity: 1.3;
}
.cp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
}
.cp-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.18);
  padding: 0.22rem 0.6rem;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cp-badge {
  font-size: 1.1rem;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .cp-badge {
  opacity: 1;
  transform: scale(1.15);
}
.cp-title-block {
  z-index: 2;
  text-align: center;
  width: 100%;
  margin: auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cp-bracket {
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0.6;
}
.cp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-break: break-word;
}
.cp-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 2;
}
.cp-stack {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.7;
}
.project-overlay{
  position:absolute;inset:0;background:rgba(8,8,8,.7);
  display:flex;gap:.8rem;align-items:center;justify-content:center;
  opacity:0;transition:opacity .3s;
}
.project-card:hover .project-overlay{opacity:1;}
.overlay-btn{
  padding:.5rem 1.2rem;background:var(--gold);color:#080808;
  border-radius:6px;font-size:.8rem;font-weight:700;
  font-family:var(--font-display);transition:transform .2s;
}
.overlay-btn:hover{transform:scale(1.05);}
.overlay-btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.3);color:var(--text);}
.overlay-btn.disabled-btn{background:transparent;border:1px dashed rgba(255,255,255,.2);color:var(--text-muted);cursor:not-allowed;opacity:.6;}
.overlay-btn.disabled-btn:hover{transform:none;}



.project-body{padding:1.5rem;flex:1;display:flex;flex-direction:column;}
.project-cat{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);margin-bottom:.5rem;}
.project-title{font-family:var(--font-display);font-size:1.1rem;font-weight:700;margin-bottom:.6rem;line-height:1.3;}
.project-desc{font-size:.875rem;color:var(--text-muted);line-height:1.6;flex:1;margin-bottom:1rem;}
.project-stack{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:auto;}
.stack-tag{
  font-family:var(--font-mono);font-size:.65rem;padding:.25rem .6rem;
  background:var(--surface-2);border:1px solid var(--border-dim);
  border-radius:4px;color:var(--text-muted);
}
.projects-more{text-align:center;margin-top:2rem;}
.projects-more-text{color:var(--text-muted);font-size:.85rem;font-family:var(--font-mono);}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact{background:var(--bg);}
.contact-inner{display:grid;grid-template-columns:1fr 1.2fr;gap:6rem;align-items:start;}
.contact-left p{color:var(--text-muted);margin-bottom:2rem;font-size:1rem;max-width:400px;}
.contact-links{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem;}
.contact-link{
  display:flex;align-items:center;gap:1rem;
  color:var(--text-muted);font-size:.95rem;transition:color .2s;
}
.contact-link:hover{color:var(--gold);}
.cl-icon{font-size:1.2rem;width:1.5rem;text-align:center;}
.social-row{display:flex;gap:.75rem;flex-wrap:wrap;}
.social-btn{
  width:42px;height:42px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--border-dim);border-radius:8px;font-family:var(--font-display);
  font-size:.75rem;font-weight:700;color:var(--text-muted);transition:all .2s;
}
.social-btn:hover{border-color:var(--gold);color:var(--gold);background:var(--gold-dim);}

.contact-form{display:flex;flex-direction:column;gap:1.2rem;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
.form-group{display:flex;flex-direction:column;gap:.5rem;}
.form-group label{
  font-family:var(--font-mono);font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text-muted);
}
.form-group input,
.form-group textarea{
  background:var(--surface);border:1px solid var(--border-dim);
  border-radius:8px;padding:.85rem 1rem;color:var(--text);
  font-size:16px;transition:border-color .25s;resize:vertical;outline:none;
}
.form-group input:focus,.form-group textarea:focus{border-color:var(--gold);}
.full-width{width:100%;justify-content:center;}
.form-status{
  text-align:center;font-size:.85rem;font-family:var(--font-mono);
  color:var(--gold);min-height:1.2em;transition:color .2s;
}
.form-status.error{color:#FF6B6B;}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer{background:var(--surface);border-top:1px solid var(--border-dim);padding:3rem 0;}
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.5rem;}
.footer-brand{font-family:var(--font-display);font-size:1.1rem;font-weight:800;}
.footer-brand p{font-size:.78rem;color:var(--text-muted);font-family:var(--font-mono);margin-top:.3rem;}
.footer-nav{display:flex;gap:2rem;flex-wrap:wrap;}
.footer-nav a{font-size:.85rem;color:var(--text-muted);transition:color .2s;}
.footer-nav a:hover{color:var(--gold);}
.footer-copy{font-size:.78rem;color:var(--text-muted);font-family:var(--font-mono);}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — from LARGEST to SMALLEST
   Breakpoints:
     2560 · 1920 · 1440 · 1280 · 1100 · 1024
     900  · 768  · 640  · 480  · 414  · 390
     375  · 320
═══════════════════════════════════════════════════════ */

/* ── 4K / Ultra-wide (2560px+) ─────────────────────── */
@media(min-width:2560px){
  :root{--container:1600px;--sec-pad:160px;--gap:3rem;}
  body{font-size:18px;}
  .hero-name{font-size:7.5rem;}
  .photo-frame{width:500px;height:610px;}
  .hero-content{gap:8rem;}
  .hero-bio{font-size:1.2rem;}
  .about-grid{gap:8rem;}
  .contact-inner{gap:8rem;}
  .projects-grid{grid-template-columns:repeat(4,1fr);}
  .floating-tag{font-size:.85rem;padding:.6rem 1.2rem;}
  .nav-logo{font-size:1.4rem;}
  .nav-link{font-size:.9rem;}
  .section-tag{font-size:.85rem;}
}

/* ── Full-HD Monitor (1920px) ──────────────────────── */
@media(min-width:1920px)and(max-width:2559px){
  :root{--container:1400px;--sec-pad:140px;--gap:2.5rem;}
  body{font-size:17px;}
  .hero-name{font-size:6.8rem;}
  .photo-frame{width:460px;height:560px;}
  .hero-content{gap:7rem;}
  .projects-grid{grid-template-columns:repeat(4,1fr);}
  .about-grid{gap:7rem;}
}

/* ── Large Desktop / 1440p (1440px) ───────────────── */
@media(min-width:1440px)and(max-width:1919px){
  :root{--container:1320px;--sec-pad:130px;}
  .hero-name{font-size:6.2rem;}
  .photo-frame{width:420px;height:510px;}
  .projects-grid{grid-template-columns:repeat(3,1fr);}
}

/* ── Standard Desktop (1280px) ────────────────────── */
@media(min-width:1280px)and(max-width:1439px){
  :root{--container:1180px;}
  .hero-name{font-size:5.5rem;}
  .hero-content{gap:4.5rem;}
}

/* ── Laptop / Small Desktop (1100px) ─────────────── */
@media(min-width:1100px)and(max-width:1279px){
  :root{--container:1020px;--gap:1.8rem;}
  .hero-content{gap:3.5rem;}
  .photo-frame{width:350px;height:425px;}
  .floating-tag{font-size:.68rem;padding:.38rem .8rem;}
  .tag-1{left:-55px;}
  .tag-2{right:-60px;}
  .tag-3{left:-48px;}
  .tag-4{right:-65px;}
  .nav-links{gap:2rem;}
  .projects-grid{grid-template-columns:repeat(3,1fr);gap:1.2rem;}
}

/* ── iPad Landscape / Small Desktop (1024px) ──────── */
@media(min-width:1024px)and(max-width:1099px){
  :root{--container:960px;--gap:1.6rem;--sec-pad:100px;}
  .hero-content{gap:3rem;}
  .photo-frame{width:320px;height:390px;}
  .floating-tag{display:none;}
  .hero-name{font-size:4.8rem;}
  .nav-links{gap:1.6rem;}
  .projects-grid{grid-template-columns:repeat(3,1fr);gap:1.1rem;}
  .about-grid{gap:3rem;}
  .contact-inner{gap:4rem;}
}

/* ── Tablet Landscape / Large Tablet (900px) ──────── */
@media(max-width:1023px){
  :root{--sec-pad:90px;}
  .hero-content{
    grid-template-columns:1fr;gap:3rem;
    padding:3rem var(--gap) 4rem;
  }
  .hero-visual{order:-1;}
  .photo-frame{width:280px;height:340px;}
  .floating-tag{display:none;}
  .hero-name{font-size:clamp(3rem,7vw,4.5rem);}
  .hero-bio{max-width:100%;}
  .hero-stats{justify-content:flex-start;}
  .about-grid{grid-template-columns:1fr;gap:3rem;}
  .about-cards{grid-template-columns:repeat(2,1fr);}
  .contact-inner{grid-template-columns:1fr;gap:3rem;}
  .projects-grid{grid-template-columns:repeat(2,1fr);}
}

/* ── Tablet Portrait (768px–899px) ───────────────── */
@media(max-width:899px){
  :root{--sec-pad:80px;--gap:1.8rem;}
  .hero-content{padding:2.5rem var(--gap) 3.5rem;}
  .hero-name{font-size:clamp(2.6rem,8vw,4rem);}
  .projects-grid{grid-template-columns:repeat(2,1fr);gap:1.2rem;}
  .skills-tabs{gap:.4rem;}
  .tab-btn{font-size:.75rem;padding:.5rem 1.1rem;}
  .footer-inner{flex-direction:column;align-items:flex-start;gap:1.2rem;}
  .footer-nav{gap:1.5rem;}
}

/* ── Hamburger threshold (768px) — Nav drawer ────── */
@media(max-width:768px){
  .hamburger{display:flex;}
  .nav-links{
    display:flex;flex-direction:column;
    position:fixed;top:0;right:-100%;bottom:0;
    width:min(300px,80vw);background:rgba(10,10,10,.98);
    backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    padding:calc(var(--nav-h) + 1.5rem) 2rem 2rem;
    gap:1.5rem;z-index:99;
    border-left:1px solid var(--border-dim);
    transition:right .35s cubic-bezier(.16,1,.3,1);
    align-items:flex-start;
  }
  .nav-links.open{right:0;}
  .nav-link{font-size:.95rem;letter-spacing:.05em;}
  .nav-cta{align-self:flex-start;}
}

/* ── Large Phone (640px) ──────────────────────────── */
@media(max-width:640px){
  :root{--sec-pad:70px;--gap:1.4rem;--nav-h:64px;}
  body{font-size:15.5px;}
  .hero-content{padding:2rem var(--gap) 3rem;gap:2.5rem;}
  .hero-name{font-size:clamp(2.4rem,9vw,3.4rem);}
  .hero-tag{font-size:.72rem;}
  .hero-bio{font-size:.97rem;}
  .photo-frame{width:240px;height:292px;}
  .hero-stats{gap:1.4rem;}
  .stat-num{font-size:1.7rem;}
  .stat-label{font-size:.65rem;}
  .stat-divider{height:32px;}

  .about-cards{grid-template-columns:1fr;}
  .about-lead{font-size:1.08rem;}
  .about-meta{grid-template-columns:1fr;}

  .section-title{font-size:clamp(2rem,7vw,2.8rem);}

  .projects-grid{grid-template-columns:1fr 1fr;gap:1rem;}
  .project-body{padding:1.1rem;}
  .project-title{font-size:1rem;}
  .project-desc{font-size:.82rem;}

  .contact-inner{gap:2.5rem;}
  .contact-left p{font-size:.92rem;}
  .contact-link{font-size:.88rem;}

  .form-row{grid-template-columns:1fr 1fr;}
  .btn-primary,.btn-ghost{padding:.78rem 1.5rem;font-size:.9rem;}

  .footer-nav{gap:1rem;}
  .footer-copy{font-size:.72rem;}
  .scroll-indicator{display:none;}
}

/* ── Phone (480px) ────────────────────────────────── */
@media(max-width:480px){
  :root{--sec-pad:60px;--gap:1.2rem;}
  body{font-size:15px;}
  .hero-content{padding:1.8rem var(--gap) 2.5rem;gap:2rem;}
  .hero-name{font-size:clamp(2.2rem,10vw,3rem);}
  .photo-frame{width:210px;height:255px;}

  .hero-actions{flex-direction:column;align-items:stretch;gap:.8rem;}
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost{width:100%;justify-content:center;}

  .hero-stats{gap:1rem;}
  .stat-num{font-size:1.55rem;}
  .stat-divider{height:28px;}
  .stat-label{font-size:.62rem;}

  .about-meta{grid-template-columns:1fr;}
  .about-cards{grid-template-columns:1fr;}

  .skills-tabs{flex-wrap:wrap;gap:.4rem;}
  .tab-btn{font-size:.72rem;padding:.48rem 1rem;}

  .projects-grid{grid-template-columns:1fr;gap:1rem;}
  .project-title{font-size:1.05rem;}

  .form-row{grid-template-columns:1fr;}
  .social-btn{width:40px;height:40px;}
  .section-header{margin-bottom:2.5rem;}
  .skills-tabs{margin-bottom:2rem;}
  .projects-filter{margin-bottom:2rem;}
}

/* ── iPhone XR / 11 (414px) ─────────────────────── */
@media(max-width:414px){
  :root{--sec-pad:55px;--gap:1.1rem;}
  .hero-name{font-size:2.2rem;}
  .hero-tag{font-size:.68rem;letter-spacing:.08em;}
  .role-pill{font-size:.7rem;padding:.35rem .75rem;}
  .photo-frame{width:196px;height:238px;}
  .photo-badge{font-size:.68rem;padding:.38rem .85rem;}
  .stat-num{font-size:1.4rem;}
  .nav-logo{font-size:1rem;}
  .nav-links{width:min(280px,85vw);}
  .section-title{font-size:clamp(1.9rem,8.5vw,2.5rem);}
  .about-lead{font-size:1rem;}
  .contact-link span:last-child{font-size:.85rem;word-break:break-all;}
}

/* ── iPhone 14 Pro (390px) ───────────────────────── */
@media(max-width:390px){
  :root{--sec-pad:50px;--gap:1rem;--nav-h:60px;}
  body{font-size:14.5px;}
  .hero-name{font-size:2.05rem;}
  .photo-frame{width:184px;height:223px;}
  .hero-bio{font-size:.9rem;}
  .stat-num{font-size:1.35rem;}
  .stag{font-size:.7rem;padding:.3rem .7rem;}
  .project-cat{font-size:.6rem;}
  .project-title{font-size:.95rem;}
  .project-desc{font-size:.8rem;}
  .project-body{padding:1rem;}
  .btn-primary,.btn-ghost{font-size:.88rem;padding:.72rem 1.3rem;}
  .footer-brand{font-size:1rem;}
  .footer-brand p{font-size:.68rem;}
}

/* ── iPhone SE 3 / Standard Small (375px) ────────── */
@media(max-width:375px){
  :root{--sec-pad:48px;--gap:.95rem;}
  body{font-size:14px;}
  .hero-content{padding:1.6rem var(--gap) 2.2rem;}
  .hero-name{font-size:1.95rem;}
  .photo-frame{width:172px;height:209px;}
  .hero-stats{gap:.8rem;}
  .stat-num{font-size:1.25rem;}
  .stat-label{font-size:.58rem;}
  .stat-divider{height:24px;}
  .section-title{font-size:1.85rem;}
  .about-lead{font-size:.97rem;}
  .tab-btn{font-size:.68rem;padding:.42rem .85rem;}
  .skills-tags{gap:.4rem;}
  .stag{font-size:.65rem;padding:.26rem .6rem;}
  .social-btn{width:38px;height:38px;font-size:.68rem;}
  .footer-nav{gap:.8rem;}
  .footer-nav a{font-size:.74rem;}
}

/* ── iPhone SE 1st Gen / Smallest (320px) ────────── */
@media(max-width:320px){
  :root{--sec-pad:44px;--gap:.85rem;--nav-h:58px;}
  body{font-size:13.5px;}
  .hero-content{padding:1.4rem var(--gap) 2rem;gap:1.8rem;}
  .hero-name{font-size:1.75rem;letter-spacing:-.015em;}
  .hero-bio{font-size:.85rem;}
  .photo-frame{width:155px;height:188px;}
  .photo-ring{inset:-8px;}
  .photo-ring-2{inset:-16px;}
  .hero-stats{flex-wrap:wrap;gap:.6rem 1rem;}
  .stat-divider{display:none;}
  .stat{align-items:center;}
  .stat-num{font-size:1.2rem;}
  .stat-label{font-size:.55rem;}

  .section-title{font-size:1.65rem;}
  .about-card{padding:1.2rem;}
  .about-card-icon{font-size:1.4rem;}
  .about-card h3{font-size:.9rem;}
  .about-card p{font-size:.8rem;}

  .tab-btn{font-size:.65rem;padding:.38rem .75rem;}
  .skill-info{font-size:.82rem;}
  .skill-pct{font-size:.72rem;}
  .stag{font-size:.62rem;padding:.22rem .55rem;}

  .project-title{font-size:.9rem;}
  .project-desc{font-size:.78rem;}
  .project-cat{font-size:.58rem;}
  .stack-tag{font-size:.6rem;}
  .project-body{padding:.9rem;}

  .contact-link{font-size:.82rem;}
  .form-group label{font-size:.65rem;}
  .form-group input,
  .form-group textarea{padding:.7rem .8rem;}
  .btn-primary,.btn-ghost{font-size:.84rem;padding:.68rem 1.1rem;}
  .social-btn{width:36px;height:36px;font-size:.65rem;}
  .footer-brand{font-size:.95rem;}
  .footer-copy{font-size:.66rem;}
  .nav-logo{font-size:.95rem;}
  .section-tag{font-size:.65rem;letter-spacing:.12em;}
}

/* ── Touch devices: disable hover-only states ─────── */
@media(hover:none){
  .project-overlay{
    opacity:1;
    background:linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.5) 75%, transparent 100%);
    align-items:flex-end;
    padding-bottom:10px;
  }
  .project-thumb img{transform:none!important;}
  .about-card:hover{transform:none;box-shadow:none;}
  .btn-primary:hover,.btn-ghost:hover{transform:none;box-shadow:none;}
  .floating-tag{animation:none;}
  *{-webkit-tap-highlight-color:transparent;}
}

/* ── Reduced motion ───────────────────────────────── */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
  .reveal-up,.reveal-right{opacity:1;transform:none;animation:none;}
  .scroll-line{animation:none;}
  .photo-ring{animation:none;}
}

/* ── GitHub Repository Cards Preview ────────────────── */
.github-preview-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 1;
}
.gh-preview-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: 1;
}
.gh-preview-orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12), transparent 75%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(18px);
  z-index: 1;
}
.gh-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.gh-preview-lang {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  color: var(--gold);
  font-weight: 500;
}
.gh-preview-stars {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  font-size: 0.7rem;
}
.gh-preview-code {
  z-index: 2;
  text-align: center;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 1.5rem 0;
  line-height: 1.25;
}
.gh-preview-bracket {
  color: var(--gold);
}
.gh-preview-name {
  word-break: break-word;
}
.gh-preview-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* ── Floating CLI Button ───────────────────────────── */
.cli-toggle-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.1rem;
}
.cli-toggle-btn:hover {
  background: var(--gold);
  color: #080808;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* ── Terminal Overlay & Window ─────────────────────── */
.terminal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.terminal-overlay.open {
  display: flex;
}
.terminal-container {
  width: 100%;
  max-width: 700px;
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 480px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: termOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes termOpen {
  from { transform: scale(0.95) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.terminal-window-header {
  background: #181818;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
}
.terminal-window-dots {
  display: flex;
  gap: 6px;
}
.tw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tw-dot-red { background: #FF5F56; }
.tw-dot-yellow { background: #FFBD2E; }
.tw-dot-green { background: #27C93F; }
.terminal-window-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.terminal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.terminal-close-btn:hover {
  color: #FF5F56;
}
.terminal-window-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #3DFF6E; /* Classic retro terminal green */
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.terminal-output-line {
  word-break: break-word;
  white-space: pre-wrap;
}
.terminal-output-line-user {
  color: var(--text);
  font-weight: 500;
}
.terminal-output-line-error {
  color: #FF6B6B;
}
.matrix-green {
  color: #3DFF6E;
  text-shadow: 0 0 5px rgba(61, 255, 110, 0.6);
  opacity: 0.85;
}
.terminal-input-line {
  background: #0e0e0e;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.terminal-prompt-label {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--gold);
  user-select: none;
}
#terminalInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #3DFF6E;
}

/* ── Statistics Lab ────────────────────────────────── */
.stats-lab-container {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}
.stats-lab-view {
  display: none;
}
.stats-lab-view.active {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.canvas-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
#regressionCanvas {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  aspect-ratio: 500/350;
  cursor: crosshair;
  box-shadow: inset 0 4px 15px rgba(0,0,0,0.2);
}
.canvas-instructions {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stats-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  justify-content: space-between;
}
.stats-card {
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.6rem;
}
.sc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  padding-bottom: 0.4rem;
}
:root[data-theme="light"] .sc-stat-row {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}
.sc-stat-label {
  color: var(--text-muted);
}
.sc-stat-val {
  color: var(--gold);
  font-weight: bold;
}

@media (max-width: 900px) {
  .stats-lab-view.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stats-lab-container {
    padding: 1.5rem;
  }
  .stats-sidebar {
    gap: 1.2rem;
  }
}

/* ── Sound Toggle & Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.sound-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: color 0.2s, transform 0.2s;
}
.sound-toggle:hover {
  color: var(--gold);
  transform: scale(1.1);
}
.sound-toggle.muted {
  color: rgba(255, 255, 255, 0.2);
}

/* ── Stats Lab Tabs & KNN Mode ── */
.stats-lab-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stats-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  transition: all 0.25s;
  cursor: pointer;
  text-transform: uppercase;
}
.stats-tab-btn:hover {
  border-color: var(--border);
  color: var(--text);
}
.stats-tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #080808;
  font-weight: 600;
}
.knn-mode-btn.active[data-mode="red"] {
  background: rgba(255, 95, 86, 0.15);
  border-color: #FF5F56 !important;
}
.knn-mode-btn.active[data-mode="blue"] {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8 !important;
}
.knn-mode-btn.active[data-mode="query"] {
  background: var(--gold-dim);
  border-color: var(--gold) !important;
}



/* ── Card Filter Staggered Transitions ── */
.project-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.35s, box-shadow 0.35s;
}
.project-card.fade-out {
  opacity: 0 !important;
  transform: scale(0.92) translateY(12px) !important;
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}
.project-card.fade-in {
  opacity: 0 !important;
  transform: scale(0.92) translateY(12px) !important;
  transition: none !important;
}
.project-card.fade-in-active {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ─── Tech Startup: GuruLabs ────────────────────────── */
:root {
  --emerald:       #10B981;
  --emerald-dim:   rgba(16, 185, 129, 0.15);
  --emerald-glow:  rgba(16, 185, 129, 0.35);
}
.startup {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.emerald {
  color: var(--emerald);
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
.emerald-gradient {
  background: linear-gradient(135deg, var(--emerald), #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
.startup-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.sh-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sh-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.sh-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.sh-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}
.sh-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.sh-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.sh-metric {
  display: flex;
  flex-direction: column;
}
.sh-met-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
}
.sh-met-num::after {
  content: '+';
  font-size: 1.3rem;
}
.sh-met-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
.sh-met-divider {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.06);
}
.sh-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sh-visual-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sh-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--emerald-glow), transparent 70%);
  filter: blur(40px);
  z-index: 1;
}
.sh-bento-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #3DFF6E;
}
.sbc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  user-select: none;
}
.sbc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sbc-dot.red { background: #FF5F56; }
.sbc-dot.yellow { background: #FFBD2E; }
.sbc-dot.green { background: #27C93F; }
.sbc-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}
.sbc-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sbc-cmd {
  color: var(--text);
}
.sbc-out {
  color: #3DFF6E;
  opacity: 0.95;
}
.sbc-cursor {
  animation: blink 1.2s steps(2, start) infinite;
}
.sh-tag {
  position: absolute;
  z-index: 3;
  background: var(--surface-2);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  box-shadow: var(--shadow);
  animation: floatTag 4s ease-in-out infinite;
}
.tag-kudi { top: 12%; left: -5%; animation-delay: 0s; }
.tag-lens { bottom: 12%; right: -5%; animation-delay: 1.5s; }
.tag-ai { top: 22%; right: 0; animation-delay: 0.8s; }

/* Bento Grid */
.startup-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
}
.sbg-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.3s;
}
.sbg-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
}
.sbg-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.sbg-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.sbg-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Products Showcase */
.startup-products {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 6rem;
}
.startup-prod-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.startup-prod-card.rev .spc-info { order: 2; }
.startup-prod-card.rev .spc-mockup { order: 1; }
.spc-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.spc-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.spc-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}
.spc-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.spc-bullet {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  gap: 0.6rem;
}
.spc-bullet span {
  color: var(--emerald);
  font-weight: bold;
}
.spc-tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.s-tt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.spc-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.mockup-wallet {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, #121212 0%, #0a0a0a 100%);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.mw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.mw-chip {
  width: 35px;
  height: 25px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
}
.mw-balance {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}
.mw-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--emerald);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}
.mw-analytics {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 60px;
  margin-top: 1.8rem;
}
.mw-graph-bar {
  flex: 1;
  background: var(--emerald);
  border-radius: 2px 2px 0 0;
  opacity: 0.8;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mw-footer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--emerald);
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.6rem;
}
.mockup-scholar {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, #121212 0%, #0a0a0a 100%);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.ms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.ms-status {
  font-size: 0.6rem;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.ms-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 1.2rem;
}
.ms-prompt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  transition: opacity 0.3s ease;
}
.ms-reply {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ms-reply-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.ms-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}
.ms-stat {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.6rem;
  text-align: center;
}
.ms-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.3s ease;
}
.ms-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Ecosystem Section */
.startup-ecosystem {
  margin-top: 6rem;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.eco-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.eco-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.eco-flow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.eco-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
}
.eco-node.highlight {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-dim);
}
.eco-arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1rem;
  user-select: none;
}
.eco-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.etg-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  background: var(--surface-2);
  padding: 0.45rem 1rem;
  border-radius: 99px;
  transition: all 0.2s;
}
.etg-badge:hover {
  border-color: var(--emerald);
  color: var(--text);
}
.etg-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

/* Founder Showcase */
.founder-showcase {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}
.fs-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(20,20,20,0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 760px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.fs-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--emerald);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.fs-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.fs-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fs-bio {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}
.fs-skills {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.fs-sk {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

/* Waitlist CTA */
.startup-waitlist {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}
.sw-card {
  background: linear-gradient(135deg, #071c14 0%, #030806 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.06);
}
.sw-card h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.sw-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.sw-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}
.sw-form input[type="email"] {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-size: 0.9rem;
  flex: 1;
  max-width: 320px;
  outline: none;
  transition: border-color 0.2s;
}
.sw-form input[type="email"]:focus {
  border-color: var(--emerald);
}
.sw-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald);
  margin-top: 1rem;
  min-height: 1.2em;
}
.sw-status.error {
  color: #FF6B6B;
}

/* ─── Location Telemetry Section ────────────────── */
.location {
  position: relative;
  background: var(--bg);
}

.location-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

.globe-card {
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 169, 110, 0.15); /* Gold tint border */
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 440px; /* Centered compact dashboard-style card */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.globe-card:hover {
  border-color: rgba(200, 169, 110, 0.3);
  transform: translateY(-4px);
}

/* Card Header */
.globe-card-header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.gch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--gold); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.gch-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.gch-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.05em;
}

/* Canvas Wrapper */
.globe-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

/* 3D Location Globe MapLibre Container */
#locationGlobe {
  width: 360px;
  height: 360px;
  max-width: 100%;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(200, 169, 110, 0.03);
  overflow: hidden;
  position: relative;
  cursor: grab;
}

#locationGlobe:active {
  cursor: grabbing;
}

/* Custom Gold Pulse Marker */
.maplibre-custom-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.maplibre-core-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold, #C8A96E);
  border: 1.5px solid #FAF6EE;
  box-shadow: 0 0 10px var(--gold, #C8A96E);
  z-index: 2;
}

.maplibre-pulse-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gold, #C8A96E);
  animation: mapPulse 1.8s ease-out infinite;
  opacity: 0;
  z-index: 1;
}

@keyframes mapPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Custom Popup Styled in Dark Gold */
.maplibre-custom-popup .maplibregl-popup-content {
  background: rgba(15, 15, 15, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(200, 169, 110, 0.25) !important;
  border-radius: 8px !important;
  padding: 0.8rem 1rem !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #FAF6EE !important;
}

.maplibre-custom-popup .maplibregl-popup-tip {
  border-top-color: rgba(15, 15, 15, 0.85) !important;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  padding-bottom: 0.3rem;
}

.mph-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: telemetryPulseGreen 1.5s infinite;
}

.mph-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold, #C8A96E);
  letter-spacing: 0.05em;
}

.map-popup-body {
  font-family: var(--font-mono);
  text-align: left;
}

.mp-loc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FAF6EE;
  margin: 0;
}

.mp-status {
  font-size: 0.7rem;
  color: #10B981;
  margin: 0.15rem 0 0 0;
}

.mp-coords {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin: 0.25rem 0 0 0;
}

/* Globe Tooltip */
.globe-tooltip {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  width: 100%;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


@media (max-width: 900px) {
  .startup-hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .sh-visual-container {
    min-height: 320px;
  }
  .startup-bento-grid {
    grid-template-columns: 1fr;
  }
  .startup-products {
    gap: 2rem;
  }
  .startup-prod-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.2rem;
  }
  .startup-prod-card.rev .spc-info { order: 1; }
  .startup-prod-card.rev .spc-mockup { order: 2; }
  .sw-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .sw-form input[type="email"] {
    max-width: 100%;
  }
  .eco-flow-container {
    flex-direction: column;
    gap: 0.8rem;
  }
  .eco-arrow {
    transform: rotate(90deg);
  }
  
  /* Location overrides */
  .globe-card {
    max-width: 380px;
    padding: 1.5rem;
  }
}

/* ── Mobile & Small Screens Resizing overrides ────── */
@media (max-width: 480px) {
  /* Startup Mobile optimization */
  .startup-prod-card {
    padding: 1.5rem !important;
  }
  .fs-card {
    padding: 1.8rem 1.2rem !important;
  }
  .sw-card {
    padding: 2.2rem 1.2rem !important;
  }
  .fs-name {
    font-size: 1.5rem !important;
  }
  .fs-skills {
    gap: 0.5rem !important;
  }
  
  /* Location overrides */
  .globe-card {
    max-width: 320px;
    padding: 1.2rem;
  }
  .globe-tooltip {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }
  
  /* CLI button overrides */
  .cli-toggle-btn {
    bottom: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  .globe-card {
    max-width: 280px;
    padding: 1rem;
  }
  .fs-card {
    padding: 1.2rem 0.8rem !important;
  }
  .sw-card {
    padding: 1.5rem 0.8rem !important;
  }
  .cli-toggle-btn {
    bottom: 0.8rem;
    left: 0.8rem;
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
  }
}



/* ─── Footer Telemetry ──────────────────────────────────── */
.footer-telemetry {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
}

.tel-item {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tel-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.tel-dot.pulsing {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: telemetryPulseGreen 1.5s infinite;
}

.tel-dot.pulsing-gold {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  animation: telemetryPulseGold 1.5s infinite;
}

.tel-dot.pulsing-amber {
  background: #FBBF24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  animation: telemetryPulseAmber 1.5s infinite;
}

.tel-dot.muted {
  background: #4B5563;
  box-shadow: none;
}

.btn-tel-diag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  border: 1px dashed rgba(200, 169, 110, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: transparent;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-tel-diag:hover {
  background: var(--gold-dim);
  border-style: solid;
  border-color: var(--gold);
  color: var(--text);
  text-shadow: 0 0 5px var(--gold-glow);
}

@keyframes telemetryPulseGreen {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes telemetryPulseGold {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes telemetryPulseAmber {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Scanning Overlay for Diagnostics Scan */
.screen-scan-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: linear-gradient(rgba(200, 169, 110, 0) 50%, rgba(200, 169, 110, 0.1) 50%);
  background-size: 100% 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.screen-scan-overlay.scanning {
  animation: scanLineReveal 2s ease-in-out forwards;
}

@keyframes scanLineReveal {
  0% { opacity: 0; }
  10%, 90% { opacity: 0.4; }
  100% { opacity: 0; }
}

.scan-bar {
  pointer-events: none;
  position: fixed;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold);
  z-index: 10003;
  opacity: 0;
}
.scan-bar.scanning {
  animation: scanBarAnim 2s ease-in-out forwards;
}
@keyframes scanBarAnim {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Responsive Telemetry Grid */
@media (max-width: 768px) {
  .footer-telemetry {
    gap: 1.2rem;
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-tel-diag {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}


/* ─── Custom System Modal Alerts ────────────────────────── */
.sys-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sys-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sys-modal-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-gold);
  border-radius: var(--radius-lg);
  width: min(450px, 90%);
  padding: 2rem;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.sys-modal-overlay.open .sys-modal-card {
  transform: scale(1);
}

/* Glassmorphic sheen effect on card */
.sys-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.sys-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.sm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5F56; /* Default error/warning red */
  box-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
  display: inline-block;
}

.sm-dot.green {
  background: #27C93F; /* Success green */
  box-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
  animation: telemetryPulseGreen 1.5s infinite;
}

.sys-modal-title-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.sys-modal-close {
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sys-modal-close:hover {
  color: var(--gold);
}

.sys-modal-body {
  margin-bottom: 2rem;
}

.sys-modal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  box-shadow: inset 0 0 15px rgba(200, 169, 110, 0.1);
}

.sys-modal-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.sys-modal-footer {
  display: flex;
  justify-content: center;
}

.sys-modal-footer .btn-primary {
  width: 100%;
  justify-content: center;
}




/* ─── Gold Snake Mobile D-Pad Touch Controls ─────────── */
.snake-mobile-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

@media (min-width: 769px) {
  .snake-mobile-controls {
    display: none !important;
  }
}

.dpad-middle-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.btn-dpad {
  width: 52px;
  height: 52px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background 0.25s, transform 0.1s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow);
}

.btn-dpad:active {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: scale(0.93);
  box-shadow: 0 0 15px rgba(200, 169, 110, 0.4);
}

.dpad-center {
  width: 52px;
  height: 52px;
  background: rgba(200, 169, 110, 0.04);
  border: 1px dashed rgba(200, 169, 110, 0.15);
  border-radius: 50%;
}

.download-link:hover {
  color: var(--gold) !important;
  text-shadow: 0 0 8px rgba(200, 169, 110, 0.3);
}

/* ─── Services & Pricing Section ───────────────────── */
.services {
  background: var(--bg-alt);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.serv-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.serv-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.serv-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.serv-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-dim);
  padding-top: 1rem;
}
.serv-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.serv-features li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feat-bullet {
  color: var(--gold);
  font-weight: bold;
}

/* Pricing Plans cards */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 5rem auto 0;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-card.popular {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .plan-card.popular {
    transform: none;
  }
}
.plan-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #080808;
  background: var(--gold);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 2rem;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  text-align: left;
}
.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.plan-features li span {
  color: var(--gold);
}
.plan-btn {
  width: 100%;
  justify-content: center;
}

/* ─── Testimonials Section ────────────────────────── */
.testimonials {
  background: var(--bg);
}
/* ─── 3D Testimonials Marquee ─── */
.testimonials-3d-perspective-container {
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  position: relative;
  display: flex;
  height: 480px;
  width: 100%;
  max-width: 1000px;
  margin: 4rem auto 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 1.5rem;
  perspective: 1200px;
  background: var(--bg-alt);
}

.testimonials-3d-wall-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  transform: translateX(-50px) translateY(0px) translateZ(-150px) rotateX(15deg) rotateY(-15deg) rotateZ(10deg);
  width: 120%;
  justify-content: center;
}

/* Marquee Column styling */
.marquee-column {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 650px;
  width: 260px;
  gap: 1rem;
  position: relative;
}

.marquee-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  animation: marquee-vertical var(--duration, 30s) linear infinite;
}

.marquee-column.reverse .marquee-inner {
  animation-direction: reverse;
}

.testimonials-3d-perspective-container:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee-vertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 0.5rem));
  }
}

/* Testimonial Card in 3D Wall */
.testimonial-card-3d {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.testimonial-card-3d:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.t-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.t-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--gold);
  overflow: hidden;
}

.t-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.t-card-meta {
  display: flex;
  flex-direction: column;
}

.t-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.t-card-company {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.t-card-rating {
  color: var(--gold);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.t-card-quote {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Gradients for fading edges */
.testimonials-3d-perspective-container .grad-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.testimonials-3d-perspective-container .grad-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.testimonials-3d-perspective-container .grad-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15%;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.testimonials-3d-perspective-container .grad-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 15%;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ─── Blog Section ────────────────────────────────── */
.blog {
  background: var(--bg-alt);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  justify-content: center;
  gap: 2.2rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.blog-card-image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.blog-card-date {
  color: var(--text-muted);
}
.blog-card-tags {
  display: flex;
  gap: 0.4rem;
}
.blog-card-tag {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(200, 169, 110, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.blog-card-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.btn-read-more {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: letter-spacing 0.2s;
  padding: 0;
}
.btn-read-more:hover {
  letter-spacing: 1px;
}

/* ─── Blog Reader Modal ─────────────────────────── */
.blog-reader-card {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(840px, 92%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow), var(--shadow-gold);
  position: relative;
  display: flex;
  flex-direction: column;
}
.blog-reader-card .modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8,8,8,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.blog-reader-card .modal-close:hover {
  background: var(--gold);
  color: #080808;
  border-color: var(--gold);
}
.blog-reader-card .modal-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  height: 38px;
  padding: 0 1.2rem;
  border-radius: 20px;
  background: rgba(8,8,8,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.blog-reader-card .modal-back:hover {
  background: var(--gold);
  color: #080808;
  border-color: var(--gold);
}
.blog-reader-hero {
  background-size: cover;
  background-position: center;
  padding: 6rem 3rem 3rem;
  position: relative;
  color: #fff;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.blog-reader-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.4) 100%);
}
.blog-reader-meta {
  position: relative;
  z-index: 1;
  max-width: 100%;
}
.blog-reader-tag {
  display: inline-block;
  background: var(--gold);
  color: #080808;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.blog-reader-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.blog-reader-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-reader-content {
  padding: 3rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  font-family: var(--font-body);
}
.blog-reader-content p {
  margin-bottom: 1.6rem;
}
.blog-reader-content h2, .blog-reader-content h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 2.2rem 0 1rem;
}
.blog-reader-content h2 { font-size: 1.6rem; font-weight: 700; }
.blog-reader-content h3 { font-size: 1.3rem; font-weight: 700; }
.blog-reader-content ul {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
}
.blog-reader-content li {
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .blog-reader-hero {
    padding: 5rem 1.5rem 2rem;
  }
  .blog-reader-content {
    padding: 2rem 1.5rem;
  }
}

/* ─── Responsive CLI Terminal & 3D Testimonials ──── */
@media (max-width: 768px) {
  /* 3D Testimonials */
  .testimonials-3d-perspective-container {
    height: 340px;
    margin: 2rem auto 0;
    padding: 0.5rem;
    gap: 0.75rem;
  }
  .testimonials-3d-wall-wrapper {
    transform: translateX(-20px) translateY(0px) translateZ(-100px) rotateX(10deg) rotateY(-10deg) rotateZ(5deg);
    width: 100%;
    gap: 0.75rem;
  }
  .marquee-column {
    width: 145px;
    height: 480px;
    gap: 0.75rem;
  }
  /* Hide columns 3 and 4 to fit mobile viewports */
  .marquee-column:nth-child(3),
  .marquee-column:nth-child(4) {
    display: none !important;
  }
  .testimonial-card-3d {
    padding: 0.85rem;
  }
  .t-card-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .t-card-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .t-card-name {
    font-size: 0.75rem;
  }
  .t-card-company {
    font-size: 0.65rem;
  }
  .t-card-rating {
    font-size: 0.65rem;
    margin-top: 0.1rem;
  }
  .t-card-quote {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  /* CLI Terminal */
  .terminal-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  .terminal-container {
    height: 100%;
    max-height: 100vh;
    max-width: 100%;
    border-radius: 0;
    border: none;
  }
  .terminal-window-header {
    padding: 0.6rem 1rem;
  }
  .terminal-window-dots {
    display: flex;
  }
  .terminal-window-title {
    font-size: 0.68rem;
  }
  .terminal-window-body {
    padding: 0.8rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  .terminal-input-line {
    padding: 0.6rem 0.8rem;
  }
  .terminal-prompt-label {
    font-size: 0.75rem;
  }
  #terminalInput {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .testimonials-3d-perspective-container {
    height: 300px;
  }
  .marquee-column {
    width: 130px;
  }
}

/* ── Print ───────────────────────────────────────── */
@media print{
  .noise-overlay,.cursor,.cursor-trail,#navbar,
  .scroll-indicator,.floating-tag,.hero-orb,
  .hamburger,.mobile-menu-overlay{display:none!important;}
  body{background:#fff;color:#000;}
  .hero{min-height:auto;padding:2rem 0;}
  .section{padding:2rem 0;}
  a[href]::after{content:" ("attr(href)")";font-size:.8em;color:#666;}
}
