    /* ─────────────────────────────────────────────
       0. TOKENS & RESET
    ───────────────────────────────────────────── */
    :root {
        --violet: #7c3aed;
        --violet-light: #a78bfa;
        --blue: #2563eb;
        --cyan: #06b6d4;
        --neon-cyan: #00f0ff;
        --neon-pink: #ff4fd8;
        --neon-teal: #00ffd0;
        --white: #ffffff;
        --gray-100: #f3f4f6;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-900: #111827;
        --dark: #0a0a12;
        --glass-bg: rgba(255,255,255,0.55);
        --glass-border: rgba(255,255,255,0.3);
  
        --font-display: 'Source Sans Pro', 'Syne', sans-serif;
        --font-body: 'Source Sans Pro', 'DM Sans', sans-serif;
  
        --radius-sm: 0.5rem;
        --radius-md: 1rem;
        --radius-lg: 1.5rem;
        --radius-xl: 2rem;
        --radius-full: 9999px;
  
        --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
        --shadow-glow: 0 2px 16px rgba(139,92,246,0.25);
      }
  
      *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
      html {
        scroll-behavior: smooth;
        font-size: 16px;
      }
  
      body {
        font-family: var(--font-body);
        color: var(--gray-700);
        background: var(--gray-100);
        overflow-x: hidden;
      }
  
      img { display: block; max-width: 100%; }
      a { text-decoration: none; }
      ul { list-style: none; }
  
      @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.001ms !important;
          scroll-behavior: auto !important;
        }
      }
  
      /* ─────────────────────────────────────────────
         1. SKIP LINK
      ───────────────────────────────────────────── */
      .skip-link {
        position: absolute;
        left: -999px;
        top: 8px;
        background: var(--white);
        color: var(--blue);
        padding: 0.75em 1.25em;
        z-index: 9999;
        border-radius: var(--radius-sm);
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        transition: left 0.2s;
      }
      .skip-link:focus { left: 16px; outline: 2px solid var(--blue); }
  
      /* ─────────────────────────────────────────────
         2. ROTATING GRADIENT RING UTILITY
      ───────────────────────────────────────────── */
      .ring {
        position: relative;
        z-index: 0;
        display: inline-block;
      }
      .ring::before {
        content: "";
        position: absolute;
        inset: -4px;
        z-index: -1;
        border-radius: inherit;
        background: conic-gradient(
          from var(--ring-angle, 0deg),
          #60a5fa, #a78bfa, #f472b6, #60a5fa
        );
        -webkit-mask:
          linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        padding: 3px;
      }
      .ring--pill { border-radius: var(--radius-full); }
      .ring--card { border-radius: var(--radius-xl); }
  
      /* ─────────────────────────────────────────────
         3. BUTTONS
      ───────────────────────────────────────────── */
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.75rem;
        border-radius: var(--radius-full);
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        border: none;
        transition: transform 0.2s, box-shadow 0.2s;
      }
      .btn:focus-visible {
        outline: 3px solid var(--violet-light);
        outline-offset: 3px;
      }
      .btn--primary {
        background: linear-gradient(135deg, var(--violet), var(--blue));
        color: var(--white);
        box-shadow: var(--shadow-glow);
      }
      .btn--primary:hover { transform: translateY(-2px) scale(1.03); }
      .btn--outline {
        background: transparent;
        color: var(--violet);
        border: 2px solid var(--violet);
      }
      .btn--outline:hover { background: rgba(124,58,237,0.06); }
  
      /* ─────────────────────────────────────────────
         4. HEADER / HERO
      ───────────────────────────────────────────── */
      #hero {
        position: relative;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--white);
        overflow: hidden;
        background:
          /* dark veil */
          linear-gradient(to bottom, rgba(10,10,18,0.62) 0%, rgba(10,10,18,0.42) 100%),
          /* placeholder — swap for real photo */
          url('/public/images/pexels-kevin-ku-577585.webp') center/cover no-repeat;
        background-attachment: fixed;
      }
  
      /* preload fade overlay */
      #hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: #1C0920;
        opacity: 1;
        transition: opacity 2.5s ease-in-out 0.5s;
        pointer-events: none;
        z-index: 1;
      }
      body.loaded #hero::after { opacity: 0; }
  
      @supports (-webkit-touch-callout: none) {
        #hero { background-attachment: scroll; }
      }
  
      .hero__content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 2rem 1rem 6rem;
      }
  
      .hero__title {
        font-family: var(--font-display);
        font-size: clamp(3rem, 8vw, 6rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--white);
        min-height: 1.2em;
        color: #60a5fa;
      }
      .hero__title .cursor {
        display: inline-block;
        width: 3px;
        height: 0.85em;
        background: #fff;
        margin-left: 4px;
        vertical-align: middle;
        animation: blink 1s step-end infinite;
      }
      @keyframes blink { 50% { opacity: 0; } }
  
      .hero__sub {
        font-size: 1.2rem;
        opacity: 0;
        color: rgba(255,255,255,0.85);
        transition: opacity 0.7s;
        max-width: 42ch;
      }
      .hero__sub.visible { opacity: 1; }

      .hero__sub strong {
        color: #60a5fa;
      }

      #hero .hero__content a {
        /* border: 2px solid red; */
        margin-top: 0.5rem;
      }
  
      /* ─────────────────────────────────────────────
         5. NAV
      ───────────────────────────────────────────── */
      .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1.25rem 1rem;
        z-index: 100;
      }
  
      .nav__list {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        background: rgba(10,10,18,0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: var(--radius-full);
        padding: 0.35rem 0.5rem;
      }
  
      /* sliding pill indicator */
      .nav__indicator {
        position: absolute;
        top: 0.35rem;
        left: 0;
        height: calc(100% - 0.7rem);
        background: rgba(96,165,250,0.2);
        border: 1px solid rgba(96,165,250,0.4);
        border-radius: var(--radius-full);
        transition: transform 0.35s cubic-bezier(.4,0,.2,1), width 0.35s cubic-bezier(.4,0,.2,1);
        pointer-events: none;
        z-index: 0;
      }
  
      .nav__list li { position: relative; z-index: 1; }
  
      .nav__link {
        display: block;
        padding: 0.45rem 1rem;
        border-radius: var(--radius-full);
        color: rgba(255,255,255,0.72);
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.2s;
        white-space: nowrap;
      }
      .nav__link:hover { color: var(--white); }
      .nav__link.active {
        color: #60a5fa;
        font-weight: 700;
      }
      .nav__link:focus-visible {
        outline: 2px solid #60a5fa;
        outline-offset: 2px;
      }
  
      /* ─────────────────────────────────────────────
         6. ABOUT / BANNER
      ───────────────────────────────────────────── */
      #about {
        position: relative;
        background: #0a0a12;
        padding: 6rem 1.5rem;
        display: flex;
        justify-content: center;
      }
  
      /* neon SVG deco absolutely behind card */
      .about__deco {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
      }
  
      .about__card {
        position: relative;
        z-index: 1;
        max-width: 680px;
        width: 100%;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: var(--radius-xl);
        padding: clamp(2rem, 5vw, 3.5rem);
        color: rgba(255,255,255,0.88);
      }
  
      .about__card h2 {
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        font-weight: 700;
        margin-bottom: 1.25rem;
        color: var(--white);
      }
      .about__card h2 strong { color: var(--violet-light); font-style: normal; }
  
      .about__card p {
        line-height: 1.75;
        margin-bottom: 1rem;
        color: rgba(255,255,255,0.75);
      }
      .about__card p strong { color: var(--violet-light); font-weight: 600; }
  
      .about__cta { margin-top: 2rem; }
  
      /* ─────────────────────────────────────────────
         7. PROJECTS
      ───────────────────────────────────────────── */
      #projects {
        position: relative;
        padding: 6rem 1.5rem;
        background: linear-gradient(160deg, #f0f4ff 0%, #faf5ff 100%);
        overflow: hidden;
      }
  
      /* canvas sits behind the cards */
      #particle-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
      }
  
      .section-header {
        position: relative;
        z-index: 1;
        text-align: center;
        margin-bottom: 3.5rem;
      }
      .section-header h2 {
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 0.75rem;
      }
      .section-header h2 span { color: var(--violet); }
      .section-header p { color: var(--gray-600); font-size: 1.1rem; }
  
      /* stack row */
      .stack-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
      }
      .stack-row img {
        height: 2.25rem;
        width: auto;
        filter: grayscale(1) opacity(0.55);
        transition: filter 0.3s;
      }
      .stack-row img:hover { filter: grayscale(0) opacity(1); }
  
      /* project grid */
      .projects-grid {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 1.75rem;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
        max-width: 1080px;
        margin: 0 auto;
      }
  
      /* project card */
      .project-card {
        background: var(--white);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-card);
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s, transform 0.3s;
      }
      .project-card:hover {
        box-shadow: 0 12px 40px rgba(124,58,237,0.18);
        transform: translateY(-4px);
      }
      .project-card:focus-within { outline: 3px solid var(--violet-light); }
  
      .project-card__img-wrap {
        display: flex;
        justify-content: center;
        padding: 1.5rem 1.5rem 0;
      }
      .project-card__img {
        width: 100%;
        max-width: 240px;
        height: auto;
        border-radius: var(--radius-md);
        object-fit: cover;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
      }
  
      .project-card__body {
        padding: 1.25rem 1.5rem 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
      }
  
      .project-card__title {
        font-family: var(--font-display);
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--gray-900);
      }
  
      /* tech tags */
      .tag-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
      }
      .tag {
        display: inline-block;
        background: #ede9fe;
        color: #5b21b6;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 0.2em 0.65em;
        border-radius: var(--radius-full);
        border: 1px solid #ddd6fe;
        letter-spacing: 0.01em;
      }
  
      .project-card__desc {
        color: var(--gray-600);
        font-size: 0.93rem;
        line-height: 1.6;
        flex: 1;
      }
  
      .project-card__actions {
        display: flex;
        gap: 0.75rem;
        margin-top: 0.5rem;
      }
      .project-card__actions .btn { font-size: 0.875rem; padding: 0.55rem 1.2rem; }
  
      /* ─────────────────────────────────────────────
         8. SERVICES
      ───────────────────────────────────────────── */
      #services {
        position: relative;
        padding: 6rem 1.5rem;
        overflow: hidden;
      }
  
      .services__bg {
        position: absolute;
        inset: 0;
        background:
          url('/public/images/hawaii-2038861_1920_rjmcsorley_pixabay.webp') center/cover no-repeat;
        background-attachment: fixed;
        filter: brightness(0.4) saturate(0.6);
        z-index: 0;
      }
  
      @supports (-webkit-touch-callout: none) {
        .services__bg { background-attachment: scroll; }
      }
  
      .services__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(10,10,18,0.7) 0%, rgba(37,99,235,0.35) 100%);
        z-index: 0;
      }
  
      .services__inner {
        position: relative;
        z-index: 1;
        max-width: 1080px;
        margin: 0 auto;
      }
  
      /* override header color for dark bg */
      .services__inner .section-header h2 { color: var(--white); }
      .services__inner .section-header p { color: rgba(255,255,255,0.72); }
  
      .services-grid {
        display: grid;
        gap: 1.75rem;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
      }
  
      .service-card {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.16);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: var(--radius-lg);
        padding: 2.5rem 1.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        transition: box-shadow 0.3s, transform 0.3s;
        color: var(--white);
      }
      .service-card:hover {
        box-shadow: 0 8px 40px rgba(124,58,237,0.3);
        transform: translateY(-4px);
      }
      .service-card:focus-within { outline: 3px solid var(--violet-light); }
  
      .service-card__icon {
        width: 5rem;
        height: 5rem;
        border-radius: 50%;
        object-fit: contain;
        background: rgba(255,255,255,0.08);
        padding: 0.75rem;
        box-shadow: 0 0 24px rgba(167,139,250,0.3);
      }
  
      .service-card h3 {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--violet-light);
      }
  
      .service-card p {
        font-size: 0.95rem;
        line-height: 1.65;
        color: rgba(255,255,255,0.75);
        flex: 1;
      }
  
      /* ─────────────────────────────────────────────
         9. CONTACT
      ───────────────────────────────────────────── */
      #contact {
        position: relative;
        padding: 6rem 1.5rem;
        background: #0a0a12;
      }

      #contact .hidden-text {
        position:absolute;
        left:-9999px;
      }
  
      #contact .section-header h2 { color: var(--white); }
      #contact .section-header p { color: rgba(255,255,255,0.65); }
  
      .contact-form-wrap {
        max-width: 640px;
        margin: 0 auto;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.12);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: var(--radius-xl);
        padding: clamp(1.75rem, 4vw, 3rem);
      }
    
      .contact-form-wrap fieldset {
        border:0;
        padding:0;
        margin:0" 
      }
      
      .sr-only {
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0 0 0 0);
        white-space:nowrap;
      }
  
      .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
      }
      @media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
  
      .form-field {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
      }
      .form-field.full { grid-column: 1 / -1; margin-bottom: 1rem; }
  
      .form-field label {
        font-size: 0.8rem;
        font-weight: 600;
        color: rgba(255,255,255,0.55);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
  
      .form-field input,
      .form-field textarea {
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: var(--radius-sm);
        padding: 0.75rem 1rem;
        color: var(--white);
        font-family: var(--font-body);
        font-size: 0.95rem;
        transition: border-color 0.2s, box-shadow 0.2s;
        width: 100%;
      }
      .form-field input::placeholder,
      .form-field textarea::placeholder { color: rgba(255,255,255,0.3); }
      .form-field input:focus,
      .form-field textarea:focus {
        outline: none;
        border-color: var(--violet-light);
        box-shadow: 0 0 0 3px rgba(167,139,250,0.2);
      }
      .form-field input:invalid:not(:placeholder-shown),
      .form-field textarea:invalid:not(:placeholder-shown) {
        border-color: #f87171;
      }
  
      .form-field textarea { resize: vertical; min-height: 130px; }
  
      .char-count {
        font-size: 0.75rem;
        color: rgba(255,255,255,0.35);
        text-align: right;
      }
  
      .form-actions {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
      }
  
      .form-status {
        margin-top: 1rem;
        font-size: 0.9rem;
        min-height: 1.5em;
        color: #86efac;
      }
  
      /* ─────────────────────────────────────────────
         10. FOOTER
      ───────────────────────────────────────────── */
      footer {
        background: #07070f;
        color: rgba(255,255,255,0.6);
        padding: 3.5rem 1.5rem 2rem;
      }
  
      .footer__grid {
        max-width: 1080px;
        margin: 0 auto;
        display: grid;
        gap: 2.5rem;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding-bottom: 2.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
      }
  
      .footer__brand h2 {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        color: var(--violet-light);
        margin-bottom: 0.5rem;
      }
      .footer__brand p { font-size: 0.875rem; line-height: 1.6; }
  
      .footer__social {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
      }
      .footer__social a {
        color: rgba(255,255,255,0.5);
        font-size: 1.2rem;
        transition: color 0.2s;
      }
      .footer__social a:hover { color: var(--violet-light); }
      .footer__social a:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; border-radius: 3px; }
  
      .footer__nav h3,
      .footer__contact h3 {
        font-family: var(--font-display);
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--violet-light);
        margin-bottom: 1rem;
      }
  
      .footer__nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
      .footer__nav a {
        color: rgba(255,255,255,0.55);
        font-size: 0.9rem;
        transition: color 0.2s;
      }
      .footer__nav a:hover { color: var(--violet-light); }
  
      .footer__contact p { font-size: 0.875rem; margin-bottom: 0.4rem; }
      .footer__contact a {
        color: rgba(255,255,255,0.55);
        transition: color 0.2s;
      }
      .footer__contact a:hover { color: var(--violet-light); }
  
      .footer__bottom {
        max-width: 1080px;
        margin: 1.5rem auto 0;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.3);
      }
  
      /* ─────────────────────────────────────────────
         11. BACK TO TOP
      ───────────────────────────────────────────── */
      .back-to-top {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        z-index: 200;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        background: var(--violet);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 24px rgba(124,58,237,0.35);
        transition: transform 0.2s, background 0.2s, opacity 0.3s;
        opacity: 0;
        pointer-events: none;
      }
      .back-to-top.visible { opacity: 1; pointer-events: auto; }
      .back-to-top:hover { transform: translateY(-3px); background: #6d28d9; }
      .back-to-top:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 3px; }
      .back-to-top svg { width: 1.2rem; height: 1.2rem; }
  
      /* ─────────────────────────────────────────────
         12. STACK ICONS
      ───────────────────────────────────────────── */
      /* SVG logo icons in the tech stack row */
      .stack-icon {
        height: 2.25rem;
        width: auto;
        display: block;
        filter: grayscale(1) opacity(0.55);
        transition: filter 0.3s;
      }
      .stack-icon:hover { filter: grayscale(0) opacity(1); }

      /* ─────────────────────────────────────────────
         13. KEYFRAMES (constellation about__deco)
      ───────────────────────────────────────────── */

      /* Dashed wire animation: moves dash pattern along the stroke path */
      @keyframes wire-flow {
        to { stroke-dashoffset: -28; }
      }

      /* Node core: slow opacity breathe */
      @keyframes node-pulse {
        0%, 100% { opacity: 0.65; }
        50%       { opacity: 1;    }
      }

      /* Node ring: expand outward and fade */
      @keyframes node-ring {
        0%   { transform: scale(1);   opacity: 0.28; }
        70%  { transform: scale(1.5); opacity: 0.10; }
        100% { transform: scale(1.5); opacity: 0;    }
      }

      /* Radar sonar rings: expand from origin and disappear */
      @keyframes radar-expand {
        0%   { transform: scale(1);   opacity: 0.18; }
        100% { transform: scale(3.2); opacity: 0;    }
      }

      /* Code glyphs: gentle vertical float */
      @keyframes glyph-float {
        0%, 100% { transform: translateY(0);     }
        50%       { transform: translateY(-12px); }
      }

  
      /* ─────────────────────────────────────────────
         13. RESPONSIVE
      ───────────────────────────────────────────── */
      @media (max-width: 640px) {
        .nav__link { padding: 0.4rem 0.65rem; font-size: 0.8rem; }
        .hero__content { padding-top: 5rem; }
      }