:root {
      --ink: #0e1210;
      --paper: #f5f2ed;
      --accent: #1a5c4f;
      --accent2: #c8522a;
      --muted: #7a7570;
      --line: #d8d3cc;
      --card: #ffffff;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      padding: 20px;
      font-family: 'DM Sans', sans-serif;
      background: var(--paper);
      color: var(--ink);
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 999;
      opacity: 0.5;
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 48px;
      background: rgba(245, 242, 237, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid transparent;
      transition: border-color 0.3s;
    }

    nav.scrolled {
      border-bottom-color: var(--line);
    }

    .nav-logo {
      font-family: 'DM Serif Display', serif;
      font-size: 22px;
      color: var(--ink);
      text-decoration: none;
      letter-spacing: -0.5px;
    }

    .nav-logo span {
      color: var(--accent);
    }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
    }

    .nav-links a {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      font-weight: 500;
      text-decoration: none;
      color: var(--muted);
      letter-spacing: 0.5px;
      text-transform: uppercase;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--ink);
    }

    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 0 48px 80px;
      position: relative;
      overflow: hidden;
    }

    .hero-bg-text {
      position: absolute;
      top: 50%;
      right: -20px;
      transform: translateY(-55%);
      font-family: 'DM Serif Display', serif;
      font-size: clamp(160px, 22vw, 320px);
      color: transparent;
      -webkit-text-stroke: 1.5px var(--line);
      line-height: 1;
      user-select: none;
      pointer-events: none;
      animation: fadeInBg 1.2s ease forwards;
      opacity: 0;
    }

    @keyframes fadeInBg {
      to {
        opacity: 1;
      }
    }

    .hero-eyebrow {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      color: var(--accent);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 20px;
      opacity: 0;
      animation: slideUp 0.7s 0.2s ease forwards;
    }

    .hero-title {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(52px, 8vw, 108px);
      line-height: 1.0;
      letter-spacing: -2px;
      color: var(--ink);
      max-width: 900px;
      opacity: 0;
      animation: slideUp 0.7s 0.35s ease forwards;
    }

    .hero-title em {
      font-style: italic;
      color: var(--accent);
    }

    .hero-sub {
      margin-top: 28px;
      font-size: 17px;
      font-weight: 300;
      color: var(--muted);
      max-width: 480px;
      line-height: 1.7;
      opacity: 0;
      animation: slideUp 0.7s 0.5s ease forwards;
    }

    .hero-actions {
      margin-top: 40px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      opacity: 0;
      animation: slideUp 0.7s 0.65s ease forwards;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      background: var(--ink);
      color: var(--paper);
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      border-radius: 4px;
      transition: background 0.2s, transform 0.15s;
      letter-spacing: 0.2px;
    }

    .btn-primary:hover {
      background: var(--accent);
      transform: translateY(-1px);
    }

    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border: 1.5px solid var(--ink);
      color: var(--ink);
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      border-radius: 4px;
      transition: border-color 0.2s, color 0.2s, transform 0.15s;
    }

    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-1px);
    }

    .hero-scroll {
      position: absolute;
      bottom: 36px;
      right: 48px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 1px;
      text-transform: uppercase;
      opacity: 0;
      animation: fadeIn 1s 1.2s ease forwards;
    }

    .scroll-line {
      width: 60px;
      height: 2px;
      background: var(--line);
      position: relative;
      overflow: hidden;
    }

    .scroll-line::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: var(--accent);
      animation: lineScroll 2s 1.5s ease-in-out infinite;
    }

    @keyframes lineScroll {
      to {
        left: 100%;
      }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(24px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      to {
        opacity: 1;
      }
    }

    .divider {
      height: 1px;
      background: var(--line);
      margin: 0 48px;
    }

    section {
      padding: 50px 18px;
    }

    .section-label {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--accent);
      letter-spacing: 2.5px;
      text-transform: uppercase;
      /* margin-bottom: 24px; */
      display: flex;
      align-items: center;
      /* gap: 5px; */
    }

    .section-label::after {
      content: '';
      flex: 1;
      max-width: 60px;
      height: 1px;
      background: var(--accent);
    }

    /* ── ABOUT ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: start;
    }

    .about-heading {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(36px, 5vw, 56px);
      line-height: 1;
      letter-spacing: -1.5px;
      color: var(--ink);
      margin-bottom: 28px;
    }

    .about-heading em {
      font-style: italic;
      color: var(--accent);
    }

    .about-body p {
      font-size: 16px;
      font-weight: 300;
      color: var(--muted);
      line-height: 1.3;
      margin-bottom: 15px;
    }

    .about-body p strong {
      color: var(--ink);
      font-weight: 600;
    }

    @media (max-width: 768px) {
      .about-right {
        grid-template-columns: 1fr !important;
      }





      
      section:has(.avatar-reveal.active)::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        z-index: 5;
        pointer-events: none;
      }
      .avatar-reveal.active {
        transform: scale(2);
        z-index: 10;
      }

    }


    .fact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
    }

    .fact {
      padding: 24px;
      background: var(--card);
      border: 1px solid var(--line);
    }

    .fact:first-child {
      border-radius: 4px 0 0 0;
    }

    .fact:nth-child(2) {
      border-radius: 0 4px 0 0;
    }

    .fact:nth-child(3) {
      border-radius: 0 0 0 4px;
    }

    .fact:last-child {
      border-radius: 0 0 4px 0;
    }

    .fact-number {
      font-family: 'DM Serif Display', serif;
      font-size: 40px;
      color: var(--ink);
      line-height: 1;
      letter-spacing: -1px;
    }

    .fact-number span {
      color: var(--accent);
      font-size: 28px;
    }

    .fact-label {
      font-size: 15px;
      color: var(--muted);
      margin-top: 6px;
      font-weight: 400;
      line-height: 1.4;
    }

    /* ── SKILLS ── */
    #skills {
      background: var(--ink);
    }

    #skills .section-label {
      color: #8ab8b0;
    }

    #skills .section-label::after {
      background: #8ab8b0;
    }

    .skills-heading {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(32px, 4vw, 48px);
      color: var(--paper);
      letter-spacing: -1px;
      margin-bottom: 56px;
      line-height: 1.15;
    }

    .skills-heading em {
      color: #8ab8b0;
      font-style: italic;
    }

    .skills-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: #1e2a27;
    }

    .skill-item {
      padding: 32px 28px;
      background: #131d1a;
      transition: background 0.2s;
      position: relative;
      overflow: hidden;
    }

    .skill-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 3px;
      height: 0;
      background: var(--accent);
      transition: height 0.3s ease;
    }

    .skill-item:hover {
      background: #1a2925;
    }

    .skill-item:hover::before {
      height: 100%;
    }

    .skill-icon {
      font-size: 26px;
      margin-bottom: 14px;
      display: block;
    }

    .skill-name {
      font-weight: 600;
      font-size: 15px;
      color: var(--paper);
      margin-bottom: 6px;
    }

    .skill-desc {
      font-size: 13px;
      color: #6b8a84;
      line-height: 1.6;
    }

    /* ── PROJECTS ── */
    .projects-heading {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(32px, 4vw, 48px);
      letter-spacing: -1px;
      color: var(--ink);
      margin-bottom: 56px;
      line-height: 1.1;
    }

    .projects-heading em {
      font-style: italic;
      color: var(--accent);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .project-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 32px 28px;
      text-decoration: none;
      color: var(--ink);
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
      position: relative;
      overflow: hidden;
    }

    .project-card::after {
      content: '↗';
      position: absolute;
      top: 24px;
      right: 24px;
      font-size: 18px;
      color: var(--muted);
      opacity: 0;
      transform: translate(-4px, 4px);
      transition: opacity 0.2s, transform 0.2s;
    }

    .project-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
      border-color: var(--accent);
    }

    .project-card:hover::after {
      opacity: 1;
      transform: translate(0, 0);
    }

    .project-tag {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--accent);
      background: rgba(26, 92, 79, 0.08);
      padding: 4px 10px;
      border-radius: 2px;
      display: inline-block;
      width: fit-content;
    }

    .project-name {
      font-family: 'DM Serif Display', serif;
      font-size: 22px;
      letter-spacing: -0.5px;
      color: var(--ink);
      line-height: 1.2;
    }

    .project-desc {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.7;
      font-weight: 300;
    }

    .project-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: auto;
    }

    .stack-tag {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      padding: 3px 8px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 2px;
      color: var(--muted);
    }

    /* ── CONTACT ── */
    #contact {
      background: var(--accent);
      text-align: center;
    }

    #contact .section-label {
      color: rgba(255, 255, 255, 0.5);
      justify-content: center;
    }

    #contact .section-label::after {
      background: rgba(255, 255, 255, 0.3);
      max-width: 40px;
    }

    .contact-heading {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(40px, 6vw, 80px);
      color: #fff;
      letter-spacing: -2px;
      line-height: 1.05;
      margin-bottom: 20px;
    }

    .contact-heading em {
      font-style: italic;
      color: rgba(255, 255, 255, 0.55);
    }

    .contact-sub {
      font-size: 16px;
      color: rgba(255, 255, 255, 0.65);
      margin-bottom: 48px;
      font-weight: 300;
    }

    .contact-links {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .contact-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 26px;
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      border-radius: 4px;
      transition: background 0.2s, border-color 0.2s, transform 0.15s;
    }

    .contact-link:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.7);
      transform: translateY(-2px);
    }

    .contact-link.primary-link {
      background: #fff;
      color: var(--accent);
      border-color: #fff;
    }

    .contact-link.primary-link:hover {
      background: var(--paper);
    }

    footer {
      padding: 28px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--line);
    }

    .footer-copy {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.5px;
    }

    .footer-made {
      font-size: 12px;
      color: var(--muted);
    }

    .footer-made a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
    }

    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 900px) {
      nav {
        padding: 18px 24px;
      }

      .nav-links {
        display: none;
      }

      .hero {
        padding: 0 24px 64px;
      }

      section {
        padding: 72px 24px;
      }

      .divider {
        margin: 0 24px;
      }

      .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .skills-list {
        grid-template-columns: repeat(2, 1fr);
      }

      .projects-grid {
        grid-template-columns: 1fr;
      }

      footer {
        padding: 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }

      .hero-scroll {
        right: 24px;
      }

      .hero-bg-text {
        font-size: 120px;
      }
    }

    @media (max-width: 540px) {
      .skills-list {
        grid-template-columns: 1fr;
      }

      .fact-grid {
        grid-template-columns: 1fr 1fr;
      }
    }





    .about-me {
      max-width: 32em;
      margin: 0 auto;
      text-align: center;
      line-height: 1.6;
    }



    
    .avatar-reveal {
      display: block;
      width: 100%;
      max-width: 320px;
      height: auto;
      margin: 0 auto;
      transition: transform 0.3s ease;
      position: relative;
    }

    @media (min-width: 768px) {
      .avatar-reveal {
        max-width: 380px;
      }

      section:has(.avatar-reveal:hover)::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        z-index: 5;
        pointer-events: none;
      }

      .avatar-reveal:hover {
        transform: scale(1.8);
        z-index: 10;
      }
    }
















    /* General styling for all blocks */
    .block {
      padding: 5px;
      font-family: Arial, sans-serif;
      text-align: center;
      border-radius: 5px;
    }

    /* Stacked blocks (default block behavior) */
    .stacked {
      /* background-color: steelblue; */
      margin: 10px 0;
      /* space between stacked blocks */
    }

    /* Container for side-by-side blocks */
    .side-by-side {
      display: flexbox;
      /* Arrange children in a row */
      gap: 10px;
      /* Space between blocks */
      margin-top: 20px;
      /* Space above the row */
    }




    /*-------------------------------------------------------------- switch -------------------------------------------------------------*/
    /* The switch - the box around the slider */
    .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }

    /* Hide the default checkbox */
    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    /* Slider background */
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: 0.4s;
      border-radius: 34px;
    }

    /* Slider knob */
    .slider:before {
      position: absolute;
      content: "";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
    }

    /* Checked state */
    input:checked+.slider {
      background-color: #4CAF50;
    }

    input:checked+.slider:before {
      transform: translateX(26px);
    }

    /* Optional: focus outline for accessibility */
    input:focus+.slider {
      box-shadow: 0 0 2px #4CAF50;
    }

    /* -------------------------------------------------------------- switch ------------------------------------------------------------- */
  