  :root{
    --bg:#0b0d10;
    --bg-soft:#12161b;
    --panel:#161b21;
    --line:#23292f;
    --text:#eef1f3;
    --muted:#8b96a1;
    --accent:#7fe7c4;
    --accent2:#7aa2ff;
    --nav-bg:rgba(11,13,16,0.6);
    --nav-bg-scrolled:rgba(11,13,16,0.85);
    --grid-line:rgba(255,255,255,0.025);
    --btn-on-accent:#06231a;
    --site-card-overlay:rgba(11,13,16,0.75);
    --glow-strength:0.15;
    --mono:'JetBrains Mono','Courier New',monospace;
    --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  }
  [data-theme="light"]{
    --bg:#f7f9fb;
    --bg-soft:#ffffff;
    --panel:#eef2f6;
    --line:#dce3ea;
    --text:#14181d;
    --muted:#5c6b7a;
    --accent:#0b8f66;
    --accent2:#3568d4;
    --nav-bg:rgba(247,249,251,0.72);
    --nav-bg-scrolled:rgba(247,249,251,0.92);
    --grid-line:rgba(20,24,29,0.06);
    --btn-on-accent:#ffffff;
    --site-card-overlay:rgba(255,255,255,0.82);
    --glow-strength:0.1;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--sans);
    line-height:1.6;
    overflow-x:clip;
    transition:background 0.35s ease, color 0.35s ease;
  }

  /* background grid */
  .grid-bg{
    position:fixed; inset:0; z-index:-2;
    background-image:
      linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size:48px 48px;
    mask-image: radial-gradient(ellipse at top left, black 0%, transparent 70%);
    transition:background-image 0.35s ease;
  }
  .glow{
    position:fixed; z-index:-1; width:600px; height:600px; border-radius:50%;
    filter:blur(120px); opacity:var(--glow-strength); pointer-events:none;
    transition:opacity 0.35s ease;
  }
  .glow-1{ background:var(--accent); top:-200px; right:-150px; }
  .glow-2{ background:var(--accent2); bottom:0; left:-200px; }

  /* nav */
  nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    display:flex; justify-content:space-between; align-items:center;
    padding:24px 48px;
    backdrop-filter:blur(10px);
    background:var(--nav-bg);
    border-bottom:1px solid transparent;
    transition:border-color 0.3s, background 0.3s;
    opacity:0; animation:navIn 0.7s ease forwards;
  }
  @keyframes navIn{
    from{opacity:0; transform:translateY(-14px);}
    to{opacity:1; transform:translateY(0);}
  }
  nav.scrolled{ border-bottom-color:var(--line); background:var(--nav-bg-scrolled); }
  .nav-end{
    display:flex; align-items:center; gap:20px;
    margin-left:auto;
  }
  .theme-toggle{
    width:38px; height:38px; border-radius:10px;
    border:1px solid var(--line); background:var(--bg-soft);
    color:var(--muted); cursor:pointer; font-size:15px; line-height:1;
    display:inline-flex; align-items:center; justify-content:center;
    transition:all 0.2s; flex-shrink:0;
  }
  .theme-toggle:hover{
    border-color:var(--accent); color:var(--accent);
  }
  .theme-toggle .theme-icon{
    display:inline-flex; align-items:center; justify-content:center;
    line-height:0;
  }
  .theme-toggle .theme-icon svg{ display:block; }
  .theme-toggle .theme-icon--light{ display:none; }
  [data-theme="light"] .theme-toggle .theme-icon--dark{ display:none; }
  [data-theme="light"] .theme-toggle .theme-icon--light{ display:inline-flex; }
  .logo{
    display:inline-flex; align-items:center; gap:12px;
    text-decoration:none; color:var(--text);
    font-family:var(--mono); font-weight:700; font-size:18px; letter-spacing:1px;
  }
  .logo-avatar{
    width:38px; height:38px; border-radius:50%; object-fit:cover;
    border:2px solid rgba(127,231,196,0.35);
    box-shadow:0 0 0 3px rgba(127,231,196,0.08);
    transition:border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  }
  .logo:hover .logo-avatar{
    border-color:var(--accent);
    box-shadow:0 0 18px rgba(127,231,196,0.22);
    transform:scale(1.04);
  }
  .logo-text span{ color:var(--accent); }
  .nav-links{ display:flex; gap:32px; list-style:none; }
  .nav-links--desktop{ display:flex; }
  .nav-links a{
    color:var(--muted); text-decoration:none; font-size:14px; font-weight:500;
    transition:color 0.2s; position:relative;
  }
  .nav-links a:hover{ color:var(--text); }
  .nav-links a::after{
    content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px;
    background:var(--accent); transition:width 0.25s;
  }
  .nav-links a:hover::after{ width:100%; }

  .nav-toggle{
    display:none; flex-direction:column; justify-content:center; gap:5px;
    width:42px; height:42px; padding:10px; flex-shrink:0;
    background:transparent; border:1px solid var(--line); border-radius:10px;
    cursor:pointer; z-index:102; transition:border-color 0.2s, background 0.2s;
  }
  .nav-toggle:hover{ border-color:var(--accent); background:rgba(127,231,196,0.06); }
  .nav-toggle span{
    display:block; width:100%; height:2px; background:var(--text); border-radius:2px;
    transition:transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  section{ padding:64px 48px; max-width:1100px; margin:0 auto; }

  /* compile scroll track */
  .compile-scroll-track{
    position:relative; max-width:1100px; margin:0 auto;
    padding:0 48px;
    height:calc(100vh + 90vh);
  }
  .compile-scroll-track.compile-skipped{
    display:none;
  }
  .compile-sticky{
    position:sticky; top:0;
    height:100vh;
    display:flex; flex-direction:column;
    justify-content:center;
    padding:88px 0 32px;
    box-sizing:border-box;
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
  }
  .compile-stage{
    width:100%; display:flex; flex-direction:column; gap:14px;
    border-radius:14px;
    padding: 10px;
    box-shadow:
      0 2px 4px rgba(0,0,0,0.12),
      0 12px 32px -8px rgba(0,0,0,0.35),
      0 28px 64px -16px rgba(0,0,0,0.4);
  }
  [data-theme="light"] .compile-stage{
    box-shadow:
      0 2px 6px rgba(0,0,0,0.06),
      0 12px 32px -8px rgba(0,0,0,0.12),
      0 24px 48px -12px rgba(0,0,0,0.1);
  }
  .compile-topbar{
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    font-family:var(--mono); font-size:11px; color:var(--muted);
    padding:0 2px;
  }
  .compile-topbar .dim{ color:var(--line); }
  .compile-meta{ display:flex; align-items:center; gap:14px; }
  .compile-branch{ color:var(--accent2); }
  .compile-live{
    display:inline-flex; align-items:center; gap:6px;
    color:var(--accent); font-size:10px; text-transform:uppercase; letter-spacing:0.5px;
  }
  .compile-live .pulse{
    width:6px; height:6px; border-radius:50%; background:var(--accent);
    box-shadow:0 0 0 0 rgba(127,231,196,0.5);
    animation:livePulse 2s ease infinite;
  }
  @keyframes livePulse{
    0%{ box-shadow:0 0 0 0 rgba(127,231,196,0.45); }
    70%{ box-shadow:0 0 0 8px rgba(127,231,196,0); }
    100%{ box-shadow:0 0 0 0 rgba(127,231,196,0); }
  }
  .compile-main{
    display:grid; grid-template-columns:148px minmax(0,1fr) minmax(200px,34%);
    gap:0; min-height:420px;
    border:1px solid var(--line); border-radius:14px;
    background:var(--bg-soft); overflow:hidden;
  }
  .compile-sidebar{
    border-right:1px solid var(--line); background:var(--panel);
    padding:14px 0; font-family:var(--mono); font-size:11px;
  }
  .sidebar-label{
    padding:0 14px 10px; font-size:10px; letter-spacing:1px;
    text-transform:uppercase; color:var(--muted);
  }
  .file-tree{ list-style:none; display:flex; flex-direction:column; gap:2px; }
  .file-tree li{
    padding:5px 14px; color:var(--muted); white-space:nowrap;
  }
  .file-tree .tree-folder{ color:var(--text); font-weight:600; }
  .file-tree .tree-file.indent{ padding-left:26px; }
  .file-tree .tree-file.active{
    color:var(--accent); background:rgba(127,231,196,0.08);
    border-right:2px solid var(--accent);
  }
  .compile-center{
    display:flex; flex-direction:column; min-width:0;
    border-right:1px solid var(--line);
  }
  .code-tabs{
    display:flex; gap:0; border-bottom:1px solid var(--line);
    background:var(--panel); overflow:hidden;
  }
  .code-tab{
    font-family:var(--mono); font-size:11px; color:var(--muted);
    padding:10px 14px; border-right:1px solid var(--line);
  }
  .code-tab.active{
    color:var(--text); background:var(--bg-soft);
    box-shadow:inset 0 -2px 0 var(--accent);
  }
  .code-editor{
    flex:1; min-height:0; border:none; border-radius:0;
    box-shadow:none; background:var(--bg-soft);
  }
  .compile-hint{
    font-family:var(--mono); font-size:11px; letter-spacing:1px;
    color:var(--muted); text-transform:uppercase; text-align:center;
    margin-top:14px;
  }

  /* hero */
  .hero{
    min-height:auto; display:flex; flex-direction:column; justify-content:center;
    padding-top:100px; padding-bottom:48px;
  }
  .code-block{
    margin:0; padding:16px 14px 12px; overflow:auto;
    font-family:var(--mono); font-size:11px; line-height:1.65; color:var(--muted);
    max-height:220px;
  }
  .code-line{ display:block; white-space:pre; transform-origin:left center; }
  body.compile-active .code-line{
    filter:grayscale(1) brightness(0.55);
    opacity:1;
  }
  .code-line .ln{
    display:inline-block; width:24px; color:var(--line); user-select:none;
  }
  .code-cursor{
    display:inline-block; width:7px; height:1.1em; margin-left:2px;
    background:var(--accent); vertical-align:text-bottom;
    animation:cursorBlink 1.1s step-end infinite;
  }
  @keyframes cursorBlink{ 0%,100%{opacity:1} 50%{opacity:0} }
  .c-kw{ color:var(--accent2); }
  .c-fn{ color:var(--accent); }
  .c-tag{ color:#e3b341; }
  .c-prop{ color:#9cdcfe; }
  .c-str{ color:#ce9178; }
  .c-accent{ color:var(--accent); }
  [data-theme="light"] .c-tag{ color:#b45309; }
  [data-theme="light"] .c-str{ color:#c2410c; }
  .compile-terminal{
    border-top:1px solid var(--line); background:var(--panel);
    padding:10px 14px 8px; font-family:var(--mono); font-size:10px;
  }
  .terminal-line{ color:var(--text); line-height:1.7; }
  .terminal-line.dim{ color:var(--muted); }
  .t-prompt{ color:var(--accent); margin-right:6px; }
  .compile-status{
    margin-top:6px; padding-top:8px; border-top:1px dashed var(--line);
    font-size:10px; color:var(--accent);
    min-height:1.7em;
  }
  .compile-preview{
    display:flex; flex-direction:column; background:var(--panel);
    min-height:0;
    opacity:0;
  }
  .preview-bar{
    display:flex; align-items:center; gap:10px;
    padding:10px 12px; border-bottom:1px solid var(--line);
    font-family:var(--mono); font-size:10px; color:var(--muted);
  }
  .preview-dots{ display:flex; gap:5px; }
  .preview-dots i{
    width:7px; height:7px; border-radius:50%; background:var(--line); display:block;
  }
  .preview-dots i:nth-child(1){ background:#ff6b6b; opacity:0.7; }
  .preview-dots i:nth-child(2){ background:#ffd166; opacity:0.7; }
  .preview-dots i:nth-child(3){ background:#7fe7c4; opacity:0.7; }
  .preview-url{ color:var(--muted); }
  .preview-canvas{
    flex:1; padding:20px 16px; display:flex; flex-direction:column; gap:14px;
    background:
      linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
      var(--bg);
    background-size:24px 24px, 24px 24px, auto;
    animation:previewShimmer 4s ease-in-out infinite;
  }
  @keyframes previewShimmer{
    0%,100%{ opacity:0.82; }
    50%{ opacity:1; }
  }
  .preview-eyebrow{
    width:42%; height:8px; border-radius:4px;
    background:linear-gradient(90deg, var(--accent), transparent);
    opacity:0.7;
  }
  .preview-title{ display:flex; flex-direction:column; gap:8px; opacity:0.45; transition:opacity 0.3s; }
  .preview-title span{
    display:block; height:14px; border-radius:4px; background:var(--line);
  }
  .preview-title span:nth-child(1){ width:88%; }
  .preview-title span:nth-child(2){ width:72%; }
  .preview-title span.accent{
    width:58%; background:linear-gradient(90deg, var(--accent), var(--accent2));
    opacity:0.85;
  }
  .preview-lead{ display:flex; flex-direction:column; gap:6px; margin-top:4px; }
  .preview-lead span{
    display:block; height:7px; border-radius:3px; background:var(--line); opacity:0.55;
  }
  .preview-lead span:nth-child(1){ width:95%; }
  .preview-lead span:nth-child(2){ width:80%; }
  .preview-lead span:nth-child(3){ width:62%; }
  .preview-btns{ display:flex; gap:8px; margin-top:8px; opacity:0.4; }
  .preview-btns span{
    height:28px; border-radius:6px; border:1px solid var(--line);
    background:rgba(255,255,255,0.02);
  }
  .preview-btns span.fill{
    width:72px; background:var(--accent); border-color:var(--accent); opacity:0.75;
  }
  .preview-btns span:nth-child(2){ width:80px; }
  .preview-btns span:nth-child(3){ width:64px; }
  .preview-pills{ display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:12px; opacity:0.35; }
  .preview-title.is-live, .preview-btns.is-live, .preview-pills.is-live{ opacity:1; }
  .preview-pills span{
    width:54px; height:22px; border-radius:999px;
    border:1px solid var(--line); background:rgba(255,255,255,0.03);
  }

  section + section{ padding-top:48px; }
  .eyebrow{
    font-family:var(--mono); color:var(--accent); font-size:13px; letter-spacing:3px;
    text-transform:uppercase; margin-bottom:24px;
  }
  .hero h1{
    font-size:clamp(2.8rem, 8vw, 5.5rem); font-weight:800; line-height:1.05;
    letter-spacing:-0.02em; margin-bottom:24px;
  }
  .hero h1 .accent{
    background:linear-gradient(120deg, var(--accent), var(--accent2));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero p.lead{
    font-size:clamp(1rem, 2vw, 1.25rem); color:var(--muted); max-width:620px;
    margin-bottom:40px;
  }
  .hero-cta{
    display:flex; gap:16px; flex-wrap:wrap;
  }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 28px; border-radius:8px; text-decoration:none;
    font-weight:600; font-size:14px; transition:all 0.25s; border:1px solid transparent;
  }
  .btn-primary{ background:var(--accent); color:var(--btn-on-accent); }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(127,231,196,0.25); }
  .btn-ghost{ border-color:var(--line); color:var(--text); }
  .btn-ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

  @keyframes fadeUp{
    from{opacity:0; transform:translateY(32px);}
    to{opacity:1; transform:translateY(0);}
  }

  /* stack pills */
  .stack-row, .stack-pills{
    display:flex; flex-wrap:wrap; gap:10px;
  }
  .hero .stack-row{
    margin-top:48px;
  }

  /* logo strip */
  .logo-strip-section{
    padding-top:32px; padding-bottom:32px;
    max-width:1100px; margin:0 auto;
  }
  .logo-strip-label{
    font-family:var(--mono); font-size:11px; letter-spacing:2px;
    text-transform:uppercase; color:var(--muted); text-align:center;
    margin-bottom:20px;
  }
  .logo-strip{
    position:relative; overflow:hidden;
    mask-image:linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image:linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }
  .logo-strip-track{
    display:flex; align-items:center;
    width:max-content;
    will-change:transform;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    animation:none;
  }
  .logo-strip.is-ready .logo-strip-track{
    animation:logoStripScroll var(--marquee-duration, 16s) linear infinite;
  }
  .logo-strip:hover .logo-strip-track{ animation-play-state:paused; }
  .logo-strip-group{
    display:flex; align-items:center; gap:48px;
    flex-shrink:0;
  }
  .logo-strip-item{
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; height:40px; min-width:80px; max-width:140px;
    opacity:0.88;
    transition:opacity 0.25s, transform 0.25s;
  }
  a.logo-strip-item{ text-decoration:none; }
  .logo-strip-item:hover{ opacity:1; transform:scale(1.04); }
  .logo-strip-img{
    display:block; width:auto; height:28px; max-width:120px;
    object-fit:contain; object-position:center;
  }
  [data-theme="light"] .logo-strip-item{ opacity:0.82; }
  [data-theme="light"] .logo-strip-item:hover{ opacity:1; }
  @keyframes logoStripScroll{
    from{ transform:translate3d(0, 0, 0); }
    to{ transform:translate3d(calc(-1 * var(--marquee-distance)), 0, 0); }
  }
  @media (prefers-reduced-motion:reduce){
    .logo-strip{ mask-image:none; -webkit-mask-image:none; overflow:visible; }
    .logo-strip-track{
      flex-wrap:wrap; justify-content:center;
      width:100%; gap:28px 40px;
      animation:none !important;
    }
    .logo-strip-group{ flex-wrap:wrap; justify-content:center; gap:28px 40px; }
    .logo-strip-group[aria-hidden="true"]{ display:none; }
    .logo-strip-item{ opacity:0.9; }
  }

  .stack-groups{ display:flex; flex-direction:column; gap:28px; }
  .stack-group h3{
    font-family:var(--mono); font-size:12px; letter-spacing:2px; text-transform:uppercase;
    color:var(--accent2); margin-bottom:14px;
  }
  .build-grid{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:14px;
  }
  .build-card{
    border:1px solid var(--line); border-radius:12px; padding:24px;
    background:var(--bg-soft); transition:border-color 0.25s, transform 0.25s;
  }
  .build-card:hover{ border-color:rgba(127,231,196,0.35); transform:translateY(-2px); }
  .build-card h3{ font-size:1rem; font-weight:600; margin-bottom:8px; }
  .build-card p{ font-size:0.9rem; color:var(--muted); }
  .learning-list{
    border:1px dashed var(--line); border-radius:12px; padding:28px 32px;
    background:rgba(122,162,255,0.03);
  }
  .learning-list ul{
    list-style:none; display:flex; flex-direction:column; gap:10px; margin-top:16px;
  }
  .learning-list li{
    font-size:0.95rem; color:var(--muted); padding-left:20px; position:relative;
  }
  .learning-list li::before{
    content:'◦'; position:absolute; left:0; color:var(--accent2); font-size:18px; line-height:1;
  }
  .pill{
    display:inline-flex; align-items:center; gap:8px;
    font-family:var(--mono); font-size:12px; padding:8px 14px 8px 10px;
    border:1px solid var(--line); border-radius:999px; color:var(--muted);
    background:rgba(255,255,255,0.02); transition:all 0.25s;
  }
  .pill img{
    width:18px; height:18px; flex-shrink:0; opacity:0.9;
    filter:drop-shadow(0 0 6px rgba(255,255,255,0.08));
    transition:transform 0.25s;
  }
  .pill:hover{
    border-color:var(--accent2); color:var(--text);
    background:rgba(122,162,255,0.06); transform:translateY(-2px);
  }
  .pill:hover img{ transform:scale(1.1); opacity:1; }
  [data-theme="light"] .pill img[src*="ffffff"]{ filter:brightness(0.15); }

  /* section headers */
  .section-head{ margin-bottom:40px; }
  .section-head .num{
    font-family:var(--mono); color:var(--accent); font-size:13px; letter-spacing:3px;
    text-transform:uppercase; display:block; margin-bottom:12px;
  }
  .section-head h2{ font-size:clamp(1.8rem, 4vw, 2.6rem); font-weight:700; letter-spacing:-0.01em; }
  .section-head p{ color:var(--muted); margin-top:12px; max-width:600px; }

  /* fade-in on scroll */
  .reveal{
    opacity:0; transform:translateY(28px);
    transition:opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal.visible{ opacity:1; transform:translateY(0); }
  .stagger > *{
    opacity:0; transform:translateY(24px);
    transition:opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
  }
  .stagger.visible > *{ opacity:1; transform:translateY(0); }

  /* projects */
  .projects{ display:flex; flex-direction:column; gap:18px; }
  .project{
    background:var(--bg-soft); border:1px solid var(--line); border-radius:14px;
    display:grid; grid-template-columns:minmax(0,340px) 1fr; gap:0;
    position:relative; overflow:hidden; transition:border-color 0.3s, box-shadow 0.3s;
  }
  .project:hover{
    border-color:rgba(127,231,196,0.35);
    box-shadow:0 20px 50px rgba(0,0,0,0.35);
  }
  .project-shot{
    position:relative; overflow:hidden; background:var(--panel);
    border-right:1px solid var(--line); min-height:220px;
  }
  .project-shot img{
    width:100%; height:100%; object-fit:cover; object-position:top center;
    display:block; transition:transform 0.5s ease, opacity 0.3s; opacity:0.92;
  }
  .project:hover .project-shot img{ transform:scale(1.04); opacity:1; }
  .project-shot::after{
    content:''; position:absolute; inset:0; pointer-events:none;
    background:linear-gradient(135deg, rgba(127,231,196,0.08), transparent 50%);
  }
  .project-body{
    padding:32px 36px; display:flex; flex-direction:column;
    position:relative;
  }
  .project-body::before{
    content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
    background:linear-gradient(var(--accent), var(--accent2));
    transform:scaleY(0); transform-origin:top; transition:transform 0.35s ease;
  }
  .project:hover .project-body::before{ transform:scaleY(1); }
  .project .pnum{
    font-family:var(--mono); color:var(--accent); font-size:12px;
    letter-spacing:2px; margin-bottom:10px;
  }
  .project h3{ font-size:1.25rem; font-weight:700; margin-bottom:10px; }
  .project p{ color:var(--muted); font-size:0.93rem; line-height:1.65; flex:1; }
  .project .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
  .project .tags span{
    font-family:var(--mono); font-size:11px; color:var(--accent2);
    border:1px solid rgba(122,162,255,0.25); background:rgba(122,162,255,0.06);
    padding:4px 10px; border-radius:6px;
  }
  .project .link{
    align-self:flex-start; margin-top:20px; color:var(--muted); text-decoration:none; font-size:13px;
    border:1px solid var(--line); padding:8px 14px; border-radius:8px; white-space:nowrap;
    transition:all 0.2s; font-family:var(--mono);
  }
  .project .link:hover{ border-color:var(--accent); color:var(--accent); }
  @media (max-width:860px){
    .project{ grid-template-columns:1fr; }
    .project-shot{ min-height:200px; border-right:none; border-bottom:1px solid var(--line); }
  }

  /* sites grid */
  .sites-grid{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:16px;
  }
  .site-card{
    border:1px solid var(--line); border-radius:12px; padding:0;
    text-decoration:none; color:var(--text); background:var(--bg-soft);
    transition:all 0.3s; display:flex; flex-direction:column;
    position:relative; overflow:hidden;
  }
  .site-thumb{
    aspect-ratio:16/10; overflow:hidden; background:var(--panel);
    border-bottom:1px solid var(--line); position:relative;
  }
  .site-thumb img{
    width:100%; height:100%; object-fit:cover; object-position:top center;
    transition:transform 0.45s ease, opacity 0.3s; opacity:0.9;
  }
  .site-card:hover .site-thumb img{ transform:scale(1.06); opacity:1; }
  .site-card .site-info{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:6px; }
  .site-card::after{
    content:'↗'; position:absolute; top:14px; right:14px; z-index:2;
    width:28px; height:28px; border-radius:8px; line-height:28px; text-align:center;
    background:var(--site-card-overlay); backdrop-filter:blur(6px);
    color:var(--muted); font-size:13px; transition:all 0.3s;
  }
  .site-card:hover{ transform:translateY(-4px); border-color:var(--accent); box-shadow:0 12px 30px rgba(0,0,0,0.35); }
  .site-card:hover::after{ color:var(--accent); background:var(--site-card-overlay); }
  .site-card .url{ font-family:var(--mono); font-size:13px; font-weight:600; }
  .site-card .desc{ font-size:12px; color:var(--muted); line-height:1.45; }

  .more-note{
    margin-top:28px; text-align:center; color:var(--muted); font-size:14px;
    font-family:var(--mono); border:1px dashed var(--line); border-radius:10px; padding:18px;
  }
  .more-note strong{ color:var(--accent); }

  /* timeline / experience */
  .exp-item{ display:flex; gap:24px; padding:28px 0; border-bottom:1px solid var(--line); }
  .exp-item:last-child{ border-bottom:none; }
  .exp-dot{ width:12px; height:12px; border-radius:50%; background:var(--accent); margin-top:8px; flex-shrink:0; box-shadow:0 0 0 4px rgba(127,231,196,0.12); }
  .exp-content h4{ font-size:1.1rem; font-weight:700; margin-bottom:4px; }
  .exp-content .role{ color:var(--accent2); font-size:13px; font-family:var(--mono); margin-bottom:8px; display:block; }
  .exp-content p{ color:var(--muted); font-size:0.95rem; }
  .exp-content .highlights{
    margin-top:12px; padding-left:0; list-style:none;
    display:flex; flex-direction:column; gap:6px;
  }
  .exp-content .highlights li{
    font-size:0.9rem; color:var(--muted); padding-left:16px; position:relative;
  }
  .exp-content .highlights li::before{
    content:'→'; position:absolute; left:0; color:var(--accent); font-size:12px;
  }

  /* contact */
  #contact .section-head{ text-align:center; }
  #contact .section-head p{ margin-left:auto; margin-right:auto; }
  .contact-wrap{
    max-width:720px; margin:0 auto; text-align:center;
  }
  .contact-wrap .lead-contact{
    color:var(--muted); font-size:1.05rem; margin-bottom:36px;
  }
  .contact-links{
    display:flex; flex-wrap:wrap; justify-content:center; gap:14px;
    margin-bottom:40px;
  }
  .contact-card{
    display:inline-flex; align-items:center; gap:12px;
    padding:16px 22px; border:1px solid var(--line); border-radius:12px;
    background:var(--bg-soft); text-decoration:none; color:var(--text);
    font-size:14px; font-weight:500; transition:all 0.25s;
    min-width:min(100%, 300px);
  }
  .contact-card:hover{
    border-color:var(--accent); transform:translateY(-3px);
    box-shadow:0 12px 32px rgba(0,0,0,0.3);
  }
  .contact-card .icon-wrap{
    width:40px; height:40px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(127,231,196,0.1); flex-shrink:0;
  }
  .contact-card .icon-wrap img,
  .contact-card .icon-wrap svg{ width:22px; height:22px; }
  .contact-card.contact-note{
    cursor:default; color:var(--muted);
  }
  .contact-card.contact-note:hover{
    border-color:var(--line); transform:none; box-shadow:none;
  }
  .contact-card.contact-note .icon-wrap{
    background:rgba(255,255,255,0.05); color:var(--muted);
  }
  .contact-card.contact-note .meta .value{
    color:var(--text); font-size:12px; max-width:280px;
  }
  .contact-card .meta{ text-align:left; line-height:1.35; }
  .contact-card .meta .label{
    display:block; font-family:var(--mono); font-size:11px;
    color:var(--muted); text-transform:uppercase; letter-spacing:1px;
  }
  .contact-card .meta .value{
    font-family:var(--mono); font-size:13px; color:var(--accent);
  }

  /* footer */
  footer{
    padding:36px 48px 48px; text-align:center; border-top:1px solid var(--line);
    color:var(--muted); font-size:13px; font-family:var(--mono);
  }
  footer a{ color:var(--accent); text-decoration:none; transition:opacity 0.2s; }
  footer a:hover{ opacity:0.8; }

  ::selection{ background:var(--accent); color:var(--btn-on-accent); }

  .nav-backdrop, .nav-drawer{ display:none; }

  @media (max-width:960px){
    .compile-main{ grid-template-columns:minmax(0,1fr) minmax(160px,36%); }
    .compile-sidebar{ display:none; }
  }

  @media (max-width:768px){
    .nav-links--desktop{ display:none; }
    nav{
      padding:14px 20px; z-index:300;
      gap:12px;
    }
    body.menu-open nav{
      background:var(--bg); border-bottom-color:var(--line);
    }
    .nav-toggle{ display:flex; }
    .nav-backdrop{
      display:block; position:fixed; inset:0; z-index:200;
      background:var(--bg);
      opacity:0; visibility:hidden; pointer-events:none;
      transition:opacity 0.25s ease, visibility 0.25s ease;
    }
    .nav-drawer{
      display:block; position:fixed; inset:0; z-index:250;
      padding:88px 24px 32px;
      background:var(--bg);
      transform:translateY(-12px);
      opacity:0; visibility:hidden; pointer-events:none;
      transition:opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }
    body.menu-open .nav-backdrop{
      opacity:1; visibility:visible; pointer-events:auto;
    }
    body.menu-open .nav-drawer{
      opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0);
    }
    .nav-drawer .nav-links{
      flex-direction:column; gap:0; align-items:stretch;
    }
    .nav-drawer .nav-links li{ border-bottom:1px solid var(--line); }
    .nav-drawer .nav-links li:first-child{ border-top:1px solid var(--line); }
    .nav-drawer .nav-links a{
      display:block; padding:18px 4px; font-size:1.05rem;
    }
    .nav-drawer .nav-links a::after{ display:none; }
    .nav-drawer .nav-links a:hover{ color:var(--accent); }

    .nav-end{ gap:10px; }
    .theme-toggle{ width:36px; height:36px; }
    section{ padding:48px 20px; }
    .compile-scroll-track{
      padding:0 16px;
      height:calc(100vh + 60vh);
    }
    .compile-sticky{
      padding:72px 0 24px;
    }
    .compile-stage{
      padding:8px;
      border-radius:12px;
    }
    .compile-topbar{
      flex-wrap:wrap;
      gap:6px 12px;
      font-size:10px;
    }
    .compile-meta{
      flex-wrap:wrap;
      gap:8px;
    }
    .compile-main{
      grid-template-columns:1fr;
      min-height:auto;
      border-radius:10px;
    }
    .compile-sidebar, .compile-preview{ display:none; }
    .compile-center{ border-right:none; }
    .code-tabs .code-tab{ padding:8px 10px; font-size:10px; }
    .code-block{
      max-height:200px;
      font-size:10px;
      -webkit-overflow-scrolling:touch;
    }
    .compile-terminal{ font-size:9px; }
    .compile-hint{ font-size:10px; margin-top:10px; }
    .hero{ padding-top:100px; padding-bottom:32px; }
    .eyebrow{ font-size:11px; letter-spacing:2px; }
    .hero p.lead{ margin-bottom:28px; }
    .hero-cta{ gap:10px; }
    .hero-cta .btn{ flex:1 1 calc(50% - 5px); justify-content:center; padding:12px 16px; font-size:13px; }
    .hero .stack-row{ margin-top:28px; }
    .logo-strip-section{ padding:24px 20px; }
    .logo-strip-group{ gap:36px; }
    .logo-strip-img{ height:24px; max-width:100px; }
    .section-head{ margin-bottom:32px; }
    .section-head h2{ font-size:1.65rem; }
    .project-body{ padding:24px 20px; }
    .project-shot{ min-height:180px; }
    .project h3{ font-size:1.1rem; }
    .sites-grid{ grid-template-columns:1fr; gap:12px; }
    .build-grid{ grid-template-columns:1fr; }
    .contact-card{ min-width:100%; }
    .contact-card .meta .value{ font-size:11px; word-break:break-all; }
    .learning-list{ padding:22px 20px; }
    footer{ padding:28px 20px 36px; }
  }

  @media (max-width:400px){
    .logo-text{ display:none; }
    .hero-cta .btn{ flex:1 1 100%; }
    .contact-links{ flex-direction:column; }
  }

  /* pricing signal */
  .pricing-wrap{
    display:flex; flex-direction:column; align-items:flex-start; gap:10px;
  }
  .hero .pricing-wrap{
    margin-top:18px;
  }
  .pricing-wrap--contact, .pricing-wrap--center{
    align-items:center; text-align:center; margin-bottom:36px;
  }
  .pricing-note{
    font-family:var(--mono); font-size:13px; color:var(--muted); margin:0;
  }
  .pricing-note strong{ color:var(--accent); font-weight:600; }
  .pricing-note a{ color:var(--accent2); text-decoration:none; }
  .pricing-note a:hover{ text-decoration:underline; }
  .currency-toggle{
    font-family:var(--mono); font-size:11px; letter-spacing:0.4px;
    padding:6px 14px; border-radius:999px;
    border:1px solid var(--line); background:var(--bg-soft);
    color:var(--muted); cursor:pointer; transition:all 0.2s;
  }
  .currency-toggle:hover{
    border-color:var(--accent); color:var(--accent);
  }
  .currency-toggle[aria-pressed="true"]{
    border-color:var(--accent2); color:var(--accent2);
    background:rgba(127,231,196,0.08);
  }

  /* testimonials */
  .testimonials{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:16px;
  }
  .quote-card{
    border:1px solid var(--line); border-radius:14px; padding:28px;
    background:var(--bg-soft); position:relative;
  }
  .quote-card::before{
    content:'"'; position:absolute; top:12px; left:18px;
    font-size:3rem; line-height:1; color:var(--accent); opacity:0.25;
    font-family:Georgia, serif;
  }
  .quote-card blockquote{
    font-size:0.95rem; color:var(--text); line-height:1.65;
    margin:0 0 20px; padding-top:8px;
  }
  .quote-card cite{
    display:block; font-style:normal; font-family:var(--mono); font-size:12px;
  }
  .quote-card cite .name{ color:var(--accent2); display:block; margin-bottom:4px; }
  .quote-card cite .role{ color:var(--muted); }

  /* github repos */
  .repo-grid{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:14px;
  }
  .repo-card{
    border:1px solid var(--line); border-radius:12px; padding:22px;
    background:var(--bg-soft); text-decoration:none; color:var(--text);
    transition:all 0.25s; display:flex; flex-direction:column; gap:10px;
  }
  .repo-card:hover{
    border-color:var(--accent); transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(0,0,0,0.3);
  }
  .repo-card .repo-name{
    font-family:var(--mono); font-size:14px; font-weight:600;
    display:flex; align-items:center; gap:8px;
  }
  .repo-card .repo-name img{ width:16px; height:16px; opacity:0.8; }
  .repo-card p{ font-size:0.88rem; color:var(--muted); flex:1; }
  .repo-card .repo-meta{
    font-family:var(--mono); font-size:11px; color:var(--accent2);
  }
  .contact-card.linkedin .icon-wrap{ background:rgba(10,102,194,0.12); }

  /* work page */
  .page-hero{
    padding-top:120px; padding-bottom:24px; min-height:auto;
  }
  .page-hero h1{
    font-size:clamp(2rem, 5vw, 3rem); font-weight:800; margin-bottom:12px;
  }
  .page-hero p{ color:var(--muted); max-width:560px; }

  .work-teaser{
    display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:14px;
  }
  .work-teaser-card{
    border:1px solid var(--line); border-radius:12px; overflow:hidden;
    background:var(--bg-soft); text-decoration:none; color:var(--text);
    transition:all 0.25s;
  }
  .work-teaser-card:hover{ border-color:var(--accent); transform:translateY(-3px); }
  .work-teaser-card img{ width:100%; aspect-ratio:16/10; object-fit:cover; object-position:top; display:block; }
  .work-teaser-card .info{ padding:16px 18px; }
  .work-teaser-card h3{ font-size:1rem; margin-bottom:6px; }
  .work-teaser-card p{ font-size:0.85rem; color:var(--muted); }

  .footer-links{
    margin-top:10px; display:flex; flex-wrap:wrap; justify-content:center; gap:16px;
  }
  .footer-links a{ color:var(--muted); text-decoration:none; font-size:12px; }
  .footer-links a:hover{ color:var(--accent); }

  .nav-links a.active{ color:var(--accent); }
