
    @import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');
    :root {
      --bg-primary: #000; --bg-secondary: #0a0a0a; --bg-tertiary: #111;
      --text-primary: #fff; --text-secondary: #aaa; --text-tertiary: #888;
      --border-color: #333; --border-hover: #444; --shadow: rgba(0,0,0,0.5);
      --modal-primary: rgba(0,0,0,0.5);
    }
    [data-theme="light"] {
      --bg-primary: #fff; --bg-secondary: #f5f5f5; --bg-tertiary: #e9e9e9;
      --text-primary: #000; --text-secondary: #444; --text-tertiary: #666;
      --border-color: #ddd; --border-hover: #bbb; --shadow: rgba(0,0,0,0.1);
      --modal-primary: rgba(255,255,255,0.8);
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { background-color: var(--bg-primary); color: var(--text-primary); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif; line-height: 1.6; transition: background-color 0.3s ease, color 0.3s ease; }
    .nav { display: flex; justify-content: space-between; padding: 0.8rem 2rem; align-items: center; position: fixed; right: 0; left: 0; top: 0; z-index: 100; }
    .nav-list { display: flex; gap: 0.5rem; padding: 0.3rem; border: 1px solid var(--border-color); border-radius: 30px; list-style: none; background-color: rgba(255,255,255,0.4); backdrop-filter: blur(1px); }
    .nav-list a { padding: 0.3rem 1rem; cursor: pointer; border-radius: 20px; transition: all 0.3s ease; color: var(--text-primary); font-weight: 500; font-size: 14px; line-height: 22px; }
    .nav-list a:hover { background-color: var(--bg-tertiary); }
    .link { text-decoration: none; color: var(--text-primary); }
    .nav-list a.active { background-color: var(--text-primary); color: var(--bg-primary); border: 2px solid #464646; }
    .theme-toggle { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-color); background-color: var(--bg-tertiary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; font-size: 1.2rem; }
    .theme-toggle:hover { background-color: var(--bg-secondary); transform: scale(1.05); }
    .sub-nav { display: flex; justify-content: space-between; padding: 0 2rem; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 5rem 0 1rem 0; }
    .tagline { font-family: 'DM Mono', monospace; font-weight: 400; font-size: 14px; line-height: 22px; color: #8696A4; }
    .tag { font-weight: 400; font-size: 14px; line-height: 22px; color: #5c5c5c; }
    .profile-section { display: flex; align-items: center; gap: 1.5rem; }
    .hire-link { font-family: 'DM Mono', monospace; font-weight: 400; font-size: 13px; color: #5C5C5C; text-decoration: none; transition: color 0.3s ease; display: flex; align-items: center; gap: 0.4rem; }
    .hire-link img { width: 25px; height: 25px; border-radius: 8px; object-fit: contain; }
    .hire-link:hover { color: var(--text-primary); }
    .profile-pic-wrapper { position: relative; cursor: pointer; }
    .profile-pic-wrapper img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); transition: border-color 0.3s ease; }
    .profile-pic-wrapper:hover img { border-color: var(--text-primary); }
    .profile-dropdown { display: none; position: absolute; right: 60px; bottom: -20px; background-color: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.6rem 1.2rem; min-width: 280px; box-shadow: 0 10px 40px var(--shadow); z-index: 100; }
    .profile-pic-wrapper:hover .profile-dropdown { display: flex; gap: 1rem; align-items: center; }
    .profile-dropdown img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--text-primary); }
    .profile-info h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--text-primary); }
    .profile-info p { color: var(--text-tertiary); font-size: 0.9rem; margin-bottom: 0.2rem; }
    @font-face { font-family: 'CustomFontName'; src: url('font/DMMono-italic.ttf'), url('font/DMMono-regular.ttf'), url('font/DMMono-Medium.ttf'); }
    .pro { font-family: 'CustomFontName'; }

    /* ===================== */
    /* HERO / GALLERY        */
    /* ===================== */
    .hero-container { position: relative; display: flex; gap: 2rem; padding: 0 2rem; }
    .hero { position: sticky; top: 0; min-width: calc(100vw - 4rem); height: 100vh; padding: 4rem; max-width: 1400px; overflow: hidden; z-index: 10; flex-shrink: 0; }
    .scroll-spacer { height: 400vh; pointer-events: none; }
    .hero-header { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 1rem; border: 1px solid var(--border-color); background-color: var(--bg-secondary); flex-wrap: wrap; gap: 1rem; width: 1200px; }
    .project-label { display: flex; align-items: center; gap: 1rem; font-family: 'DM Mono', monospace; font-weight: 500; font-size: 14px; line-height: 22px; color: #5C5C5C; }
    .open-file-btn { color: var(--text-primary); border: 1px solid var(--border-color); padding: 0.2rem 1rem; border-radius: 8px; transition: all 0.3s ease; background-color: var(--bg-tertiary); white-space: nowrap; cursor: pointer; font-family: inherit; font-size: 0.8rem; }
    .open-file-btn:hover { background-color: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
    .hero-gallery { position: relative; height: calc(100vh - 180px); min-height: 500px; overflow: visible; display: flex; align-items: center; justify-content: center; }
    .gallery-track { display: flex; height: 100%; width: 100%; }
    .hero-image { min-width: calc(100% - 4rem); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; flex-shrink: 0; }
    .hero-image img { max-width: 100%; max-height: 100%; width: 1200px; height: auto; border: 1px solid var(--border-color); object-fit: contain; object-position: center; display: block; }
    .gallery-dot { width: 10px; height: 10px; border-radius: 50%; background-color: var(--text-tertiary); cursor: pointer; transition: all 0.3s ease; }
    .gallery-dot.active { background-color: var(--text-primary); width: 30px; border-radius: 5px; }

    /* ===================== */
    /* DESKTOP MODAL         */
    /* ===================== */
    .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; overflow-y: auto; background-color: var(--modal-primary); backdrop-filter: blur(5px); }
    .modal-overlay.active { display: flex; align-items: center; justify-content: center; padding: 2rem; }
    .modal-content { display: grid; grid-template-columns: 4fr 1fr; gap: 3rem; width: 100%; height: 100vh; max-height: 900px; align-content: center; justify-items: center; border-radius: 20px; position: relative; animation: modalSlideIn 0.3s ease; padding: 3rem; overflow: hidden; }
    @keyframes modalSlideIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
    .modal-image-section { display: flex; align-items: stretch; justify-content: center; min-width: 0; height: 100%; overflow: hidden; background-color: var(--bg-tertiary); }
    .modal-project-image { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; }
    .modal-info-section { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 0; overflow-y: auto; height: 100%; align-items: end; }
    .book { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
    .modal-close-button { color: #ff9700; border: 1px solid var(--border-color); padding: 0.625rem 0.8125rem; border-radius: 8px; transition: all 0.3s ease; background-color: var(--bg-tertiary); cursor: pointer; font-family: 'dm mono', monospace; font-size: 1rem; align-self: flex-end; display: inline-flex; align-items: center; gap: 0.5rem; }
    .modal-close-button:hover { background-color: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
    .preview-name { font-family: 'dm mono', monospace; font-size: 2rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0; }
    .preview-category { font-family: 'dm mono', monospace; font-size: 1rem; color: var(--text-tertiary); padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
    .model-dis { display: flex; flex-direction: column; align-items: end; justify-content: center; }
    .preview-description { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; flex-grow: 1; text-align: right; }
    .view-live-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; background-color: #ff9700; color: #fff; border: none; border-radius: 50px; font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; margin-top: 3rem; }
    .view-live-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow); }

    /* ===================== */
    /* WORK SECTION          */
    /* ===================== */
    .work { padding: 4rem 2rem; max-width: 1400px; margin: 0 auto; }
    .work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; align-items: end; max-width: 1200px; margin: 0 auto; }
    @font-face { font-family: 'linkFont'; src: url('font/PPEditorialNew-Ultrabold-BF644b21500840c.otf'), url('font/PPEditorialNew-Regular-BF644b214ff145f.otf'); }
    @font-face { font-family: 'sioFont'; src: url('font/PPEditorialNew-Regular-BF644b214ff145f.otf'); }
    @font-face { font-family: 'FontName'; src: url('font/PPEditorialNew-Regular-BF644b214ff145f.otf'); }
    .contact { padding: 3.5rem 4.5rem; font-family: 'linkFont'; font-weight: 700; font-size: 14px; max-width: 1400px; margin: 0 auto; display: inline-flex; flex-direction: column; }
    .sio-links { display: flex; gap: 1.5rem; font-family: 'sioFont'; font-weight: 700; font-size: 14px; border: 1px solid var(--border-color); padding: 0.5rem; }
    .sio-links a { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; border: 1px solid var(--border-color); padding: 0.4rem 1rem; }
    .project-grid { display: inline-block; width: 650px; }
    .section-header { font-size: 1.8rem; margin-bottom: 2rem; font-weight: 600; color: var(--text-primary); font-family: 'FontName'; }
    .circle { display: flex; flex-direction: column-reverse; justify-content: end; gap: 1rem; }
    .project { margin-bottom: 16px; font-family: 'DM Mono', monospace; }
    .friend, .project { display: flex; align-items: center; gap: 1.5rem; padding: 0.5rem; border: 1px solid var(--border-color); border-radius: 0; transition: all 0.3s ease; background-color: var(--bg-secondary); }
    .friend:hover, .project:hover { border-color: var(--border-hover); transform: translateY(-2px); background-color: var(--bg-tertiary); box-shadow: 0 4px 12px var(--shadow); }
    .project-pic { width: 80px; height: 80px; border-radius: 0; object-fit: contain; object-position: center; background-color: var(--bg-tertiary); flex-shrink: 0; }
    .friend h3, .project h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--text-primary); font-family: 'DM Mono', monospace; }
    .friend p, .project p { color: var(--text-tertiary); font-size: 0.9rem; font-family: 'DM Mono', monospace; }
    .cta-card { padding: 0 0 2.5rem 0; border: 1px solid var(--border-color); background: var(--bg-secondary); }
    .cta-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; color: var(--text-primary); font-size: 0.9rem; }
    .cta-card h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-primary); }
    .cta-card p { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.8; }
    .schedule-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-primary); text-decoration: none; font-weight: 500; transition: gap 0.3s ease; }
    .schedule-link:hover { gap: 1rem; }
    .footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--border-color); color: var(--text-tertiary); }
    .cta-info { display: flex; flex-direction: column; align-items: center; }
    .cta-info h1 { display: flex; flex-direction: column; align-items: center; font-family: 'FontName'; font-weight: lighter; }
    .cta-info p { padding: 0 6rem; text-align: center; }

    /* ===================== */
    /* MOBILE PROJECTS LIST  */
    /* ===================== */
    .mobile-projects { display: none; padding: 2rem 1rem; max-width: 1400px; margin: 0 auto; }
    .mobile-projects .project { cursor: pointer; position: relative; }
    .mobile-projects .project::after { content: ''; margin-left: auto; }

    /* ===================== */
    /* MOBILE MODAL          */
    /* ===================== */
    .mobile-modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 2000;
      background-color: rgba(0,0,0,0.85);
      backdrop-filter: blur(8px);
    }
    .mobile-modal-overlay.active {
      display: flex;
      align-items: flex-start;
      justify-content: center;
    }
    .mobile-modal-sheet {
      background-color: var(--bg-secondary);
      border: none;
      border-radius: 0;
      width: 100%;
      height: 100vh;           /* full screen on mobile */
      overflow-y: auto;
      animation: slideDown 0.35s cubic-bezier(0.32, 0.72, 0, 1);
      display: flex;
      flex-direction: column;
    }
    @keyframes slideDown {
      from { transform: translateY(-100%); opacity: 0; }
      to   { transform: translateY(0);     opacity: 1; }
    }

    /* Top bar: close + title */
    .mobile-modal-topbar {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 1rem 1rem 0.75rem;
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      background-color: var(--bg-secondary);
      z-index: 1;
    }
    .mobile-modal-close {
      width: 34px; height: 34px;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      background-color: var(--bg-tertiary);
      color: var(--text-primary);
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .mobile-modal-close:hover { background-color: var(--text-primary); color: var(--bg-primary); }
    .mobile-modal-project-name {
      font-family: 'DM Mono', monospace;
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-primary);
    }

    /* Image container — natural aspect ratio, no clipping */
    .mobile-modal-image-wrap {
      width: 100%;
      background-color: var(--bg-tertiary);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .mobile-modal-image {
      width: 100%;
      height: auto;            /* key: height follows the image's natural ratio */
      max-height: 55vh;        /* cap so it doesn't swallow the whole screen */
      object-fit: contain;     /* never crop — shrinks to fit */
      object-position: center;
      display: block;
      border-radius: 0;
    }

    /* Text content below the image */
    .mobile-modal-body {
      padding: 1rem 1.25rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .mobile-modal-category {
      font-family: 'DM Mono', monospace;
      font-size: 0.72rem;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .mobile-modal-description {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.75;
    }
    .mobile-modal-actions {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding-top: 0.5rem;
    }
    .mobile-modal-view-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 1.3rem;
      background-color: #ff9700;
      color: #fff;
      border: none;
      border-radius: 50px;
      font-family: 'DM Mono', monospace;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.25s ease;
    }
    .mobile-modal-view-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,151,0,0.35); }

    /* ===================== */
    /* RESPONSIVE            */
    /* ===================== */
    @media screen and (max-width: 1024px) {
      .hero-header { width: 100%; max-width: 800px; }
      .hero-image img { width: 100%; max-width: 800px; }
      .modal-content { grid-template-columns: 1fr; gap: 2rem; max-height: 90vh; padding: 2rem; }
      .work-grid { grid-template-columns: 1fr; gap: 2rem; }
      #item1 { order: 2; } #item2 { order: 1; }
      .project-grid { width: 100%; }
    }

    @media screen and (max-width: 768px) {
      .nav { padding: 0.8rem 1rem; }
      .nav-list { gap: 0.3rem; padding: 0.2rem; }
      .nav-list a { padding: 0.1rem 0.8rem; font-size: 13px; }
      .theme-toggle { width: 40px; height: 40px; font-size: 1rem; }
      .sub-nav { padding: 0 1rem; gap: 0.8rem; margin-top: 4rem; margin-bottom: 0.75rem; }
      .tagline { font-size: 12px; }
      .hire-link { font-size: 11px; }
      .profile-section { flex-direction: row-reverse; gap: 0.8rem; }
      .profile-pic-wrapper img { width: 40px; height: 40px; }
      .profile-dropdown { display: none; }
      .hero-header, .tagline { display: none !important; }
      .hero-container { padding: 0; }

      /* Hero becomes auto-height, wraps image naturally */
      .hero {
        padding: 0;
        height: auto;
        min-height: unset;
        position: relative;
        width: 100vw;
        min-width: 100vw;
      }

      /* Gallery: height follows the image — no fixed box, no cropping */
      .hero-gallery {
        height: auto;
        min-height: unset;
        max-height: unset;
        overflow: hidden;
        width: 100%;
      }

      /* Track flows as a row but height is driven by content, not a parent constraint */
      .gallery-track { height: auto; align-items:center; gap: 1rem; }

      /* Each slide: block layout, height = image height */
      .hero-image {
        min-width: 100%;
        width: 100%;
        height: auto;
        padding: 0;
        display: block;
        overflow: hidden;
      }

      /* Image: full width, natural aspect ratio — zero cropping, zero distortion */
      .hero-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: fill;
        display: block;
        border: none;

      }

      .scroll-spacer { display: none; }
      .mobile-projects { display: block; }
      .modal-overlay.active { padding: 1rem; }
      .modal-content { padding: 1.5rem; max-height: 95vh; }
      .preview-name { font-size: 1.5rem; }
      .modal-close-button { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
      .work { padding: 2rem 1rem; }
      .section-header { font-size: 1.5rem; margin-bottom: 1.5rem; }
      .work-grid { gap: 4.5rem; }
      .cta-card { padding: 1.5rem; }
      .cta-card h1 { font-size: 2rem; }
      .footer { padding: 2rem 1rem; font-size: 0.9rem; }
      .contact { padding: 3.5rem 0; }
      .cta-info p { padding: 0 1rem; text-align: center; }
    }

    @media screen and (max-width: 480px) {
      .work-grid { gap: 4.5rem; }
      .nav-list a { padding: 0 0.7rem; font-size: 11px; }
      .hire-link { font-size: 10px; }
      /* hero-gallery stays auto-height at all mobile sizes */
      .section-header { font-size: 1.3rem; }
      .project-pic { width: 60px; height: 60px; }
      .friend h3, .project h3 { font-size: 1rem; }
      .friend p, .project p { font-size: 0.85rem; }
      .cta-card h1 { font-size: 1.8rem; }
    }
  