  :root{
    --ink:#f5f6fa;
    --ink-dim:#ffffff;
    --ink-faint:#ffffff;
    --accent:#8fb8ff;
    --accent2:#ff9ed4;
    --glass-fill:rgba(255,255,255,0.09);
    --glass-fill-strong:rgba(255,255,255,0.16);
    --glass-border:rgba(255,255,255,0.22);
    --shadow:0 20px 60px -20px rgba(0,0,0,0.6);
    --green:#5be6a3;
  }
  html.light{
    --ink:#12131a;
    --ink-dim:#3f4152;
    --ink-faint:#6b6d80;
    --glass-fill:rgba(255,255,255,0.42);
    --glass-fill-strong:rgba(255,255,255,0.62);
    --glass-border:rgba(255,255,255,0.7);
    --shadow:0 20px 60px -20px rgba(30,30,60,0.25);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{height:100%;}
  body{
    font-family:'Inter',sans-serif; color:var(--ink);
    background:#05060a; overflow-x:hidden; position:relative; min-height:100vh;
  }
  html.light body{background:#dbe4f5;}
  .display{font-family:'Space Grotesk',sans-serif;}
  .mono{font-family:'JetBrains Mono',monospace;}

  /* animated gradient backdrop */
  .blob{position:fixed; border-radius:50%; filter:blur(90px); z-index:0; opacity:.55; mix-blend-mode:screen;}
  html.light .blob{opacity:.35; mix-blend-mode:normal;}
  .blob1{width:560px; height:560px; background:#5b6bff; top:-160px; left:-120px; animation:float1 22s ease-in-out infinite;}
  .blob2{width:480px; height:480px; background:#ff6fb0; top:20%; right:-140px; animation:float2 26s ease-in-out infinite;}
  .blob3{width:520px; height:520px; background:#20c4c8; bottom:-180px; left:20%; animation:float3 30s ease-in-out infinite;}
  .blob4{width:380px; height:380px; background:#ffb648; bottom:10%; right:15%; animation:float1 18s ease-in-out infinite reverse;}
  @keyframes float1{0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(60px,40px) scale(1.08);}}
  @keyframes float2{0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-50px,60px) scale(0.95);}}
  @keyframes float3{0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(40px,-50px) scale(1.05);}}

  .grain{position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.035;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");}

  /* glass base */
  .glass{
    position:relative; background:linear-gradient(150deg, var(--glass-fill-strong), var(--glass-fill));
    backdrop-filter:blur(26px) saturate(160%); -webkit-backdrop-filter:blur(26px) saturate(160%);
    border:1px solid var(--glass-border); border-radius:28px; box-shadow:var(--shadow);
  }
  .glass::before{
    content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
    background:linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 38%);
    -webkit-mask:linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    padding:1px; -webkit-mask-composite:xor; mask-composite:exclude;
  }

  /* topbar */
  .topbar{
    position:sticky; top:16px; z-index:50; margin:16px auto 0; max-width:960px;
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    padding:10px 10px 10px 18px; flex-wrap:wrap;
  }
  .brand{display:flex; align-items:center; gap:10px;}
  .brand .ring{
    width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:conic-gradient(from 180deg, var(--accent), var(--accent2), var(--accent));
    padding:2px;
  }
  .brand .ring b{width:100%; height:100%; border-radius:50%; background:#0a0b10; color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:700;}
  /* Same treatment as the sidebar avatar: the photo fills the gradient ring,
     and the <b> initials stay as the fallback if it ever fails to load. */
  .brand .ring img{width:100%; height:100%; border-radius:50%; object-fit:cover; display:block;}
  .brand .name{font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:14px;}
  .rec{display:flex; align-items:center; gap:5px; font-family:'JetBrains Mono',monospace; font-size:9.5px; letter-spacing:.1em; color:var(--ink-faint);}
  .rec .dot{width:6px; height:6px; border-radius:50%; background:#ff5a5a; animation:pulse 1.6s ease-in-out infinite;}
  @keyframes pulse{0%,100%{opacity:1;} 50%{opacity:.25;}}

  .nav-pill{display:flex; gap:2px; background:var(--glass-fill); border:1px solid var(--glass-border); border-radius:999px; padding:4px; min-width:0; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;}
  .nav-pill::-webkit-scrollbar{display:none;}
  .nav-btn{border:none; background:transparent; color:var(--ink-dim); padding:8px 15px; border-radius:999px; font-size:12.5px; font-weight:500; cursor:pointer; font-family:'Inter',sans-serif; white-space:nowrap; flex:0 0 auto;}
  .nav-btn.active{background:var(--ink); color:#05060a; font-weight:600;}
  html.light .nav-btn.active{background:#12131a; color:#fff;}
  .nav-btn:not(.active):hover{color:var(--ink);}

  .icon-btn{width:38px; height:38px; border-radius:50%; border:1px solid var(--glass-border); background:var(--glass-fill); color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; flex:0 0 auto;}

  @media (max-width:640px){
    .topbar{padding:8px 8px 8px 14px; gap:8px; margin:12px 10px 0; max-width:calc(100% - 20px);}
    .rec{display:none;}
    .nav-btn{padding:7px 11px; font-size:11.5px;}
    .brand .name{font-size:13px;}
  }

  /* layout */
  .layout{position:relative; z-index:5; display:grid; grid-template-columns:300px 1fr; gap:22px; max-width:1240px; margin:0 auto; padding:26px 24px 80px; align-items:start;}
  @media (max-width:900px){ .layout{grid-template-columns:1fr; padding:20px 16px 60px;} }

  .sidebar{position:sticky; top:96px; padding:30px 26px;}
  .avatar-wrap{display:flex; justify-content:center; margin-bottom:16px;}
  .avatar{
    width:92px; height:92px; border-radius:50%; padding:3px;
    background:conic-gradient(from 200deg, var(--accent), var(--accent2), #6ee7c8, var(--accent));
  }
  .avatar b{width:100%; height:100%; border-radius:50%; background:#11121a; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:26px; color:#fff;}
  .avatar img{width:100%; height:100%; border-radius:50%; object-fit:cover; display:block;}
  .sidebar h1{text-align:center; font-family:'Space Grotesk',sans-serif; font-size:20px; font-weight:700;}
  .role-chip{display:block; text-align:center; width:fit-content; margin:8px auto 16px; font-family:'JetBrains Mono',monospace; font-size:10.5px; letter-spacing:.08em; color:var(--accent); background:rgba(143,184,255,0.14); border:1px solid rgba(143,184,255,0.3); padding:4px 10px; border-radius:999px;}
  .status{display:flex; align-items:center; justify-content:center; gap:8px; font-size:12px; color:var(--ink-dim); border:1px solid var(--glass-border); border-radius:999px; padding:9px; margin-bottom:22px;}
  .status .dot{width:7px;height:7px;border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(91,230,163,0.2);}

  .info{margin-bottom:16px;}
  .info-label{font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:4px;}
  .info-value{font-size:13.5px;}
  hr.sep{border:none; border-top:1px solid var(--glass-border); margin:18px 0;}

  .socials{display:flex; gap:8px; margin-bottom:16px;}
  .social-btn{flex:1; text-align:center; padding:9px 0; border-radius:12px; border:1px solid var(--glass-border); background:var(--glass-fill); color:var(--ink); font-size:11.5px; text-decoration:none;}
  .social-btn:hover{background:var(--glass-fill-strong);}
  .cta{display:block; text-align:center; padding:12px; border-radius:14px; background:var(--ink); color:#05060a; font-weight:600; font-size:13.5px; text-decoration:none;}
  html.light .cta{background:#12131a; color:#fff;}
  .clock{text-align:center; font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--ink-dim); margin-top:14px;}

  /* main */
  .panel{display:none;}
  .panel.active{display:block; animation:rise .35s ease;}
  @keyframes rise{from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);}}
  .card{padding:48px;}
  @media (max-width:600px){ .card{padding:26px;} }
  .eyebrow{display:inline-flex; align-items:center; gap:7px; font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.09em; color:var(--accent); background:rgba(143,184,255,0.13); border:1px solid rgba(143,184,255,0.3); padding:6px 12px; border-radius:999px; margin-bottom:22px;}
  h2.headline{font-family:'Space Grotesk',sans-serif; font-size:42px; line-height:1.14; font-weight:700; margin-bottom:20px;}
  @media (max-width:600px){ h2.headline{font-size:29px;} }
  .lede{font-size:16px; line-height:1.7; color:var(--ink-dim); max-width:620px; margin-bottom:30px;}
  .btn-row{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:40px;}
  .btn-p{background:var(--ink); color:#05060a; padding:13px 22px; border-radius:14px; font-weight:600; font-size:14px; text-decoration:none;}
  html.light .btn-p{background:#12131a; color:#fff;}
  .btn-s{border:1px solid var(--glass-border); background:var(--glass-fill); color:var(--ink); padding:13px 22px; border-radius:14px; font-weight:600; font-size:14px; text-decoration:none;}

  .stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:10px;}
  @media (max-width:800px){ .stat-grid{grid-template-columns:repeat(2,1fr);} }
  @media (max-width:460px){ .stat-grid{grid-template-columns:1fr;} }
  .stat{padding:20px; border-radius:20px;}
  .stat .num{font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:700; background:linear-gradient(120deg,var(--accent),var(--accent2)); -webkit-background-clip:text; background-clip:text; color:transparent;}
  .stat .label{font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); margin:7px 0 8px;}
  .stat .desc{font-size:12.5px; color:var(--ink-dim); line-height:1.5;}

  .section-tag{display:flex; align-items:center; gap:10px; font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint); margin:56px 0 14px;}
  .section-tag .rule{width:26px; height:1px; background:var(--ink-faint);}
  h3.sub{font-family:'Space Grotesk',sans-serif; font-size:25px; font-weight:700; margin-bottom:18px;}
  .two-col{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
  @media (max-width:700px){ .two-col{grid-template-columns:1fr;} }
  .two-col p{font-size:14.5px; line-height:1.75; color:var(--ink-dim); border-left:2px solid var(--accent); padding-left:16px;}

  /* timeline */
  .t-item{border-bottom:1px solid var(--glass-border); padding:18px 0;}
  .t-item:last-child{border-bottom:none;}
  .t-top{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:6px;}
  .t-role{font-weight:600; font-size:15.5px;}
  .t-org{color:var(--ink-dim); font-size:13px; margin-top:2px;}
  .t-date{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--accent); background:rgba(143,184,255,0.13); padding:4px 10px; border-radius:999px; white-space:nowrap; height:fit-content;}
  .t-desc{font-size:13.5px; color:var(--ink-dim); line-height:1.6; margin-top:4px;}
  .chip-row{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
  .chip{font-family:'JetBrains Mono',monospace; font-size:11px; padding:4px 10px; border-radius:999px; border:1px solid var(--glass-border); color:var(--ink-dim);}

  .check-list{display:flex; flex-direction:column; gap:14px;}
  .check-item{display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; padding-bottom:14px; border-bottom:1px solid var(--glass-border);}
  .check-item:last-child{border:none; padding-bottom:0;}
  .check-left{display:flex; gap:10px;}
  .check-mark{color:var(--green); font-size:15px;}
  .check-title{font-weight:600; font-size:14.5px;}
  .check-sub{font-size:12.5px; color:var(--ink-dim); margin-top:2px;}
  .check-years{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--ink-faint); white-space:nowrap;}

  .tag-cloud{display:flex; flex-wrap:wrap; gap:10px;}
  .tag-cloud span{font-family:'JetBrains Mono',monospace; font-size:12.5px; padding:8px 14px; border-radius:12px; background:var(--glass-fill); border:1px solid var(--glass-border); color:var(--ink-dim);}

  .lang-row{margin-bottom:16px;}
  .lang-top{display:flex; justify-content:space-between; font-size:13.5px; margin-bottom:6px;}
  .bar-track{height:5px; border-radius:99px; background:var(--glass-fill);}
  .bar-fill{height:100%; background:linear-gradient(90deg,var(--accent),var(--accent2)); border-radius:99px;}

  .grid-2{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  @media (max-width:700px){ .grid-2{grid-template-columns:1fr;} }
  .box{background:var(--glass-fill); border:1px solid var(--glass-border); border-radius:18px; padding:24px;}
  .box h4{font-size:16px; font-weight:700; margin-bottom:14px;}

  /* video showcase */
  .video-note{font-size:12.5px; color:var(--ink-faint); margin-bottom:22px; border:1px dashed var(--glass-border); border-radius:12px; padding:12px 16px;}
  .video-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:18px;}
  @media (max-width:700px){ .video-grid{grid-template-columns:1fr;} }
  .v-card{border-radius:18px; overflow:hidden; border:1px solid var(--glass-border); background:var(--glass-fill);}
  .v-embed{position:relative; width:100%; aspect-ratio:16/9; background:#000;}
  .v-embed iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
  .v-body{padding:14px 16px 16px;}
  .v-title{font-weight:600; font-size:13.5px; margin-bottom:4px;}
  .v-tool{font-family:'JetBrains Mono',monospace; font-size:10.5px; color:var(--ink-faint);}

  /* projects */
  .filter-row{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:30px;}
  .filter-btn{border:1px solid var(--glass-border); background:var(--glass-fill); color:var(--ink-dim); padding:7px 14px; border-radius:999px; font-size:12.5px; cursor:pointer; font-family:'Inter',sans-serif;}
  .filter-btn.active{background:var(--ink); color:#05060a; font-weight:600;}
  html.light .filter-btn.active{background:#12131a; color:#fff;}
  .project-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  @media (max-width:700px){ .project-grid{grid-template-columns:1fr;} }
  .project-card{background:var(--glass-fill); border:1px solid var(--glass-border); border-radius:18px; padding:24px;}
  .project-thumb{height:100px; border-radius:12px; margin-bottom:18px; background:linear-gradient(135deg, rgba(143,184,255,0.4), rgba(255,158,212,0.3)); border:1px solid var(--glass-border); overflow:hidden;}
  /* A thumb may hold a real screenshot; cover keeps the card height uniform
     whatever the source aspect ratio is, and the gradient above stays as the
     fallback for cards with no image. */
  .project-thumb img{width:100%; height:100%; object-fit:cover; object-position:top center; display:block;}
  /* An app icon is square artwork, not a screenshot: cover would slice a
     horizontal band out of the middle of the glyph, so contain it over a
     backdrop picked to match the icon instead. */
  .project-thumb--icon{background:linear-gradient(135deg,#1f93ab,#134b73);}
  .project-thumb--icon img{object-fit:contain; object-position:center; padding:8px; box-sizing:border-box;}
  /* Not every project has a screenshot to show -- a runbook, a CI workflow and
     a leadership role have nothing to photograph. Those keep a graphic tile,
     but a distinct one per card, so the page reads as designed rather than as
     a row of identical empty boxes. */
  .project-thumb--v1{background:linear-gradient(135deg, rgba(110,231,200,0.45), rgba(143,184,255,0.30));}
  .project-thumb--v2{background:linear-gradient(135deg, rgba(255,158,212,0.40), rgba(143,184,255,0.28));}
  .project-thumb--v3{background:linear-gradient(135deg, rgba(143,184,255,0.42), rgba(110,231,200,0.26));}
  .project-thumb--v4{background:linear-gradient(160deg, rgba(91,230,163,0.38), rgba(255,158,212,0.24));}
  .project-thumb--v5{background:linear-gradient(120deg, rgba(255,158,212,0.34), rgba(110,231,200,0.30));}
  .project-thumb--v6{background:linear-gradient(200deg, rgba(143,184,255,0.36), rgba(255,158,212,0.32));}
  .project-thumb--v7{background:linear-gradient(135deg, rgba(110,231,200,0.30), rgba(143,184,255,0.44));}
  /* Filtering sets the hidden attribute; make sure nothing overrides the UA
     default, since these are grid items. */
  .project-card[hidden]{display:none;}
  .filter-btn[hidden]{display:none;}
  .project-card h4{font-size:16.5px; font-weight:700; margin-bottom:4px;}
  .project-date{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--ink-faint); margin-bottom:12px;}
  .project-card p{font-size:13.5px; color:var(--ink-dim); line-height:1.6; margin-bottom:14px;}
  .repo-link{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--accent); text-decoration:none;}
  .repo-link:hover{text-decoration:underline;}

  /* credentials */
  .cred-item{display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 14px; padding:18px 0; border-bottom:1px solid var(--glass-border);}
  .cred-item:last-child{border:none;}
  .cred-title{font-weight:600; font-size:15px;}
  .cred-org{font-size:12.5px; color:var(--ink-dim); margin-top:2px;}
  .cred-date{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--ink-faint); white-space:nowrap;}

  /* contact */
  .contact-cards{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  @media (max-width:600px){ .contact-cards{grid-template-columns:1fr;} }
  .contact-card{background:var(--glass-fill); border:1px solid var(--glass-border); border-radius:16px; padding:18px;}
  .contact-card .main{font-weight:600; font-size:14.5px;}
  .contact-card .sub{font-size:12px; color:var(--ink-faint); margin-top:3px;}

  footer{position:relative; z-index:5; max-width:1240px; margin:0 auto; padding:30px 40px 60px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; color:var(--ink-dim); font-size:13px;}
  footer .fname{color:var(--ink); font-weight:700; font-size:16px; margin-bottom:6px; font-family:'Space Grotesk',sans-serif;}
  footer .fnote{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--ink-faint); margin-top:10px;}
  footer a{color:var(--ink-dim); text-decoration:none;}
