  :root {
    --bg: #f8f6f1;
    --bg-card: #ffffff;
    --bg-nav: rgba(248,246,241,0.92);
    --text: #111110;
    --text-muted: #5a5955;
    --text-faint: #9a9894;
    --accent: #1a1a18;
    --rule: rgba(0,0,0,0.10);
    --tag-bg: #eeece7;
    --tag-text: #3a3a38;
    --nav-active: #111110;
    --nav-indicator: #111110;
  }
  /* Intentional duplication of :root.dark values:
     This media query applies dark tokens *before* JS initialises,
     preventing a theme-flash on page load. Once JS runs, :root.dark
     takes over. Removing this block would cause a brief light-mode
     flash for users with a system dark-mode preference. */
  @media (prefers-color-scheme: dark) {
    :root:not(.light) {
      --bg: #0e0e0d;
      --bg-card: #161615;
      --bg-nav: rgba(14,14,13,0.92);
      --text: #f0ede6;
      --text-muted: #9a9791;
      --text-faint: #5a5855;
      --accent: #f0ede6;
      --rule: rgba(255,255,255,0.08);
      --tag-bg: #1e1e1c;
      --tag-text: #b0ada6;
      --nav-active: #f0ede6;
      --nav-indicator: #f0ede6;
    }
  }
  :root.dark {
    --bg: #0e0e0d;
    --bg-card: #161615;
    --bg-nav: rgba(14,14,13,0.92);
    --text: #f0ede6;
    --text-muted: #9a9791;
    --text-faint: #5a5855;
    --accent: #f0ede6;
    --rule: rgba(255,255,255,0.08);
    --tag-bg: #1e1e1c;
    --tag-text: #b0ada6;
    --nav-active: #f0ede6;
    --nav-indicator: #f0ede6;
  }
  html, body { transition: background 0.3s ease, color 0.3s ease; }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; font-size: 18px; }
  body {
    font-family: 'Instrument Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  /* NAV */
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.6rem, 2vw, 1.25rem);
    padding: 0 clamp(1rem, 4vw, 3rem);
    height: 52px;
  }
  .brand-logo {
    width: clamp(340px, 35vw, 480px);
    height: auto;
    display: block;
  }
  .nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
  }
  .nav-links {
    display: flex;
    gap: clamp(0.6rem, 2vw, 1.25rem);
    list-style: none;
  }
  .nav-links a {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--nav-indicator);
    transform: scaleX(0);
    transition: transform 0.2s;
    transform-origin: left;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(0.4); }
  .nav-links a.active { color: var(--nav-active); }
  .nav-links a.active::after { transform: scaleX(1); }

  /* THEME TOGGLE */
  .theme-toggle {
    background: none;
    border: 1px solid var(--rule);
    color: var(--text-muted);
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
    margin-left: 0;
  }
  .theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }

  /* FADE MASK */
  .scroll-fade {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    z-index: 90;
    pointer-events: none;
  }

  /* MAIN LAYOUT */
  main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }

  /* SECTIONS */
  section {
    padding-top: 6rem;
    padding-bottom: 5rem;
  }
  section:first-child { padding-top: 9rem; }

  /* HERO */
  .hero-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
  .hero-tagline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.2;
    color: var(--text);
    font-style: normal;
  }
  .hero-tagline em {
    font-style: normal;
    font-family: 'DM Serif Display', serif;
  }
  .hero-body {
    max-width: 100%;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
  }

  /* SECTION LABEL */
  .section-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
  }

  /* WORK SECTION */
  .section-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: 2.5rem;
  }
  .section-heading em {
    font-style: italic;
    color: var(--text-muted);
  }

  /* PROJECT CARDS */
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .project-meta {
    display: flex;
    align-items: baseline;
    gap: 1rem;
  }
  .project-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .project-org {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
  }
  .project-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--text);
  }
  .project-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
  }
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
  }
  .tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    letter-spacing: 0.03em;
  }

  /* CURRENT FOCUS */
  .focus-card {
    background: var(--text);
    color: var(--bg);
    border-radius: 4px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
  }
  .focus-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 0.75rem;
  }
  .focus-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--bg);
  }
  .focus-body {
    font-size: 0.92rem;
    line-height: 1.75;
    opacity: 0.75;
    max-width: 560px;
    margin-bottom: 1.25rem;
    color: var(--bg);
  }
  .focus-tags .tag {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
  }
  @media (prefers-color-scheme: dark) {
    :root:not(.light) .focus-tags .tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
  }
  .cta-contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.25rem;
  }
  .cta-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--bg);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .cta-contact-links a:hover { opacity: 1; }
  .cta-contact-links a svg { flex-shrink: 0; }
  .cta-contact-sep { display: none; }
  .cta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* ABOUT */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  .about-person-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
  }
  .about-photo {
    width: 200px;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    filter: grayscale(15%);
    flex-shrink: 0;
  }
  .about-person-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.25rem;
  }
  .about-name-block {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
  }
  .about-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
  .about-role {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }
  .about-brand-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    align-items: start;
  }
  .about-wordmark {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--text);
  }
  .about-etym {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.4rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
  }
  .about-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
  }
  .about-body + .about-body { margin-top: 0.85rem; }
  .about-spacer { visibility: hidden; pointer-events: none; }
  .about-body-serif {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.4;
    margin-top: 1.25rem;
    color: var(--text-muted);
  }

  /* IMPRESSUM */
  #impressum {
    background: var(--bg-card);
    border-top: 1px solid var(--rule);
    padding-top: 5rem;
    padding-bottom: 4rem;
    margin-top: 4rem;
  }
  .impressum-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }
  .impressum-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
  }
  .impressum-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    font-size: 0.83rem;
    line-height: 1.8;
  }
  .impressum-col-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.75rem;
  }
  .impressum-col a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
  }
  .impressum-col a:hover { border-color: var(--text); }
  .icon-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .impressum-note {
    color: var(--text-faint);
    font-style: italic;
    margin-top: 0.3rem;
  }
  .privacy-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
  }
  .privacy-link:hover {
    border-color: var(--text);
  }
  .impressum-legal {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    font-size: 0.75rem;
    color: var(--text-faint);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.6;
  }

  /* PRIVACY MODAL */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2.5rem;
    max-width: 620px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
  }
  .modal h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  .modal-sub {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-bottom: 2rem;
    font-family: 'DM Mono', monospace;
  }
  .modal-section { margin-bottom: 1.5rem; }
  .modal-section h3 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
  }
  .modal-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
  }
  .modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-faint);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
  }
  .modal-close:hover { color: var(--text); }

  #privacy-modal .modal-section p a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
  }

  #privacy-modal .modal-section p a:hover {
    border-color: var(--text);
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    html { font-size: 16px; }
    .hero-header {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .hero-logo { width: 140px; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-person-row { grid-template-columns: 160px 1fr; gap: 1.5rem; }
    .about-brand-row { grid-template-columns: 1fr; }
    .impressum-grid { grid-template-columns: 1fr 1fr; }
    .focus-card { grid-template-columns: 1fr; }
  }
  @media (max-width: 480px) {
    .impressum-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 0.55rem; }
    .about-person-row {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .about-photo {
      width: 120px;
      height: 130px;
      border-radius: 6px;
    }
  }
