:root {
  --bg-deep: #0D0D0F;
  --bg-surface: #141416;
  --bg-elevated: #1C1C1F;
  --bg-card: rgba(28,28,31,0.7);
  --bg-nav: rgba(13,13,15,0.92);
  --gold: #E8A838;
  --gold-dim: rgba(232,168,56,0.15);
  --gold-border: rgba(232,168,56,0.18);
  --blue: #6B8ABA;
  --sage: #8A9A7B;
  --text: #E8E6E1;
  --text-muted: #9B978F;
  --text-dim: #6B6862;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.25,0.8,0.25,1);
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--gold-dim) var(--bg-deep)}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg-deep);color:var(--text);overflow-x:hidden;line-height:1.6}
a{color:inherit;text-decoration:none}
a:visited, a:active{color:inherit}
img{max-width:100%;height:auto;display:block}
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:var(--bg-deep)}
::-webkit-scrollbar-thumb{background:var(--gold-dim);border-radius:3px}

.grain-overlay{position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:0.03;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress{position:fixed;top:0;left:0;height:2px;background:var(--gold);z-index:10001;width:0;transition:none}

/* NAV */
nav{position:fixed;top:0;width:100%;background:var(--bg-nav);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding:0 clamp(1.5rem,5%,4rem);display:flex;justify-content:space-between;align-items:center;z-index:1000;height:64px;border-bottom:1px solid rgba(232,168,56,0.06);transition:background .3s,box-shadow .3s}
nav.scrolled{box-shadow:0 4px 30px rgba(0,0,0,0.4)}
.nav-logo{font-family:'Outfit',sans-serif;font-size:1.5rem;font-weight:700;color:var(--text);letter-spacing:-0.5px}
.logo-dot{color:var(--gold)}
.nav-right{display:flex;align-items:center}
.nav-links{display:flex;gap:0.25rem;list-style:none;align-items:center}
.nav-links a{color:var(--text-muted);font-size:.875rem;font-weight:500;padding:.5rem .75rem;border-radius:var(--radius-sm);transition:color .25s,background .25s}
.nav-links a:hover{color:var(--text);background:rgba(255,255,255,0.04)}
.nav-cta{color:var(--gold)!important;border:1px solid var(--gold-border)!important;border-radius:var(--radius-lg)!important;padding:.45rem 1rem!important}
.nav-cta:hover{background:var(--gold-dim)!important;color:var(--gold)!important}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem;z-index:1001;flex-direction:column;justify-content:center;gap:5px;width:36px;height:36px}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .3s var(--ease);transform-origin:center}
nav.nav-open .nav-toggle span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
nav.nav-open .nav-toggle span:nth-child(2){opacity:0;transform:scaleX(0)}
nav.nav-open .nav-toggle span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* HERO */
.hero{min-height:100vh;display:flex;align-items:center;padding:80px clamp(1.5rem,5%,4rem) 2rem;position:relative}
.hero-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center;max-width:1200px;margin:0 auto;width:100%}
.hero-text{max-width:560px}
.hero-greeting{font-size:.95rem;color:var(--gold);font-weight:500;letter-spacing:2px;text-transform:uppercase;margin-bottom:.75rem}
.hero-name{font-family:'Outfit',sans-serif;font-size:clamp(2.5rem,5.5vw,4.5rem);font-weight:800;line-height:1.05;letter-spacing:-2px;color:var(--text);margin-bottom:1rem}
.hero-name-accent{color:var(--gold);display:inline-block}
.hero-role{font-size:1rem;color:var(--text-muted);margin-bottom:2rem;line-height:1.6}
.role-separator{color:var(--gold);margin:0 .5rem;opacity:.5}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.75rem;border-radius:var(--radius-lg);font-size:.9rem;font-weight:500;font-family:'Inter',sans-serif;transition:all .35s var(--ease);cursor:pointer;border:none;position:relative;overflow:hidden}
.btn-primary, .btn-primary:visited, .btn-primary:active{background:var(--gold);color:var(--bg-deep);box-shadow:0 4px 20px rgba(232,168,56,0.2)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(232,168,56,0.35)}
.btn-ghost, .btn-ghost:visited, .btn-ghost:active{background:transparent;color:var(--text);border:1px solid rgba(255,255,255,0.12)}
.btn-ghost:hover{border-color:var(--gold-border);color:var(--gold);background:var(--gold-dim)}

/* HERO VISUAL */
.hero-visual{display:flex;flex-direction:column;gap:1.25rem;align-items:flex-end}
.hero-photo-frame{position:relative;width:280px;height:320px;border-radius:var(--radius-lg);overflow:hidden;border:2px solid var(--gold-border)}
.hero-photo{width:100%;height:100%;object-fit:cover}
.photo-badge{position:absolute;bottom:12px;left:12px;background:rgba(13,13,15,0.85);backdrop-filter:blur(8px);padding:.4rem .8rem;border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;color:var(--gold);border:1px solid var(--gold-border);line-height:1.3}
.photo-badge span{display:block;font-weight:400;color:var(--text-muted);font-size:.65rem}

/* MINI TERMINAL */
.hero-terminal{width:320px}
.mini-terminal{border-radius:var(--radius-md);overflow:hidden;border:1px solid rgba(255,255,255,0.06);background:var(--bg-elevated)}
.mini-terminal-bar{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:rgba(0,0,0,0.3);border-bottom:1px solid rgba(255,255,255,0.04)}
.t-dot{width:8px;height:8px;border-radius:50%}
.t-red{background:#ff5f57}
.t-yellow{background:#ffbd2e}
.t-green{background:#28c840}
.mini-terminal-title{color:var(--text-dim);font-family:'JetBrains Mono',monospace;font-size:.7rem;margin-left:auto}
.mini-terminal-body{padding:1rem;font-family:'JetBrains Mono',monospace;font-size:.78rem;line-height:1.9;min-height:120px}
.terminal-line{opacity:0;transform:translateY(4px)}
.terminal-line.visible{opacity:1;transform:translateY(0);transition:opacity .3s,transform .3s}
.prompt{color:var(--gold);font-weight:500;margin-right:.35rem}
.command{color:var(--text)}
.output{color:var(--blue);padding-left:.25rem}
.cursor-blink{color:var(--gold);animation:blink 1s step-end infinite}
@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}

.scroll-hint{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.5rem;color:var(--text-dim);font-size:.7rem;letter-spacing:2px;text-transform:uppercase}
.scroll-hint-line{width:1px;height:40px;background:linear-gradient(to bottom,var(--gold),transparent);animation:scrollPulse 2s ease-in-out infinite}
@keyframes scrollPulse{0%,100%{opacity:.3;transform:scaleY(.7)}50%{opacity:1;transform:scaleY(1)}}
/* SECTION COMMON */
.section-label{display:flex;align-items:center;gap:1rem}
.label-number{font-family:'Outfit',sans-serif;font-size:.8rem;color:var(--gold);font-weight:600;letter-spacing:1px}
.label-text{font-family:'Outfit',sans-serif;font-size:1.5rem;font-weight:700;color:var(--text)}
.section-header-offset{margin-bottom:3rem}
.section-header-offset h2{font-family:'Outfit',sans-serif;font-size:clamp(1.8rem,3vw,2.5rem);font-weight:700;color:var(--text);margin:.25rem 0 .5rem;letter-spacing:-0.5px}
.section-subtitle{color:var(--text-muted);font-size:.95rem}
.section-cta{text-align:center;margin-top:2.5rem}
section{padding:clamp(3rem,8vw,7rem) clamp(1.5rem,5%,4rem);max-width:1200px;margin:0 auto}

/* ABOUT */
.section-about{position:relative}
.about-layout{display:grid;grid-template-columns:auto 1fr;gap:clamp(2rem,5vw,5rem);align-items:start}
.about-label{writing-mode:vertical-lr;transform:rotate(180deg);position:sticky;top:100px}
.about-lead{font-family:'Outfit',sans-serif;font-size:clamp(1.2rem,2.2vw,1.6rem);font-weight:500;color:var(--text);line-height:1.5;margin-bottom:1.25rem}
.about-lead em{color:var(--gold);font-style:normal}
.about-body{color:var(--text-muted);font-size:.95rem;line-height:1.8;margin-bottom:2rem}
.about-body strong{color:var(--gold);font-weight:600}
.about-stats{display:flex;gap:2.5rem;flex-wrap:wrap}
.stat-item{display:flex;flex-direction:column}
.stat-number{font-family:'Outfit',sans-serif;font-size:1.6rem;font-weight:700;color:var(--gold)}
.stat-label{font-size:.75rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:1px;margin-top:.15rem}

/* skill */
.section-skill{background:var(--bg-surface);border-radius:var(--radius-lg);padding:clamp(3rem,6vw,5rem) clamp(1.5rem,5%,3rem)!important;max-width:1200px;margin:0 auto;border:1px solid rgba(255,255,255,0.03)}
.skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}
.skill-category{background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);border-radius:var(--radius-md);padding:1.75rem;transition:all .4s var(--ease)}
.skill-category:hover{border-color:var(--gold-border);transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,0.3)}
.skill-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:var(--gold-dim);color:var(--gold);font-size:1rem;margin-bottom:1rem}
.skill-category h3{font-family:'Outfit',sans-serif;font-size:1rem;font-weight:600;color:var(--text);margin-bottom:1rem}
.skill-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{padding:.3rem .7rem;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:var(--radius-lg);font-size:.78rem;color:var(--text-muted);transition:all .25s}
.chip:hover{background:var(--gold-dim);border-color:var(--gold-border);color:var(--gold)}

/* JOURNEY */
.journey-track{position:relative;padding-left:2.5rem}
.journey-line{position:absolute;left:8px;top:0;bottom:0;width:2px;background:linear-gradient(to bottom,var(--gold),var(--blue),transparent);border-radius:1px}
.journey-item{position:relative;padding-bottom:2.5rem}
.journey-item:last-child{padding-bottom:0}
.journey-marker{position:absolute;left:-2.5rem;top:0;display:flex;align-items:center}
.journey-year{background:var(--bg-elevated);border:1.5px solid var(--gold-border);color:var(--gold);font-family:'Outfit',sans-serif;font-size:.75rem;font-weight:600;padding:.25rem .65rem;border-radius:var(--radius-lg);white-space:nowrap}
.journey-card{background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);border-radius:var(--radius-md);padding:1.5rem;transition:all .4s var(--ease);margin-left:.5rem}
.journey-card:hover{border-color:var(--gold-border);transform:translateX(6px)}
.journey-card h3{font-family:'Outfit',sans-serif;font-size:1.05rem;font-weight:600;color:var(--text);margin-bottom:.5rem}
.journey-card p{color:var(--text-muted);font-size:.88rem;line-height:1.6}
.journey-bullets{list-style:none;padding:0;margin:.5rem 0 0}
.journey-bullets li{color:var(--text-muted);font-size:.86rem;line-height:1.65;padding:.35rem 0 .35rem 1.25rem;position:relative}
.journey-bullets li::before{content:'';position:absolute;left:0;top:.75rem;width:6px;height:6px;border-radius:50%;background:var(--gold);opacity:.7}
.journey-bullets li strong{color:var(--gold);font-weight:600}
.journey-highlights{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}
.journey-badge{font-size:.72rem;padding:.25rem .6rem;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:var(--radius-lg);color:var(--text-muted)}
.journey-badge.accent{border-color:var(--gold-border);color:var(--gold);background:var(--gold-dim)}

/* WRITEUPS */
.writeups-magazine{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.writeup-card{background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);border-radius:var(--radius-md);transition:all .4s var(--ease);overflow:hidden}
.writeup-card:hover{border-color:var(--gold-border);transform:translateY(-5px);box-shadow:0 16px 50px rgba(0,0,0,0.3)}
.writeup-featured{grid-column:1/-1}
.writeup-card-inner{padding:1.75rem;display:flex;flex-direction:column;gap:.75rem;height:100%}
.writeup-meta-row{display:flex;align-items:center;justify-content:space-between}
.writeup-category{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--blue);background:rgba(107,138,186,0.1);padding:.25rem .6rem;border-radius:var(--radius-sm);border:1px solid rgba(107,138,186,0.15)}
.writeup-github{color:var(--text-dim);font-size:1.1rem;transition:color .25s}
.writeup-github:hover{color:var(--gold)}
.writeup-card h3{font-family:'Outfit',sans-serif;font-size:1.2rem;font-weight:600;line-height:1.3}
.card-title-link{color:var(--text);transition:color .25s}
.card-title-link:hover{color:var(--gold)}
.writeup-description{color:var(--text-muted);font-size:.88rem;line-height:1.6;flex:1}
.writeup-tags{display:flex;flex-wrap:wrap;gap:.35rem}
.tag, .tag:visited, .tag:active{padding:.2rem .55rem;background:rgba(138,154,123,0.08);color:var(--sage);border:1px solid rgba(138,154,123,0.15);border-radius:var(--radius-sm);font-size:.72rem;font-weight:500}
.writeup-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.75rem;border-top:1px solid rgba(255,255,255,0.04);margin-top:auto}
.writeup-stats{color:var(--text-dim);font-size:.78rem}
.read-link, .read-link:visited, .read-link:active{color:var(--gold);font-size:.82rem;font-weight:500;display:inline-flex;align-items:center;gap:.35rem;transition:gap .25s}
.writeup-card:hover .read-link{gap:.6rem}
.read-link i{font-size:.65rem}

/* PROJECTS */
.projects-bento{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem}
.project-wide{grid-column:1/-1}
.project-card{background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);border-radius:var(--radius-md);transition:all .4s var(--ease);overflow:hidden}
.project-card:hover{border-color:var(--gold-border);transform:translateY(-5px);box-shadow:0 16px 50px rgba(0,0,0,0.3)}
.project-card-inner{padding:1.75rem;height:100%;display:flex;flex-direction:column}
.project-placeholder .project-icon{font-size:2.5rem;margin-bottom:1rem}
.project-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}
.project-header h3{font-family:'Outfit',sans-serif;font-size:1.2rem;font-weight:600;color:var(--text);flex:1;min-width:0}
.project-links{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.project-card-content{display:flex;flex-direction:column;gap:.75rem;flex:1;color:inherit}
.project-card-content p{color:var(--text-muted);font-size:.88rem;line-height:1.6}
.project-tags{display:flex;flex-wrap:wrap;gap:.35rem}
.project-view-link{color:var(--gold);font-size:.82rem;font-weight:500;display:inline-flex;align-items:center;gap:.35rem;margin-top:auto;padding-top:.75rem;transition:gap .25s}
.project-card:hover .project-view-link{gap:.6rem}

/* CERTS */
.section-certs{padding-bottom:2rem!important}
.certs-strip{display:flex;gap:1rem;flex-wrap:wrap}
.cert-badge{display:flex;align-items:center;gap:1rem;background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);border-radius:var(--radius-md);padding:1.25rem 1.5rem;flex:1;min-width:260px;transition:all .35s var(--ease)}
.cert-badge:hover{border-color:var(--gold-border);transform:translateY(-3px)}
.cert-icon-small{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}
.cert-icon-small img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
.cert-info h4{font-family:'Outfit',sans-serif;font-size:.88rem;font-weight:600;color:var(--text);margin-bottom:.15rem}
.cert-info span{font-size:.75rem;color:var(--text-dim)}

/* CONNECT */
.section-connect{background:var(--bg-surface);border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,0.03);padding:clamp(3rem,6vw,5rem) clamp(1.5rem,5%,3rem)!important;max-width:1200px;margin:0 auto}
.connect-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.connect-text h2{font-family:'Outfit',sans-serif;font-size:clamp(1.8rem,3vw,2.5rem);font-weight:700;color:var(--text);margin:.25rem 0 1rem;letter-spacing:-0.5px}
.connect-text p{color:var(--text-muted);font-size:.95rem;line-height:1.7;max-width:380px}
.connect-links{display:flex;flex-direction:column;gap:.75rem}
.connect-card{display:flex;align-items:center;gap:1rem;background:var(--bg-card);border:1px solid rgba(255,255,255,0.04);border-radius:var(--radius-md);padding:1.25rem 1.5rem;transition:all .35s var(--ease)}
.connect-card:hover{border-color:var(--gold-border);transform:translateX(6px);background:var(--bg-elevated)}
.connect-card i{font-size:1.2rem;color:var(--gold);width:24px;text-align:center;flex-shrink:0}
.connect-card span{font-family:'Outfit',sans-serif;font-weight:600;font-size:.95rem;color:var(--text)}
.connect-card small{color:var(--text-dim);font-size:.78rem;margin-left:auto}

/* FOOTER */
footer{border-top:1px solid rgba(255,255,255,0.04);padding:2.5rem clamp(1.5rem,5%,4rem);background:var(--bg-deep)}
.footer-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.footer-mark{font-family:'Outfit',sans-serif;font-size:1.2rem;font-weight:700;color:var(--text)}
.footer-links{display:flex;gap:1rem}
.footer-links a{color:var(--text-dim);font-size:1rem;transition:color .25s}
.footer-links a:hover{color:var(--gold)}
.footer-copy{color:var(--text-dim);font-size:.75rem}

/* BACK TO TOP */
.back-to-top{position:fixed;bottom:24px;left:24px;width:40px;height:40px;background:var(--bg-elevated);color:var(--gold);border:1px solid var(--gold-border);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.8rem;z-index:999;opacity:0;visibility:hidden;transition:all .3s var(--ease)}
.back-to-top.show{opacity:1;visibility:visible}
.back-to-top:hover{background:var(--gold);color:var(--bg-deep);transform:translateY(-3px)}

/* FLOATING CONTACT SIDEBAR */
.contact-float{position:fixed;right:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:1rem;z-index:998;transition:opacity .4s var(--ease),visibility .4s}
.contact-float.hide{opacity:0;visibility:hidden}

.contact-float-line{width:1px;height:40px;background:linear-gradient(to bottom,transparent,var(--gold-border),transparent)}
.contact-float-icon, .contact-float-icon:visited, .contact-float-icon:active{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--bg-card);border:1px solid var(--gold-border);color:var(--gold);font-size:1rem;transition:all .35s var(--ease);text-decoration:none;box-shadow:0 4px 15px rgba(0,0,0,0.2)}
.contact-float-icon:hover{border-color:var(--gold);color:var(--bg-deep);background:var(--gold);transform:scale(1.15);box-shadow:0 6px 20px rgba(232,168,56,0.3)}
/* ANIMATIONS */
.reveal-up{opacity:0;transform:translateY(30px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal-left{opacity:0;transform:translateX(-30px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal-up.visible,.reveal-left.visible{opacity:1;transform:translate(0)}

/* PAGE HEADERS (sub-pages) */
.page-hero{background:var(--bg-surface);padding:7rem clamp(1.5rem,5%,4rem) 3.5rem;text-align:center;border-bottom:1px solid rgba(255,255,255,0.04);margin-bottom:2rem}
.page-title{font-family:'Outfit',sans-serif;font-size:clamp(2rem,4vw,3rem);font-weight:700;color:var(--text);margin-bottom:.75rem;letter-spacing:-1px}
.page-subtitle{color:var(--text-muted);font-size:.95rem;max-width:600px;margin:0 auto}
.listing-container{padding:0 clamp(1.5rem,5%,4rem) 4rem;max-width:1200px;margin:0 auto}

/* POST PAGE */
.post-page{max-width:800px;margin:0 auto;padding:7rem clamp(1.5rem,5%,3rem) 4rem}
.post-header{margin-bottom:3rem}
.post-breadcrumb{color:var(--text-dim);margin-bottom:1.5rem;font-size:.82rem}
.post-breadcrumb a{color:var(--gold);transition:opacity .25s}
.post-breadcrumb a:hover{opacity:.7}
.post-breadcrumb span{margin:0 .4rem;opacity:.4}
.post-cover{width:100%;margin-bottom:2.5rem;border-radius:var(--radius-md);overflow:hidden;border:1px solid rgba(255,255,255,0.06)}
.post-cover img{width:100%;height:auto}
.post-title{font-family:'Outfit',sans-serif;font-size:clamp(1.8rem,4vw,2.8rem);font-weight:700;color:var(--text);margin-bottom:1.25rem;line-height:1.15;letter-spacing:-0.5px}
.post-meta{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem;color:var(--text-muted);font-size:.82rem}
.meta-item{display:flex;align-items:center;gap:.4rem}
.post-tags{display:flex;gap:.5rem;margin-top:1rem;flex-wrap:wrap}
.tag-link{text-decoration:none}

/* POST CONTENT */
.post-content{color:var(--text);line-height:1.85;font-size:1.02rem}
.post-content h1,.post-content h2,.post-content h3{font-family:'Outfit',sans-serif;color:var(--text);margin:2.5rem 0 1rem;font-weight:600;letter-spacing:-0.3px}
.post-content h2{border-bottom:1px solid rgba(255,255,255,0.06);padding-bottom:.5rem}
.post-content p{margin-bottom:1.4rem}
.post-content a{color:var(--gold);font-weight:600;text-decoration:underline;text-decoration-color:rgba(232,168,56,0.3);text-underline-offset:3px;transition:text-decoration-color .25s}
.post-content a:hover{text-decoration-color:var(--gold)}
.post-content ul,.post-content ol{margin-bottom:1.4rem;padding-left:1.4rem}
.post-content li{margin-bottom:.4rem}
.post-content blockquote{background:rgba(232,168,56,0.04);border-left:3px solid var(--gold);padding:1.25rem 1.5rem;margin:1.5rem 0;border-radius:0 var(--radius-sm) var(--radius-sm) 0}
.post-content blockquote p{margin-bottom:0;font-style:italic;color:var(--text-muted)}
.post-content hr{border:none;border-top:1px solid rgba(255,255,255,0.06);margin:2.5rem 0}
.post-content pre{background:var(--bg-elevated)!important;border:1px solid rgba(255,255,255,0.06);border-radius:var(--radius-sm);padding:1.25rem;overflow-x:auto;margin:1.5rem 0;font-size:.85rem}
.post-content code{font-family:'JetBrains Mono',monospace;font-size:.88em}
.post-content img{border-radius:var(--radius-sm);margin:1.5rem 0;border:1px solid rgba(255,255,255,0.06)}
.post-footer{margin-top:4rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,0.06);text-align:center}
.related-posts{margin-top:4rem}
.related-posts h2{text-align:left;font-size:1.3rem;margin-bottom:1.5rem}

/* WRITEUP DIFFICULTY */
.writeup-difficulty{font-size:.7rem;padding:.2rem .5rem;border-radius:var(--radius-sm);font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.writeup-difficulty.easy{background:rgba(40,200,64,0.1);color:#28c840;border:1px solid rgba(40,200,64,0.2)}
.writeup-difficulty.medium{background:rgba(255,189,46,0.1);color:#ffbd2e;border:1px solid rgba(255,189,46,0.2)}
.writeup-difficulty.hard{background:rgba(255,95,87,0.1);color:#ff5f57;border:1px solid rgba(255,95,87,0.2)}

/* 404 PAGE */
.error-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;overflow:hidden}
.error-page::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(232,168,56,0.02) 0px,rgba(232,168,56,0.02) 1px,transparent 1px,transparent 3px);pointer-events:none;animation:scanLines .1s linear infinite;z-index:1}
@keyframes scanLines{0%{transform:translateY(0)}100%{transform:translateY(3px)}}
.error-content{text-align:center;z-index:2;position:relative}
.error-code{font-family:'Outfit',sans-serif;font-size:clamp(5rem,15vw,10rem);font-weight:900;color:var(--gold);text-shadow:0 0 30px rgba(232,168,56,0.3);line-height:1;margin-bottom:1rem;animation:glitch404 3s infinite}
@keyframes glitch404{0%,90%,100%{transform:translate(0);text-shadow:0 0 20px rgba(232,168,56,0.3)}91%{transform:translate(-3px,2px);text-shadow:3px 0 var(--gold),-3px 0 var(--blue)}93%{transform:translate(3px,-2px);text-shadow:-3px 0 var(--gold),3px 0 var(--blue)}95%{transform:translate(-2px,-2px);text-shadow:2px 0 var(--gold),-2px 0 var(--blue)}}
.error-content h1{font-family:'Outfit',sans-serif;font-size:clamp(1.2rem,3vw,2rem);color:var(--gold);text-transform:uppercase;letter-spacing:.2rem;margin-bottom:1rem}
.error-content>p{color:var(--text-muted);font-size:1rem;margin-bottom:2rem}
.error-terminal{background:var(--bg-elevated);border:1px solid rgba(255,255,255,0.06);border-radius:var(--radius-md);padding:1.25rem 1.5rem;text-align:left;font-family:'JetBrains Mono',monospace;font-size:.8rem;margin:2rem auto;max-width:500px;line-height:2}
.error-terminal .terminal-prompt{color:var(--gold);font-weight:500}
.error-terminal .terminal-cmd{color:var(--text)}
.error-terminal .terminal-error{color:#ff5f57}
.error-terminal .terminal-warning{color:#ffbd2e}
.error-terminal .terminal-success{color:var(--gold)}
.matrix-canvas{position:absolute;inset:0;z-index:0;opacity:.1}

/* EMPTY STATE */
.empty-state{text-align:center;padding:3rem;color:var(--text-dim)}

/* RESPONSIVE */
@media(max-width:1024px){
  .hero-layout{gap:2.5rem}
  .hero-name{font-size:clamp(2.2rem,5vw,3.5rem)}
  .connect-layout{gap:2.5rem}
}
@media(max-width:768px){
  .nav-toggle{display:flex}
  .nav-links{display:none;flex-direction:column;position:absolute;top:100%;left:0;width:100%;background:var(--bg-nav);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,0.04);padding:.75rem 0;gap:0;box-shadow:0 12px 40px rgba(0,0,0,0.5)}
  nav.nav-open .nav-links{display:flex}
  .nav-links li{width:100%}
  .nav-links a{display:block;padding:.75rem 1.5rem!important;border-radius:0!important;border:none!important;font-size:.92rem}
  .nav-links a:hover{background:rgba(232,168,56,0.06)}
  .nav-cta{margin:.5rem 1.5rem!important;text-align:center;border:1px solid var(--gold-border)!important;border-radius:var(--radius-sm)!important}

  .hero{padding-top:80px;min-height:auto}
  .hero-layout{grid-template-columns:1fr;text-align:center}
  .hero-text{max-width:100%}
  .hero-actions{justify-content:center}
  .hero-visual{align-items:center}
  .hero-photo-frame{width:200px;height:230px}
  .hero-terminal{width:280px}
  .scroll-hint{display:none}

  .about-layout{grid-template-columns:1fr}
  .about-label{writing-mode:horizontal-tb;transform:none;position:static}

  .journey-track{padding-left:2rem}
  .journey-marker{left:-2rem}

  .connect-layout{grid-template-columns:1fr}
  .connect-card small{display:none}
  .contact-float{top:auto;right:auto;left:0;bottom:0;transform:none;flex-direction:row;width:100%;justify-content:center;gap:.75rem;padding:.6rem 0;background:var(--bg-nav);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,0.06)}
  .contact-float-line{display:none}
  .contact-float-icon{width:36px;height:36px;font-size:.85rem}

  .writeups-magazine{grid-template-columns:1fr}
  .writeup-featured{grid-column:auto}
  .projects-bento{grid-template-columns:1fr}
  .project-wide{grid-column:auto}
  .certs-strip{flex-direction:column}
  .cert-badge{min-width:auto}

  .footer-inner{flex-direction:column;text-align:center;gap:.75rem}

  .page-hero{padding-top:5.5rem;padding-bottom:2.5rem}
  .post-page{padding-top:5.5rem}
}
@media(max-width:480px){
  .hero-name{letter-spacing:-1px}
  .hero-photo-frame{width:160px;height:190px}
  .mini-terminal-body{font-size:.7rem;padding:.75rem}
  .hero-terminal{width:240px}
  .about-stats{gap:1.5rem}
  .skill-grid{grid-template-columns:1fr}
  .btn{padding:.65rem 1.25rem;font-size:.85rem}
  .project-header{flex-direction:column}
  .writeup-footer{flex-direction:column;gap:.5rem;align-items:flex-start}
}
