
    :root {
      --bg: #0c1219;
      --bg-elev: #121a24;
      --card: #171f2b;
      --card-hover: #1c2531;
      --border: #263140;
      --border-soft: #1e2733;
      --text: #e8edf3;
      --text-dim: #90a0b3;
      --text-faint: #5c6b7e;
      --accent: #e5a54a;
      --accent-dim: #7a6339;
      --teal: #4bb08a;
      --rose: #d9695c;
      --radius: 10px;
      --display: 'Space Grotesk', sans-serif;
      --body: 'Inter', sans-serif;
      --mono: 'JetBrains Mono', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--body);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      cursor: default;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
      background-size: 64px 64px;
      opacity: 0.35;
      pointer-events: none;
      z-index: 0;
      -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
      mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 20%), rgba(229, 165, 74, 0.08), transparent 70%);
      transition: background-position .05s linear;
    }

    /* scroll progress bar */
    #progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      width: 0%;
      background: linear-gradient(90deg, var(--teal), var(--accent));
      z-index: 100;
      transition: width .08s linear;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .wrap {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 32px;
      position: relative;
      z-index: 1;
    }

    section {
      position: relative;
      z-index: 1;
    }

    h1,
    h2,
    h3 {
      font-family: var(--display);
      font-weight: 600;
      letter-spacing: -0.01em;
    }

    .mono {
      font-family: var(--mono);
    }

    ::selection {
      background: var(--accent);
      color: #0c1219;
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 4px;
    }

    /* ---------- NAV ---------- */
    nav {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(12, 18, 25, 0.82);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border-soft);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 32px;
      max-width: 1140px;
      margin: 0 auto;
    }

    .brand {
      font-family: var(--mono);
      font-size: 14px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .brand .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 0 3px rgba(75, 176, 138, 0.15);
    }

    .nav-links {
      display: flex;
      gap: 34px;
      font-size: 14px;
      color: var(--text-dim);
    }

    .nav-links a {
      transition: color .15s;
      position: relative;
      padding-bottom: 3px;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      height: 1px;
      width: 0;
      background: var(--accent);
      transition: width .25s ease;
    }

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

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-cta {
      font-family: var(--mono);
      font-size: 12.5px;
      color: var(--bg);
      background: var(--accent);
      padding: 9px 16px;
      border-radius: 6px;
      border: 1px solid var(--accent);
      transition: transform .15s, box-shadow .15s;
    }

    .nav-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(229, 165, 74, 0.25);
    }

    .nav-toggle {
      display: none;
      background: none;
      border: 1px solid var(--border);
      color: var(--text);
      width: 36px;
      height: 36px;
      border-radius: 6px;
      font-size: 16px;
    }

    /* ---------- HERO ---------- */
    .hero {
      padding: 88px 0 60px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 48px;
      align-items: center;
    }

    @keyframes riseIn {
      from {
        opacity: 0;
        transform: translateY(22px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .load-item {
      opacity: 0;
      animation: riseIn .7s cubic-bezier(.2, .7, .2, 1) forwards;
    }

    .load-item.d1 {
      animation-delay: .05s;
    }

    .load-item.d2 {
      animation-delay: .16s;
    }

    .load-item.d3 {
      animation-delay: .27s;
    }

    .load-item.d4 {
      animation-delay: .38s;
    }

    .load-item.d5 {
      animation-delay: .49s;
    }

    .load-item.d6 {
      animation-delay: .6s;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 12.5px;
      color: var(--teal);
      border: 1px solid rgba(75, 176, 138, 0.35);
      background: rgba(75, 176, 138, 0.07);
      padding: 6px 12px;
      border-radius: 100px;
      margin-bottom: 22px;
    }

    .eyebrow .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--teal);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.35;
      }
    }

    .hero h1 {
      font-size: 52px;
      line-height: 1.05;
      color: var(--text);
    }

    .hero h1 span {
      color: var(--accent);
    }

    .hero .role {
      font-family: var(--mono);
      font-size: 15px;
      color: var(--text-dim);
      margin: 18px 0 22px;
      letter-spacing: 0.01em;
    }

    .hero p.desc {
      color: var(--text-dim);
      font-size: 15.5px;
      max-width: 520px;
      margin-bottom: 32px;
    }

    .hero-ctas {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 44px;
    }

    .btn {
      font-family: var(--mono);
      font-size: 13.5px;
      padding: 12px 22px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all .18s;
    }

    .btn-primary {
      background: var(--accent);
      color: #0c1219;
      font-weight: 500;
      transition: transform .18s ease, box-shadow .18s ease;
    }

    .btn-primary:hover {
      box-shadow: 0 10px 26px rgba(229, 165, 74, 0.28);
    }

    .btn-ghost {
      border: 1px solid var(--border);
      color: var(--text);
      transition: transform .18s ease, border-color .18s, color .18s;
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .stat-row {
      display: flex;
      gap: 38px;
      flex-wrap: wrap;
    }

    .stat b {
      display: block;
      font-family: var(--display);
      font-size: 26px;
      color: var(--text);
    }

    .stat span {
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--text-faint);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    /* ---------- ARCHITECTURE DIAGRAM ---------- */
    .diagram-frame {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 20px;
      position: relative;
    }

    .diagram-frame .frame-label {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-faint);
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .diagram-frame .frame-label .lights span {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--border);
      margin-left: 5px;
    }

    #arch-svg {
      width: 100%;
      height: auto;
      display: block;
    }

    .node-box {
      fill: var(--card);
      stroke: var(--border);
      stroke-width: 1;
    }

    .node-label {
      font-family: var(--mono);
      fill: var(--text);
      font-size: 12px;
    }

    .node-sub {
      font-family: var(--mono);
      fill: var(--text-faint);
      font-size: 9.5px;
    }

    .flow-line {
      fill: none;
      stroke: var(--accent);
      stroke-width: 1.6;
      stroke-dasharray: 5 5;
      opacity: 0.75;
      animation: flow 1.6s linear infinite;
    }

    .flow-line.teal {
      stroke: var(--teal);
    }

    @keyframes flow {
      to {
        stroke-dashoffset: -20;
      }
    }

    .ping {
      fill: var(--teal);
      animation: pulse 2s infinite;
    }

    /* ---------- SECTION HEADERS ---------- */
    .section-pad {
      padding: 100px 0;
    }

    .section-head {
      margin-bottom: 52px;
      max-width: 640px;
    }

    .section-head .tag {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--accent);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 12px;
      display: block;
    }

    .section-head h2 {
      font-size: 32px;
      color: var(--text);
      margin-bottom: 14px;
    }

    .section-head p {
      color: var(--text-dim);
      font-size: 15px;
    }

    .divider {
      border: none;
      border-top: 1px solid var(--border-soft);
    }

    /* ---------- STACK (SKILLS) ---------- */
    .stack {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
    }

    .stack-layer {
      display: grid;
      grid-template-columns: 220px 1fr;
      border-bottom: 1px solid var(--border-soft);
      background: var(--bg-elev);
      transition: background .2s;
    }

    .stack-layer:last-child {
      border-bottom: none;
    }

    .stack-layer:hover {
      background: var(--card-hover);
    }

    .layer-meta {
      padding: 24px 26px;
      border-right: 1px solid var(--border-soft);
    }

    .layer-meta .layer-index {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-faint);
    }

    .layer-meta h3 {
      font-size: 17px;
      color: var(--text);
      margin-top: 6px;
    }

    .layer-items {
      padding: 24px 26px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-content: center;
    }

    .pill {
      font-family: var(--mono);
      font-size: 12.5px;
      color: var(--text-dim);
      border: 1px solid var(--border);
      padding: 6px 12px;
      border-radius: 6px;
      transition: all .15s;
    }

    .pill:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ---------- PROJECTS ---------- */
    .projects-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
    }

    .proj-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 28px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: transform .15s ease-out, border-color .2s, box-shadow .2s;
    }

    .proj-card:hover {
      border-color: var(--accent-dim);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    }

    .proj-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .proj-top h3 {
      font-size: 19px;
      color: var(--text);
    }

    .status-chip {
      font-family: var(--mono);
      font-size: 10.5px;
      color: var(--teal);
      border: 1px solid rgba(75, 176, 138, 0.3);
      background: rgba(75, 176, 138, 0.06);
      padding: 4px 9px;
      border-radius: 100px;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .status-chip .dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--teal);
    }

    .proj-card.sos .status-chip {
      color: var(--rose);
      border-color: rgba(217, 105, 92, 0.3);
      background: rgba(217, 105, 92, 0.06);
    }

    .proj-card.sos .status-chip .dot {
      background: var(--rose);
    }

    .proj-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .proj-stack span {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-faint);
      border: 1px solid var(--border-soft);
      padding: 3px 8px;
      border-radius: 5px;
    }

    .proj-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .proj-list li {
      font-size: 13.8px;
      color: var(--text-dim);
      padding-left: 16px;
      position: relative;
    }

    .proj-list li::before {
      content: '→';
      position: absolute;
      left: 0;
      color: var(--accent);
      font-family: var(--mono);
    }

    .proj-link {
      margin-top: auto;
      padding-top: 14px;
      border-top: 1px solid var(--border-soft);
      font-family: var(--mono);
      font-size: 12.5px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .proj-link svg {
      width: 13px;
      height: 13px;
      transition: transform .15s;
    }

    .proj-card:hover .proj-link svg {
      transform: translate(2px, -2px);
    }

    /* ---------- MORE REPOS ---------- */
    .repo-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .repo-card {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px 22px;
      transition: transform .18s ease, border-color .2s, box-shadow .2s;
    }

    .repo-card:hover {
      transform: translateY(-3px);
      border-color: var(--accent-dim);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    }

    .repo-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .repo-top a {
      font-family: var(--mono);
      font-size: 14.5px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .repo-top a:hover {
      color: var(--accent);
    }

    .repo-top a svg {
      width: 13px;
      height: 13px;
      opacity: 0;
      transition: opacity .15s, transform .15s;
      flex-shrink: 0;
    }

    .repo-top a:hover svg {
      opacity: 1;
      transform: translate(2px, -2px);
    }

    .repo-badge {
      font-family: var(--mono);
      font-size: 9.5px;
      color: var(--text-faint);
      border: 1px solid var(--border-soft);
      padding: 2px 8px;
      border-radius: 100px;
      white-space: nowrap;
    }

    .repo-desc {
      font-size: 13px;
      color: var(--text-dim);
      margin-bottom: 14px;
      min-height: 18px;
    }

    .repo-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--text-faint);
    }

    .lang-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .lang-dart {
      background: #4bb08a;
    }

    .lang-css {
      background: #8f7fe0;
    }

    .lang-html {
      background: #e2734c;
    }

    .lang-js {
      background: #e2c94c;
    }

    .repo-more {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 13px;
      color: var(--text-dim);
      border: 1px dashed var(--border);
      border-radius: 12px;
      padding: 20px;
      transition: border-color .2s, color .2s;
    }

    .repo-more:hover {
      border-color: var(--accent);
      color: var(--accent);
    }


    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
    }

    .info-card {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 28px;
    }

    .info-card h3 {
      font-size: 16px;
      color: var(--accent);
      margin-bottom: 18px;
      font-family: var(--mono);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .achieve-item {
      display: flex;
      gap: 14px;
      margin-bottom: 18px;
    }

    .achieve-item:last-child {
      margin-bottom: 0;
    }

    .achieve-item .idx {
      font-family: var(--mono);
      color: var(--text-faint);
      font-size: 12px;
      padding-top: 2px;
    }

    .achieve-item p {
      font-size: 14px;
      color: var(--text-dim);
    }

    .achieve-item strong {
      color: var(--text);
    }

    .edu-card {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 32px;
    }

    .edu-card.spaced {
      margin-bottom: 22px;
    }

    .more-builds {
      margin-top: 64px;
    }

    .section-head.compact {
      margin-bottom: 32px;
    }

    .section-head.compact h2 {
      font-size: 24px;
    }

    .edu-top {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 6px;
    }

    .edu-top h3 {
      font-size: 19px;
      color: var(--text);
    }

    .edu-gpa {
      font-family: var(--mono);
      color: var(--accent);
      font-size: 14px;
    }

    .edu-sub {
      color: var(--text-dim);
      font-size: 14px;
      margin-bottom: 6px;
    }

    .edu-dates {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-faint);
      margin-bottom: 18px;
    }

    .edu-course {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .edu-course span {
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--text-dim);
      border: 1px solid var(--border-soft);
      padding: 5px 10px;
      border-radius: 6px;
    }

    .cert-list {
      list-style: none;
    }

    .cert-list li {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid var(--border-soft);
      font-size: 14px;
      color: var(--text-dim);
    }

    .cert-list li:last-child {
      border-bottom: none;
    }

    .cert-list strong {
      color: var(--text);
      font-weight: 500;
    }

    .cert-list span {
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--text-faint);
    }

    /* ---------- CONTACT / FOOTER ---------- */
    .contact {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 64px 48px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .contact h2 {
      font-size: 34px;
      margin-bottom: 14px;
    }

    .contact p {
      color: var(--text-dim);
      max-width: 460px;
      margin: 0 auto 32px;
    }

    .contact-links {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .contact-links a {
      font-family: var(--mono);
      font-size: 13.5px;
      color: var(--text);
      border: 1px solid var(--border);
      padding: 11px 20px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all .15s;
      background: var(--card);
    }

    .contact-links a:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-2px);
    }

    footer {
      padding: 36px 0 60px;
      text-align: center;
    }

    footer p {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-faint);
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px) scale(.98);
      transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    }

    .reveal.in {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .proj-card {
      transform-style: preserve-3d;
      will-change: transform;
    }

    .proj-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 14px;
      background: radial-gradient(220px circle at var(--px, 50%) var(--py, 50%), rgba(229, 165, 74, 0.12), transparent 60%);
      opacity: 0;
      transition: opacity .3s ease;
      pointer-events: none;
    }

    .proj-card:hover::before {
      opacity: 1;
    }

    .proj-card {
      position: relative;
    }

    .magnetic {
      will-change: transform;
    }

    #arch-svg .node-box {
      opacity: 0;
      transform-origin: center;
      animation: nodeIn .5s ease forwards;
    }

    #arch-svg .node-box.delay-1 { animation-delay: .1s; }
    #arch-svg .node-box.delay-2 { animation-delay: .2s; }
    #arch-svg .node-box.delay-3 { animation-delay: .35s; }
    #arch-svg .node-box.delay-4 { animation-delay: .5s; }
    #arch-svg .node-box.delay-5 { animation-delay: .55s; }
    #arch-svg .node-box.delay-6 { animation-delay: .4s; }

    #arch-svg .node-label,
    #arch-svg .node-sub {
      opacity: 0;
      animation: fadeText .4s ease forwards;
    }

    #arch-svg .node-label.delay-1,
    #arch-svg .node-sub.delay-1 { animation-delay: .35s; }
    #arch-svg .node-label.delay-2,
    #arch-svg .node-sub.delay-2 { animation-delay: .4s; }
    #arch-svg .node-label.delay-3,
    #arch-svg .node-sub.delay-3 { animation-delay: .45s; }
    #arch-svg .node-label.delay-4,
    #arch-svg .node-sub.delay-4 { animation-delay: .5s; }
    #arch-svg .node-label.delay-5,
    #arch-svg .node-sub.delay-5 { animation-delay: .6s; }
    #arch-svg .node-label.delay-6,
    #arch-svg .node-sub.delay-6 { animation-delay: .65s; }
    #arch-svg .node-label.delay-7,
    #arch-svg .node-sub.delay-7 { animation-delay: .75s; }
    #arch-svg .node-label.delay-8,
    #arch-svg .node-sub.delay-8 { animation-delay: .8s; }
    #arch-svg .node-label.delay-9,
    #arch-svg .node-sub.delay-9 { animation-delay: .85s; }
    #arch-svg .node-label.delay-10,
    #arch-svg .node-sub.delay-10 { animation-delay: .7s; }

    @keyframes nodeIn {
      from {
        opacity: 0;
        transform: scale(.85);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes fadeText {
      to {
        opacity: 1;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        transition: none !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }

      #arch-svg .node-box,
      #arch-svg .node-label,
      #arch-svg .node-sub {
        opacity: 1;
      }
    }

    @media (max-width: 880px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }

      .diagram-frame {
        order: -1;
      }

      .hero h1 {
        font-size: 38px;
      }

      .nav-links {
        display: none;
      }

      .nav-toggle {
        display: block;
      }

      .projects-grid {
        grid-template-columns: 1fr;
      }

      .repo-grid {
        grid-template-columns: 1fr;
      }

      .two-col {
        grid-template-columns: 1fr;
      }

      .stack-layer {
        grid-template-columns: 1fr;
      }

      .layer-meta {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding-bottom: 14px;
      }

      .contact {
        padding: 48px 24px;
      }

      .stat-row {
        gap: 26px;
      }
    }
  
