    /* LOCAL FONTS */
    @font-face { font-family: 'Elephant'; src: url('./fonts/ELEPHNT.TTF') format('truetype'); font-weight: normal; font-style: normal; }
    @font-face { font-family: 'Elephant'; src: url('./fonts/ELEPHNTI.TTF') format('truetype'); font-weight: normal; font-style: italic; }
    @font-face { font-family: 'Onyx'; src: url('./fonts/ONYX.TTF') format('truetype'); font-weight: normal; font-style: normal; }
    @font-face { font-family: 'Rockwell'; src: url('./fonts/ROCK.TTF') format('truetype'); font-weight: normal; font-style: normal; }
    @font-face { font-family: 'Rockwell'; src: url('./fonts/ROCKB.TTF') format('truetype'); font-weight: bold; font-style: normal; }
    @font-face { font-family: 'Rockwell'; src: url('./fonts/ROCKI.TTF') format('truetype'); font-weight: normal; font-style: italic; }
    @font-face { font-family: 'Rockwell'; src: url('./fonts/ROCKBI.TTF') format('truetype'); font-weight: bold; font-style: italic; }
    @font-face { font-family: 'Bodoni MT'; src: url('./fonts/BOD_R.TTF') format('truetype'); font-weight: normal; font-style: normal; }
    @font-face { font-family: 'Bodoni MT'; src: url('./fonts/BOD_B.TTF') format('truetype'); font-weight: bold; font-style: normal; }
    @font-face { font-family: 'Bodoni MT'; src: url('./fonts/BOD_I.TTF') format('truetype'); font-weight: normal; font-style: italic; }

    :root {
      --paper-cream: #FFFEF2;
      --ink-black: #00010D;
      --dark-paper: #0A0F3B;
      --off-paper: #F5F0C4;
      
      --bg-color: var(--paper-cream);
      --text-color: var(--ink-black);
      --border-color: var(--ink-black);
      --accent-bg: var(--off-paper);
      --tool-bg: #E8E3B8;
      --highlight-bg: var(--ink-black);
      --highlight-text: var(--paper-cream);

      --font-body: 'Bodoni MT', serif;
      --font-heading: 'Elephant', serif;
      --font-ui: 'Rockwell', serif;
    }

    [data-theme="dark"] {
      --bg-color: var(--dark-paper);
      --text-color: var(--paper-cream);
      --border-color: var(--paper-cream);
      --accent-bg: #1A225A;
      --tool-bg: #2C3A7A;
      --highlight-bg: var(--paper-cream);
      --highlight-text: var(--dark-paper);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    body {
      background-color: var(--bg-color); color: var(--text-color);
      font-family: var(--font-body); line-height: 1.4;
      transition: background-color 0.3s, color 0.3s;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    }

    /* --- PASSWORD GATEKEEPER --- */
    #gatekeeper { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--ink-black); color: var(--paper-cream); display: none; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; }
    .login-box { text-align: center; border: 2px solid var(--off-paper); padding: 3rem; background: var(--ink-black); max-width: 400px; width: 90%; position: relative; }
    .login-box h1 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 0.5rem; color: var(--paper-cream); }
    .login-box p { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2rem; color: var(--off-paper); opacity: 0.8; }
    .login-box input { padding: 0.7rem; font-family: var(--font-ui); font-size: 1.1rem; background: transparent; border: 1px solid var(--off-paper); color: var(--paper-cream); outline: none; text-align: center; margin-bottom: 1.5rem; width: 100%; }
    .login-box button { padding: 0.8rem 2rem; font-family: var(--font-ui); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; font-weight: bold; background: var(--paper-cream); color: var(--ink-black); border: none; cursor: pointer; width: 100%; }
    .close-btn { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; font-family: sans-serif; cursor: pointer; opacity: 0.7; color: var(--paper-cream); }
    .close-btn:hover { opacity: 1; }

    /* --- MAIN CONTENT --- */
    #main-content { max-width: 1600px; margin: 0 auto; padding: 1rem 2rem; }
    
    header { border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; position: relative; }
    
    .brand-container { grid-column: 2; text-align: center; position: relative; }
    .brand-title { font-size: 5rem; letter-spacing: 1px; cursor: crosshair; user-select: none; line-height: 1.1; font-family: 'Bodoni MT', serif; position: relative; height: 4.6rem; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
    .brand-title span { display: inline-block; min-width: 0.3em; transition: all 0.05s; transform: translateZ(0); will-change: font-family; }
    
    .header-sub { font-family: var(--font-heading); font-size: 1.1rem; opacity: 0.9; margin-top: 0.5rem; letter-spacing: 0.5px; }
    
    .nav-actions { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
    .nav-line { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
    .nav-actions a { font-family: var(--font-heading); color: var(--text-color); text-decoration: underline; font-size: 1rem; transition: opacity 0.2s; }
    .nav-actions a:hover { opacity: 0.7; }

    .theme-container { grid-column: 3; display: flex; justify-content: flex-end; }
    .theme-switch { position: relative; display: inline-block; width: 54px; height: 26px; }
    .theme-switch input { opacity: 0; width: 0; height: 0; }
    .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-color); transition: .4s; border-radius: 26px; border: 1px solid var(--border-color); }
    .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--bg-color); transition: .4s; border-radius: 50%; z-index: 5; }
    
    [data-theme="dark"] .slider:before { transform: translateX(28px); background-color: var(--text-color); }
    [data-theme="dark"] .slider { background-color: var(--accent-bg); }

    /* Removed SVG toggle icons */

    .intro-section { max-width: 1100px; margin: 2rem auto; text-align: center; border: 1px solid var(--border-color); padding: 1.5rem; background: var(--bg-color); box-shadow: 4px 4px 0px var(--border-color); }
    .intro-copy { font-size: 1.15rem; line-height: 1.6; font-family: var(--font-body); margin-bottom: 0.5rem; color: var(--text-color); }
    .intro-alt { font-size: 1.15rem; line-height: 1.6; font-family: var(--font-body); color: var(--text-color); }
    .intro-alt a { color: inherit; text-decoration: underline; font-weight: bold; }

    /* FILTERS */
    .filters-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; padding-top: 1.5rem; }
    .filter-group { display: flex; flex-direction: column; }
    .filter-group .label { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-color); }
    .filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.8rem; border: 1px solid var(--border-color); background: var(--bg-color); max-height: 120px; overflow-y: auto; }

    /* TABLE */
    .table-container { overflow-x: auto; border: 1px solid var(--border-color); box-shadow: 6px 6px 0px var(--border-color); }
    table { width: 100%; border-collapse: collapse; font-size: 0.9rem; table-layout: fixed; background: var(--bg-color); }
    th, td { padding: 0.6rem 0.8rem; border: 1px solid var(--border-color); vertical-align: top; word-wrap: break-word; }
    th { font-family: var(--font-heading) !important; font-size: 1rem; background-color: var(--accent-bg); text-align: left; user-select: none; position: sticky; top: 0; z-index: 10; }
    th:hover { background-color: var(--off-paper); color: var(--ink-black); }
    
    .col-year { width: 135px; font-family: var(--font-ui); font-weight: bold; }
    .col-module { width: 260px; font-family: var(--font-ui); font-weight: bold; }
    .col-tags { width: 280px; }
    .col-work, .col-briefs, .col-appendices { width: 165px; }
    .col-notes { width: auto; font-family: var(--font-body); }
    .notes-label { display: none; }
    .notes-text { font-size: 0.85rem; font-style: italic; line-height: 1.3; }

    .tags-wrapper { display: flex; flex-wrap: wrap; gap: 4px; }
    .tag { 
      border: 1px solid var(--border-color); padding: 2px 6px; border-radius: 2px;
      font-size: 0.75rem; text-transform: uppercase; font-weight: bold; font-family: var(--font-ui);
      cursor: pointer; transition: background 0.1s;
    }
    .tag-skill { background: transparent; }
    .tag-tool { background: var(--tool-bg); }
    .tag.active { background: var(--highlight-bg) !important; color: var(--highlight-text); border-color: var(--highlight-bg); }

    .search-highlight {
      background-color: var(--highlight-bg);
      color: var(--highlight-text);
      padding: 0 1px;
      border-radius: 2px;
      font-weight: bold;
    }

    .pdf-match {
      display: block;
      font-size: 0.75rem;
      margin-top: 0.5rem;
      padding: 0.4rem;
      background: var(--accent-bg);
      border-left: 3px solid var(--highlight-bg);
      font-style: italic;
    }

    .file-link { 
      display: inline-block; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; font-family: var(--font-ui);
      background: var(--highlight-bg); color: var(--highlight-text); padding: 0.35rem 0.6rem; 
      text-decoration: none; border-radius: 2px; margin: 2px 0; width: 100%; text-align: center;
    }
    .file-link:hover { opacity: 0.8; }
    .file-size { font-size: 0.65rem; opacity: 0.7; font-weight: normal; margin-left: 4px; }
    .file-missing { display: inline-block; font-size: 0.75rem; opacity: 0.4; font-style: italic; margin: 2px 0; font-family: var(--font-ui); }

    .search-container { margin-bottom: 1.5rem; }
    #searchBar { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font-family: var(--font-ui); font-size: 1rem; outline: none; }

    @media (max-width: 1200px) {
      header { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 5.5rem; }
      .brand-container { order: 1; }
      .nav-actions { order: 2; justify-content: center; margin-top: 0; width: 100%; flex-direction: column; gap: 0.8rem; }
      .nav-line { gap: 1.2rem; }
      .theme-container { position: absolute; top: 1rem; right: 1rem; order: 0; }
      
      table { table-layout: auto; }
      .filters-section { grid-template-columns: 1fr; }
      table, thead, tbody, th, td, tr { display: block; }
      thead tr { position: absolute; top: -9999px; left: -9999px; }
      tr { border: 1px solid var(--border-color); margin-bottom: 2rem; padding: 1rem; background: var(--bg-color); box-shadow: 4px 4px 0px var(--border-color); }
      td { border: none; border-bottom: 1px dashed #ccc; position: relative; padding-left: 40% !important; min-height: 2.5rem; width: 100% !important; padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; text-align: left; }
      td:last-child { border-bottom: none; }
      td::before { content: attr(data-label); position: absolute; left: 0.8rem; width: 35%; font-family: var(--font-heading); font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; white-space: pre-wrap; line-height: 1.1; }
      
      .notes-label { font-family: var(--font-ui); font-weight: bold; font-style: normal; text-transform: uppercase; font-size: 0.75rem; display: block; margin-bottom: 0.3rem; opacity: 0.7; }
      
      .col-year, .col-module { padding-left: 0.8rem !important; }
      .col-year::before, .col-module::before { display: none; }
      .col-module { border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 0.5rem; font-size: 1.4rem; }
      
      .brand-title { display: block; font-size: 4.5rem; position: relative; height: 11rem; padding-bottom: 0; margin-bottom: 0; }
      .brand-title .word-wrap { display: block; text-align: center; position: absolute; width: 100%; left: 0; line-height: 1; }
      .brand-title #first-name { top: 0; }
      .brand-title #last-name { top: 6rem; }
      .brand-title span { padding: 0 5px; margin: 0 -3px; }
      .header-sub { margin-top: 2rem; margin-bottom: 2rem; font-size: 0.85rem; }
      .name-space { display: none; }
    }
    #scrollToTopBtn {
      opacity: 0; pointer-events: none; position: fixed; bottom: 30px; right: 5%; z-index: 99;
      width: 55px; height: 55px; border-radius: 50%;
      border: none; outline: none; background-color: var(--text-color); color: var(--bg-color);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: opacity 0.5s ease, transform 0.2s;
    }
    #scrollToTopBtn.visible { opacity: 1; pointer-events: auto; }
    #scrollToTopBtn:hover { opacity: 0.8; transform: scale(1.1); }
    @media (max-width: 1200px) {
      #scrollToTopBtn { right: 20px; bottom: 20px; width: 45px; height: 45px; }
    }
    
    .version-footer {
      text-align: center;
      padding: 2rem 0;
      color: var(--text-color);
      opacity: 0.3;
      font-size: 0.8rem;
      font-family: var(--font-ui);
    }
    .youtube-link {
      display: inline-block; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; font-family: var(--font-ui);
      background: #3B0A0F; color: #FFFEF2; padding: 0.35rem 0.6rem; 
      text-decoration: none; border-radius: 2px; margin: 2px 0; width: 100%; text-align: center;
      border: none;
    }
    [data-theme="dark"] .youtube-link {
      background: #F5C4C4; color: #0A0F3B;
    }
    .excel-link {
      display: inline-block; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; font-family: var(--font-ui);
      background: #0E3B0A; color: #FFFEF2; padding: 0.35rem 0.6rem; 
      text-decoration: none; border-radius: 2px; margin: 2px 0; width: 100%; text-align: center;
      border: none;
    }
    [data-theme="dark"] .excel-link {
      background: #C4F5C8; color: #0A0F3B;
    }
    .github-link {
      display: inline-block; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; font-family: var(--font-ui);
      background: #0A193B; color: #FFFEF2; padding: 0.35rem 0.6rem; 
      text-decoration: none; border-radius: 2px; margin: 2px 0; width: 100%; text-align: center;
      border: none;
    }
    [data-theme="dark"] .github-link {
      background: #C4D3F5; color: #0A0F3B;
    }
    #cvSearchResults {
      margin: 1.5rem 0;
      padding: 1.5rem;
      background: var(--bg-color);
      border: 1px solid var(--border-color);
      box-shadow: 4px 4px 0px var(--border-color);
      display: none;
    }
    .cv-match-title {
      font-family: var(--font-heading);
      font-size: 1.1rem;
      margin-bottom: 0.8rem;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 0.4rem;
    }

