
  :root{
    --bg:#0F140F;
    --bg2:#161D16;
    --surface: rgba(28,35,27,0.55);
    --surface-solid:#1A211A;
    --copper:#C9793C;
    --copper-bright:#E4954F;
    --mint:#8FDDB8;
    --ink:#EDEAE2;
    --muted:#8B9187;
    --line: rgba(201,121,60,0.28);
    --line-soft: rgba(237,234,226,0.08);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background: var(--bg);
    color: var(--ink);
    font-family:'IBM Plex Sans', sans-serif;
    overflow-x:hidden;
    position:relative;
  }
  ::selection{ background: var(--copper); color:#0F140F; }

  /* ---------- animated backdrop ---------- */
  .backdrop{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background:
      radial-gradient(ellipse 900px 600px at 15% -5%, rgba(201,121,60,0.14), transparent 60%),
      radial-gradient(ellipse 700px 500px at 90% 15%, rgba(143,221,184,0.08), transparent 55%),
      linear-gradient(160deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
    background-size: 200% 200%;
    animation: driftGradient 22s ease-in-out infinite;
  }
  @keyframes driftGradient{
    0%,100%{ background-position: 0% 0%; }
    50%{ background-position: 60% 40%; }
  }
  .grid-overlay{
    position:fixed; inset:0; z-index:0; pointer-events:none; opacity:0.35;
    background-image:
      linear-gradient(var(--line-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 30%, transparent 75%);
  }
  #via-field{ position:fixed; inset:0; z-index:0; pointer-events:none; }
  .via{
    position:absolute; width:3px; height:3px; border-radius:50%;
    background: var(--copper); opacity:0.35;
    animation: floatVia 14s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(201,121,60,0.5);
  }
  @keyframes floatVia{
    0%,100%{ transform:translateY(0px) translateX(0px); opacity:0.2;}
    50%{ transform:translateY(-40px) translateX(12px); opacity:0.55;}
  }

  /* ---------- central trace ---------- */
  .trace-wrap{
    position:absolute; left:26px; top:0; bottom:0; width:2px; z-index:1;
    display:none;
  }
  @media(min-width:900px){ .trace-wrap{ display:block; } }
  .trace-line{
    position:absolute; left:0; top:0; width:2px; height:100%;
    background: linear-gradient(var(--line), var(--line) 40%, transparent);
  }
  .trace-pulse{
    position:absolute; left:-3px; width:8px; height:8px; border-radius:50%;
    background: var(--copper-bright);
    box-shadow: 0 0 12px 3px rgba(228,149,79,0.7);
    animation: pulseDown 6s linear infinite;
  }
  @keyframes pulseDown{
    0%{ top:0%; opacity:0; }
    5%{ opacity:1; }
    95%{ opacity:1; }
    100%{ top:100%; opacity:0; }
  }
  .via-node{
    position:absolute; left:-4px; width:10px; height:10px; border-radius:50%;
    border:2px solid var(--copper); background: var(--bg);
  }

  /* ---------- layout shell ---------- */
  .page{ position:relative; z-index:2; max-width:1180px; margin:0 auto; padding:0 32px; }
  @media(min-width:900px){ .page{ padding-left:76px; } }

  nav{
    position:fixed; top:0; left:0; right:0; z-index:50;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(15,20,15,0.55);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-inner{
    max-width:1180px; margin:0 auto; padding:16px 32px;
    display:flex; align-items:center; justify-content:space-between;
  }
  @media(min-width:900px){ .nav-inner{ padding-left:76px; } }
  .logo{ font-family:'IBM Plex Mono'; font-weight:600; letter-spacing:0.04em; font-size:14px; color:var(--copper-bright); }
  .logo span{ color:var(--muted); }
  .nav-links{ display:none; gap:28px; font-family:'IBM Plex Mono'; font-size:12.5px; letter-spacing:0.06em; text-transform:uppercase; }
  @media(min-width:760px){ .nav-links{ display:flex; } }
  .nav-links a{ color:var(--muted); text-decoration:none; transition: color .25s; position:relative; }
  .nav-links a:hover{ color: var(--copper-bright); }

  section{ position:relative; padding:120px 0 40px; }
  .eyebrow{
    font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.14em; text-transform:uppercase;
    color: var(--copper-bright); margin-bottom:18px; display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{ content:''; width:22px; height:1px; background:var(--copper); display:inline-block; }
  h1,h2,h3{ font-family:'IBM Plex Mono'; font-weight:600; letter-spacing:-0.01em; }

  /* ---------- hero ---------- */
  .hero{ padding-top:170px; padding-bottom:80px; min-height:92vh; display:flex; flex-direction:column; justify-content:center; }
  .hero-tag{ font-family:'IBM Plex Mono'; font-size:13px; color:var(--mint); margin-bottom:22px; letter-spacing:0.02em; }
  .hero-tag .caret{ display:inline-block; width:8px; height:16px; background:var(--mint); margin-left:4px; animation: blink 1.1s steps(2) infinite; vertical-align:-2px; }
  @keyframes blink{ 50%{ opacity:0; } }
  .hero h1{ font-size:clamp(2.6rem, 6vw, 4.6rem); line-height:1.04; color:var(--ink); }
  .hero h1 .accent{ color:var(--copper-bright); }
  .hero p.lede{ font-family:'IBM Plex Sans'; font-size:clamp(1rem,1.6vw,1.15rem); color:var(--muted); max-width:640px; margin-top:26px; line-height:1.7; }
  .hero-actions{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }
  .btn{
    font-family:'IBM Plex Mono'; font-size:13px; letter-spacing:0.04em; text-decoration:none;
    padding:13px 24px; border-radius:3px; transition: all .25s ease; display:inline-flex; align-items:center; gap:8px;
  }
  .btn-primary{ background: var(--copper); color:#12160F; font-weight:600; }
  .btn-primary:hover{ background: var(--copper-bright); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,121,60,0.28);}
  .btn-ghost{ border:1px solid var(--line); color: var(--ink); }
  .btn-ghost:hover{ border-color: var(--copper-bright); color:var(--copper-bright); transform: translateY(-2px); }

  .hero-stats{ display:flex; gap:40px; margin-top:64px; flex-wrap:wrap; }
  .hstat{ font-family:'IBM Plex Mono'; }
  .hstat .n{ font-size:1.6rem; color:var(--ink); font-weight:600; }
  .hstat .l{ font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:0.1em; margin-top:4px; }

  /* ---------- card shell w/ corner brackets ---------- */
  .module{
    position:relative; background: var(--surface); border:1px solid var(--line-soft);
    border-radius:6px; padding:28px; transition: border-color .3s, transform .3s, box-shadow .3s;
  }
  .module::before, .module::after{
    content:''; position:absolute; width:14px; height:14px; border-color:var(--copper); opacity:0.55;
  }
  .module::before{ top:-1px; left:-1px; border-top:2px solid; border-left:2px solid; }
  .module::after{ bottom:-1px; right:-1px; border-bottom:2px solid; border-right:2px solid; }
  .module:hover{ transform: translateY(-4px); border-color: var(--line); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
  .module:hover::before, .module:hover::after{ opacity:1; }

  /* ---------- workflow / architecture ---------- */
  .split{ display:grid; grid-template-columns:1fr; gap:22px; margin-top:44px; }
  @media(min-width:860px){ .split{ grid-template-columns:1fr 1fr; gap:56px; } }
  .col-label{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--mint); text-transform:uppercase; letter-spacing:0.12em; margin-bottom:20px; }
  .wf-step{ display:flex; gap:16px; padding:16px 0; border-bottom:1px solid var(--line-soft); }
  .wf-step:last-child{ border-bottom:none; }
  .wf-num{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--copper-bright); min-width:26px; padding-top:2px; }
  .wf-body h4{ font-family:'IBM Plex Mono'; font-size:14.5px; font-weight:600; color:var(--ink); margin-bottom:5px; }
  .wf-body p{ font-size:13.5px; color:var(--muted); line-height:1.6; }

  .arch-layer{ background: var(--surface-solid); border:1px solid var(--line-soft); border-left:3px solid var(--copper); border-radius:4px; padding:16px 18px; margin-bottom:12px; }
  .arch-layer h4{ font-family:'IBM Plex Mono'; font-size:13px; color:var(--ink); margin-bottom:6px; letter-spacing:0.03em; }
  .arch-layer p{ font-size:12.5px; color:var(--muted); line-height:1.55; }

  /* ---------- skills ---------- */
  .skill-groups{ display:grid; grid-template-columns:1fr; gap:34px; margin-top:44px; }
  @media(min-width:700px){ .skill-groups{ grid-template-columns:1fr 1fr; } }
  .skill-group-label{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--copper-bright); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:14px; }
  .tag-row{ display:flex; flex-wrap:wrap; gap:10px; }
  .tag{
    font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--ink);
    background: var(--surface-solid); border:1px solid var(--line-soft);
    padding:9px 14px; border-radius:20px; display:flex; align-items:center; gap:8px;
    transition: all .25s ease; cursor:default;
  }
  .tag i{ color:var(--mint); font-size:12px; }
  .tag:hover{ border-color:var(--copper-bright); background: rgba(201,121,60,0.12); transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 18px rgba(201,121,60,0.18); }

  /* ---------- projects ---------- */
  .proj-grid{ display:grid; grid-template-columns:1fr; gap:22px; margin-top:44px; }
  @media(min-width:700px){ .proj-grid{ grid-template-columns:1fr 1fr; } }
  .proj-card{ overflow:hidden; }
  .proj-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
  .proj-top i{ color:var(--copper-bright); font-size:18px; }
  .proj-link{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--muted); text-decoration:none; opacity:0; transform: translateX(-6px); transition: all .3s ease; }
  .proj-card:hover .proj-link{ opacity:1; transform: translateX(0); color:var(--mint); }
  .proj-card h3{ font-size:16.5px; color:var(--ink); margin-bottom:8px; }
  .proj-card p{ font-size:13px; color:var(--muted); line-height:1.65; margin-bottom:16px; }
  .proj-tags{ display:flex; flex-wrap:wrap; gap:7px; }
  .proj-tags span{ font-family:'IBM Plex Mono'; font-size:10.5px; color:var(--mint); border:1px solid rgba(143,221,184,0.25); padding:4px 9px; border-radius:3px; }

  /* ---------- footer / status bar ---------- */
  footer{ margin-top:60px; border-top:1px solid var(--line-soft); padding:22px 0 80px; }
  .status-bar{
    display:flex; flex-wrap:wrap; gap:20px; justify-content:space-between; align-items:center;
    font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted);
  }
  .status-left{ display:flex; gap:22px; flex-wrap:wrap; align-items:center; }
  .status-left span{ display:flex; align-items:center; gap:7px; }
  .dot{ width:7px; height:7px; border-radius:50%; background: var(--mint); box-shadow:0 0 8px rgba(143,221,184,0.7); }
  .status-right{ display:flex; gap:18px; }
  .status-right a{ color:var(--muted); text-decoration:none; transition:color .2s; }
  .status-right a:hover{ color: var(--copper-bright); }

  .reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:none; }

  /* ---------- hero layout w/ avatar ---------- */
  .hero-grid{ display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }
  @media(min-width:900px){ .hero-grid{ grid-template-columns:1.15fr 0.85fr; } }
  .avatar-wrap{ position:relative; width:min(320px, 78vw); margin:0 auto; }
  .avatar-frame{
    position:relative; border-radius:12px; overflow:hidden;
    border:1px solid var(--line); background: var(--surface-solid);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  }
  .avatar-frame::before, .avatar-frame::after{
    content:''; position:absolute; width:18px; height:18px; border-color:var(--copper); z-index:2;
  }
  .avatar-frame::before{ top:-1px; left:-1px; border-top:2px solid; border-left:2px solid; }
  .avatar-frame::after{ bottom:-1px; right:-1px; border-bottom:2px solid; border-right:2px solid; }
  .avatar-frame img, .avatar-frame svg{ display:block; width:100%; height:auto; }
  .avatar-badge{
    position:absolute; bottom:-16px; right:-16px; background: var(--copper);
    color:#12160F; font-family:'IBM Plex Mono'; font-size:11.5px; font-weight:700;
    padding:8px 14px; border-radius:20px; letter-spacing:0.03em;
    box-shadow: 0 10px 24px rgba(201,121,60,0.35);
  }

  /* ---------- skill stickers ---------- */
  .sticker{
    font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--ink);
    background: var(--surface-solid); border:1px solid var(--line-soft);
    padding:10px 15px 10px 12px; border-radius:10px; display:flex; align-items:center; gap:9px;
    transition: all .25s ease; cursor:default;
  }
  .sticker .ico{
    width:22px; height:22px; border-radius:6px; display:flex; align-items:center; justify-content:center;
    font-size:12px; flex-shrink:0;
  }
  .tag-row .sticker:nth-child(odd){ transform: rotate(-2deg); }
  .tag-row .sticker:nth-child(even){ transform: rotate(1.5deg); }
  .sticker:hover{ transform: rotate(0deg) translateY(-3px) scale(1.05); border-color: var(--copper-bright); box-shadow: 0 10px 22px rgba(0,0,0,0.3); }

  /* ---------- resume / download ---------- */
  .resume-grid{ display:grid; grid-template-columns:1fr; gap:22px; margin-top:44px; }
  @media(min-width:860px){ .resume-grid{ grid-template-columns:1.3fr 0.7fr; } }
  .resume-item{ display:flex; gap:16px; padding:14px 0; border-bottom:1px solid var(--line-soft); }
  .resume-item:last-child{ border-bottom:none; }
  .resume-item i{ color:var(--copper-bright); font-size:16px; margin-top:3px; }
  .resume-item h4{ font-family:'IBM Plex Mono'; font-size:14px; color:var(--ink); margin-bottom:4px; }
  .resume-item p{ font-size:13px; color:var(--muted); line-height:1.6; }
  .download-card{ text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; }
  .download-card i.fa-file-arrow-down{ font-size:34px; color:var(--copper-bright); }
  .download-card p{ font-size:12.5px; color:var(--muted); line-height:1.6; }

  /* ---------- contact ---------- */
  .contact-grid{ display:grid; grid-template-columns:1fr; gap:18px; margin-top:44px; }
  @media(min-width:700px){ .contact-grid{ grid-template-columns:repeat(3,1fr); } }
  .contact-card{ text-align:left; }
  .contact-card i{ color:var(--mint); font-size:18px; margin-bottom:12px; display:block; }
  .contact-card h4{ font-family:'IBM Plex Mono'; font-size:13.5px; color:var(--ink); margin-bottom:6px; }
  .contact-card a, .contact-card p{ font-size:13px; color:var(--muted); text-decoration:none; line-height:1.6; }
  .contact-card a:hover{ color:var(--copper-bright); }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
