/* Kim Busch Portfolio — Styles */

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

  :root {
    --ink: #1a1714;
    --paper: #ffffff;
    --paper-warm: #f4f4f4;
    --accent: #6b3fa0;
    --accent-soft: #ede5f5;
    --muted: #7a7060;
    --border: #e0e0e0;
    --white: #fff;
    --serif: 'Poppins', sans-serif;
    --sans: 'Poppins', sans-serif;
    --nav-h: 64px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.7;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    gap: 2rem;
  }
  .nav-logo {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-logo span { color: var(--accent); }
  .nav-links {
    display: flex; gap: 2rem; list-style: none; margin-left: auto;
  }
  .nav-links li a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
    cursor: pointer;
  }
  .nav-links li a:hover, .nav-links li a.active { color: var(--accent); }

  .hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; margin-left: auto; padding: 4px;
    background: none; border: none;
  }
  .hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); transition: all 0.3s;
  }

  .mobile-menu {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    flex-direction: column; gap: 1.25rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-size: 1rem; font-weight: 500;
    color: var(--muted); text-decoration: none;
    letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer;
  }
  .mobile-menu a:hover { color: var(--accent); }

  /* PAGES */
  .page { display: none; padding-top: var(--nav-h); min-height: 100vh; }
  .page.active { display: block; }

  /* SECTION WRAPPER */
  .wrap { max-width: 1375px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

  /* ===== HOME PAGE ===== */
  .hero {
    background: var(--accent-soft);
    width: 100%;
    border-top: none;
    border-bottom: none;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
    max-width: 1375px;
    margin: 0 auto;
  }
  .hero-text { }
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .hero-eyebrow::before {
    content: '';
    display: block; width: 2rem; height: 1px; background: var(--accent);
  }
  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.5rem;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--accent);
  }
  .hero-bio {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 42ch;
    margin-bottom: 2rem;
  }
  .hero-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
    border: none;
  }
  .hero-cta:hover { background: var(--accent); transform: translateY(-1px); }
  .hero-cta svg { width: 14px; height: 14px; transition: transform 0.2s; }
  .hero-cta:hover svg { transform: translateX(3px); }

  .hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    max-height: 260px;
    max-width: 208px;
  }
  .hero-img-placeholder {
    width: 100%; height: 100%;
    background: var(--paper-warm);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
  }

  .hero-img-placeholder svg { opacity: 0.35; }
  .hero-tag {
    position: absolute;
    bottom: 1.5rem; left: -1.5rem;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
  }
  .hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; }

  /* DIVIDER */
  /* OVERLAP BLOCK */
  .overlap-block {
    position: relative;
    z-index: 10;
    max-width: 1375px;
    margin: -3rem auto 0;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }
  .overlap-inner {
    background: var(--white);
    border-radius: 4px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(26,23,20,0.08);
  }
  .overlap-text {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 72ch;
  }

  /* AI SEARCH */
  .ai-search-wrap {
    max-width: 1375px;
    margin: 2.5rem auto 0;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }
  .ai-search-box {
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(26,23,20,0.06);
  }
  .ai-search-messages {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 260px;
    overflow-y: auto;
  }
  .ai-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .ai-msg--user {
    flex-direction: row-reverse;
  }
  .ai-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
  }
  .ai-avatar-user {
    background: var(--ink);
  }
  .ai-bubble {
    background: var(--paper-warm);
    border-radius: 4px;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    color: var(--ink);
    line-height: 1.6;
    max-width: 80%;
  }
  .ai-msg--user .ai-bubble {
    background: var(--accent);
    color: #fff;
  }
  .ai-chip {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 2px;
    transition: background 0.2s;
  }
  .ai-chip:hover { background: var(--accent); color: #fff; }
  .ai-typing {
    display: flex; gap: 4px; align-items: center; padding: 0.4rem 0;
  }
  .ai-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--muted); display: block;
    animation: typing-bounce 1.2s ease-in-out infinite;
  }
  .ai-typing span:nth-child(2) { animation-delay: 0.2s; }
  .ai-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes typing-bounce {
    0%,60%,100% { transform: translateY(0); opacity:0.4; }
    30% { transform: translateY(-5px); opacity:1; }
  }
  .ai-search-input-row {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  .ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--ink);
    padding: 0.25rem 0.25rem;
  }
  .ai-search-input::placeholder { color: var(--muted); }
  .ai-search-send {
    background: var(--accent);
    border: none;
    border-radius: 4px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .ai-search-send:hover { background: var(--ink); }

  .section-divider {
    max-width: 1375px; margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex; align-items: center; gap: 1.5rem;
  }
  .section-divider h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .divider-line { flex: 1; height: 1px; background: var(--border); }
  .divider-num {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }

  /* PROJECTS GRID */
  .projects-grid {
    max-width: 1375px;
    margin: 2.5rem auto 5rem;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .project-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
  }
  .project-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 48px rgba(26,23,20,0.13);
  }
  .project-thumb {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
  }
  .project-thumb-bg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .project-card:hover .project-thumb-bg {
    transform: scale(1.08);
  }
  .thumb-1 { background: #e8e2f5; }
  .thumb-2 { background: #e8e2f5; }
  .thumb-3 { background: #e8e2f5; }
  .project-thumb-icon {
    width: 56px; height: 56px; opacity: 0.5;
  }
  .project-num {
    position: absolute; top: 1rem; left: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--white);
    padding: 0.25rem 0.6rem;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
  }
  .project-tag-pill {
    position: absolute; top: 1rem; right: 1rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
  }
  .project-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex; flex-direction: column; flex: 1;
  }
  .project-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.6rem;
  }
  .project-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
  }
  .project-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--accent-soft);
    padding-bottom: 2px;
    transition: border-color 0.2s, gap 0.2s;
    align-self: flex-start;
  }
  .project-link:hover { border-color: var(--accent); gap: 0.7rem; }

  /* ===== ABOUT PAGE ===== */
  .about-hero {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) 0;
    max-width: 1375px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: start;
  }
  .about-heading {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
  }
  .about-heading em { font-style: normal; color: var(--accent); }
  .about-body { font-size: 1rem; color: var(--muted); line-height: 1.85; }
  .about-body p + p { margin-top: 1rem; }

  .about-sidebar {
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 2rem;
  }
  .about-sidebar h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .skill-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .skill-row:last-child { border-bottom: none; }
  .skill-label { color: var(--ink); font-weight: 500; }
  .skill-dots { display: flex; gap: 4px; }
  .skill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border);
  }
  .skill-dot.filled { background: var(--accent); }

  .about-values {
    max-width: 1375px; margin: 3.5rem auto 5rem;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    overflow: hidden;
  }
  .value-card {
    background: var(--paper);
    padding: 2rem;
  }
  .value-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 0.5rem;
  }
  .value-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .value-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

  /* ===== DESIGN PROJECTS PAGE ===== */
  .dp-header {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) 0;
    max-width: 1375px; margin: 0 auto;
    display: flex; align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
  }
  .dp-header-left h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
  }
  .dp-header-left p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 0.5rem;
    max-width: 42ch;
  }
  .dp-filter {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
  }
  .filter-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .filter-btn:hover, .filter-btn.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  .dp-list {
    max-width: 1375px; margin: 0 auto 5rem;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }
  .dp-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    align-items: start;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .dp-item:hover .dp-item-thumb { transform: scale(1.02); }
  .dp-item-thumb-wrap {
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
  }
  .dp-item-thumb {
    width: 100%; height: 100%;
    transition: transform 0.4s;
    display: flex; align-items: center; justify-content: center;
  }
  .dp-item-content { padding-top: 0.25rem; }
  .dp-item-meta {
    display: flex; gap: 1rem; align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
  }
  .dp-item-cat {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .dp-item-year {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .dp-item h3 {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  .dp-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 55ch;
  }
  .dp-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
  .dp-tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.75rem;
    background: var(--paper-warm);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    color: var(--muted);
  }
  .dp-read-more {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
    padding-bottom: 2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
  }
  .dp-read-more:hover { color: var(--accent); border-color: var(--accent); }

  /* PROJECT DETAIL MODAL */
  .modal-overlay {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--paper);
    overflow-y: auto;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .modal-overlay.closing {
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.6, 1);
  }
  .modal-overlay.open {
    display: block;
    transform: translateY(0);
  }
  .modal-overlay.animating {
    display: block;
  }
  .modal {
    background: var(--paper);
    max-width: 1375px;
    min-height: calc(100vh - var(--nav-h));
    margin: 0 auto;
    border: none;
    border-radius: 0;
    padding: 3rem clamp(1.5rem, 4vw, 4rem) 5rem;
    position: relative;
  }
  .modal-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
  }
  .modal-col-left {}
  .modal-col-right {
    padding-top: 0.25rem;
  }
  .modal-strategy-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.6rem;
  }
  .modal-strategy-label::before {
    content: '';
    display: block; width: 1.5rem; height: 1px; background: var(--accent);
  }
  .modal-strategy-item {
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: var(--paper-warm);
  }
  .modal-strategy-item h5 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
  }
  .modal-strategy-item p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
  }
  .modal-bottom {}
  @media (max-width: 700px) {
    .modal-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  }
  .modal-close {
    position: absolute; top: 1.25rem; right: 1.5rem;
    background: none;
    border: none;
    border-radius: 4px; cursor: pointer;
    font-size: 2.5rem; color: var(--muted);
    line-height: 1; padding: 0.4rem 0.75rem;
    transition: color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    z-index: 201;
    display: flex; align-items: center; gap: 0.4rem;
  }
  .modal-close:hover {
    color: var(--accent);
    transform: scale(1.1);
    opacity: 1;
  }
  .modal-close-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    margin-left: 0.35rem;
  }
  .modal-close:hover .modal-close-label {
    opacity: 1;
    transform: translateX(0);
  }

  /* MODAL HERO HEADER */
  .modal-hero {
    background: var(--accent-soft);
    min-height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
    position: relative;
    margin: -3rem calc(-1 * clamp(1.5rem, 4vw, 4rem)) 0;
    overflow: visible;
  }
  .modal-hero-left {
    padding-right: 2rem;
  }
  .modal-hero-cat {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.6rem;
  }
  .modal-hero-cat::before {
    content: '';
    display: block; width: 1.5rem; height: 1px; background: var(--accent);
  }
  .modal-hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
  }
  .modal-hero-right {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 340px;
  }
  .modal-hero-img {
    position: absolute;
    bottom: -60px;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4/3;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 16px 48px rgba(26,23,20,0.14);
    z-index: 10;
  }
  @media (max-width: 700px) {
    .modal-hero { grid-template-columns: 1fr; min-height: auto; }
    .modal-hero-right { display: none; }
    .modal-hero { margin-bottom: 1rem; }
  }

  .modal-body-offset {
    padding-top: 80px;
  }

  .modal-cat { display: none; }

  
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.75rem;
  }
  .modal h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
  }
  .modal-thumb {
    width: 100%; aspect-ratio: 16/7;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    margin-bottom: 2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em;
  }
  .modal-section { margin-bottom: 1.75rem; }
  .modal-section h4 {
    font-family: var(--serif);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
  }
  .modal-section p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
  }
  .modal-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
  }
  .metric {
    background: var(--paper-warm);
    padding: 1rem;
    text-align: center;
  }
  .metric-val {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  .metric-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  footer p { font-size: 0.8rem; color: var(--muted); }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
  }
  .footer-links a:hover { color: var(--accent); }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-height: 300px; max-width: 340px; }
    .hero-tag { left: 0; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .about-hero { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .dp-item { grid-template-columns: 1fr; }
    .dp-item-thumb-wrap { aspect-ratio: 16/7; }
    .modal-metrics { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-tag { display: none; }
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.55s ease both; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.22s; }
  .delay-3 { animation-delay: 0.34s; }
  .delay-4 { animation-delay: 0.46s; }

  [data-theme="dark"] {
    --ink: #f0ece4;
    --paper: #16151200;
    --paper-warm: #1e1c1a;
    --muted: #9a9080;
    --border: #2e2b28;
    --white: #1a1917;
    --accent: #a06ed8;
    --accent-soft: #2d1f40;
  }
  [data-theme="dark"] body {
    background: #121110;
  }
  [data-theme="dark"] .hero {
    background: #1a1917;
  }
  [data-theme="dark"] .project-card {
    background: #1a1917;
  }
  [data-theme="dark"] .modal {
    background: #121110;
  }
  [data-theme="dark"] .modal-overlay {
    background: #121110;
  }
  [data-theme="dark"] .about-sidebar {
    background: #1e1c1a;
  }
  [data-theme="dark"] .value-card {
    background: #1a1917;
  }
  [data-theme="dark"] .about-values {
    background: #2e2b28;
  }
  [data-theme="dark"] .dp-tag {
    background: #1e1c1a;
  }
  [data-theme="dark"] .modal-thumb {
    background: #1e1c1a;
  }
  [data-theme="dark"] .metric {
    background: #1e1c1a;
  }
  [data-theme="dark"] .overlap-block .about-values {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  [data-theme="dark"] nav {
    background: #121110;
    border-bottom-color: #2e2b28;
  }
  [data-theme="dark"] footer {
    border-top-color: #2e2b28;
  }
  [data-theme="dark"] .hero-img-placeholder {
    background: #1e1c1a;
    border-color: #2e2b28;
  }

  /* THEME TOGGLE */
  .theme-toggle {
    background: none;
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 20px;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s;
    margin-left: auto;
    flex-shrink: 0;
  }
  .theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .theme-toggle-icon {
    font-size: 14px;
    line-height: 1;
  }


  /* ===== VISUALS PAGE ===== */
  .visuals-header {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) 0;
    max-width: 1375px; margin: 0 auto;
    padding-bottom: 2rem;
  }
  .visuals-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
  }
  .visuals-header p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 0.5rem;
  }
  .visuals-section {
    max-width: 1375px;
    margin: 0 auto;
    padding: 3rem clamp(1.5rem, 5vw, 4rem) 0;
  }
  .visuals-section-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    color: var(--ink);
  }
  .visuals-section-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 2rem;
  }
  .visuals-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0 0;
  }
  .visuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
  }
  .visuals-grid.logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .visual-item {
    background: var(--paper-warm);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
  }
  .visual-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,23,20,0.08);
  }
  .visual-item.logo-item {
    aspect-ratio: 4/3;
  }
  .visual-item svg { flex-shrink: 0; }
  .visual-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
  }
  .anim-item {
    background: var(--paper-warm);
    box-shadow: 0 2px 12px rgba(26,23,20,0.07);
    border-radius: 4px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    overflow: hidden;
  }
  /* Icon animations */
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes pulse { 0%,100% { transform: scale(1); opacity:1; } 50% { transform: scale(1.2); opacity:0.7; } }
  @keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  @keyframes draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
  @keyframes morph { 0%,100% { border-radius: 4px; } 50% { border-radius: 50%; } }
  @keyframes wave { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
  .spin-anim { animation: spin 2s linear infinite; }
  .pulse-anim { animation: pulse 1.5s ease-in-out infinite; }
  .bounce-anim { animation: bounce 1.2s ease-in-out infinite; }
  .morph-anim { animation: morph 2s ease-in-out infinite; }
  .bar1 { animation: wave 1s ease-in-out infinite; }
  .bar2 { animation: wave 1s ease-in-out infinite 0.15s; }
  .bar3 { animation: wave 1s ease-in-out infinite 0.3s; }
  .bar4 { animation: wave 1s ease-in-out infinite 0.45s; }
  .draw-anim { stroke-dasharray: 200; animation: draw 2s ease-in-out infinite alternate; }