/* ============================================
   JUCE · withjuce.com
   Schwarz/Weiß Design System
   ============================================ */

   :root {
    /* Color palette */
    --juce-bg: #ffffff;
    --juce-bg-soft: #fafafa;
    --juce-bg-card: #ffffff;
    --juce-ink: #0a0a0a;
    --juce-ink-soft: #1f1f1f;
    --juce-muted: #6b6b6b;
    --juce-muted-light: #a3a3a3;
    --juce-border: #e8e8e8;
    --juce-border-strong: #d4d4d4;
  
    /* Typography */
    --juce-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --juce-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  
    /* Sizing */
    --juce-radius: 10px;
    --juce-radius-lg: 16px;
  
    color-scheme: light;
  }
  
  * { box-sizing: border-box; }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html, body { margin: 0; padding: 0; }
  html { overflow-x: clip; }
  body {
    overflow-x: clip;
    width: 100%;
    font-family: var(--juce-font);
    background: var(--juce-bg);
    color: var(--juce-ink);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; height: auto; display: block; }
  
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  
  /* --- Layout --- */
  .juce-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    min-width: 0;
  }
  .juce-section { padding: 80px 0; }
  .juce-section + .juce-section { padding-top: 0; }
  
  /* --- Header --- */
  .juce-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--juce-border);
  }
  .juce-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    min-width: 0;
  }
  .juce-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: fit-content;
    line-height: 0;
  }
  .juce-logo img {
    height: 36px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
  }
  .juce-header-mail {
    font-size: 13px;
    color: var(--juce-muted);
    font-weight: 500;
    transition: color 0.15s ease;
    letter-spacing: -0.005em;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .juce-header-mail:hover { color: var(--juce-ink); }
  .juce-header-mail-short { display: none; }
  
  /* --- Hero --- */
  .juce-hero {
    padding: 88px 0 64px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow avatar"
      "copy avatar";
    column-gap: 56px;
    row-gap: 28px;
    align-items: start;
    width: 100%;
    min-width: 0;
  }
  .juce-hero > * { min-width: 0; }
  .juce-eyebrow { grid-area: eyebrow; }
  .juce-avatar { grid-area: avatar; }
  .juce-hero-copy { grid-area: copy; }
  .juce-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--juce-muted);
    font-weight: 600;
    margin-bottom: 28px;
  }
  .juce-h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--juce-ink);
    margin: 0 0 24px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .juce-h1 .juce-h1-soft { color: var(--juce-muted); }
  .juce-lead {
    font-size: 18px;
    color: var(--juce-muted);
    margin: 0 0 36px 0;
    max-width: 580px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    overflow-wrap: break-word;
  }
  
  /* --- Avatar --- */
  .juce-avatar {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--juce-bg-soft);
    border: 1px solid var(--juce-border);
  }
  .juce-avatar svg,
  .juce-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  
  /* --- Buttons --- */
  .juce-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--juce-ink);
    color: var(--juce-bg);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.15s ease;
    border: 1.5px solid var(--juce-ink);
  }
  .juce-btn-ghost {
    background: transparent;
    color: var(--juce-ink);
    border-color: var(--juce-border-strong);
  }
  .juce-btn-ghost:hover {
    border-color: var(--juce-ink);
    background: transparent;
  }
  .juce-btn-lg {
    padding: 17px 32px;
    font-size: 15px;
  }
  
  /* --- Section label --- */
  .juce-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--juce-muted);
    font-weight: 700;
    margin: 0 0 28px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--juce-border);
  }
  
  /* --- Typography --- */
  .juce-h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 16px 0;
    line-height: 1.15;
    color: var(--juce-ink);
  }
  .juce-h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 8px 0;
    color: var(--juce-ink);
  }
  .juce-prose p {
    font-size: 16px;
    color: var(--juce-muted);
    line-height: 1.7;
    margin: 0 0 16px 0;
    max-width: 680px;
    overflow-wrap: break-word;
  }
  .juce-prose p strong { color: var(--juce-ink); font-weight: 600; }
  
  /* --- Timeline --- */
  .juce-timeline-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--juce-border);
  }
  .juce-timeline-group:last-child { border-bottom: none; }
  .juce-timeline-period {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--juce-muted-light);
    font-weight: 700;
    padding-top: 4px;
  }
  .juce-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .juce-timeline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .juce-timeline-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--juce-ink);
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
  }
  .juce-timeline-desc {
    font-size: 14px;
    color: var(--juce-muted);
    overflow-wrap: break-word;
  }
  
  /* --- Card grid --- */
  .juce-grid {
    display: grid;
    gap: 16px;
  }
  .juce-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .juce-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .juce-grid-tight { gap: 12px; }
  
  /* --- Card --- */
  .juce-card {
    background: var(--juce-bg-card);
    border: 1px solid var(--juce-border);
    border-radius: var(--juce-radius-lg);
    padding: 28px;
    transition: all 0.2s ease;
  }
  @media (hover: hover) {
    .juce-card:hover {
      border-color: var(--juce-border-strong);
      transform: translateY(-2px);
    }
    .juce-btn:hover {
      background: var(--juce-ink-soft);
      transform: translateY(-1px);
    }
    .juce-contact .juce-btn:hover {
      background: rgba(255, 255, 255, 0.92);
    }
  }
  .juce-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--juce-muted-light);
    font-weight: 700;
    margin-bottom: 14px;
  }
  .juce-card-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 10px 0;
    color: var(--juce-ink);
  }
  .juce-card-desc {
    font-size: 14px;
    color: var(--juce-muted);
    line-height: 1.6;
    margin: 0;
  }
  
  /* --- Contact block --- */
  .juce-contact {
    background: var(--juce-ink);
    color: var(--juce-bg);
    border-radius: var(--juce-radius-lg);
    padding: 56px 48px;
    text-align: center;
    margin: 80px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .juce-contact .juce-h2 { color: var(--juce-bg); margin-bottom: 12px; }
  .juce-contact-lead {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 28px 0;
    letter-spacing: -0.005em;
  }
  .juce-contact .juce-btn {
    background: var(--juce-bg);
    color: var(--juce-ink);
    border-color: var(--juce-bg);
  }
  /* --- Footer --- */
  .juce-footer {
    border-top: 1px solid var(--juce-border);
    padding: 32px 0;
    font-size: 13px;
    color: var(--juce-muted);
  }
  .juce-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .juce-footer a {
    color: var(--juce-muted);
    transition: color 0.15s ease;
  }
  .juce-footer a:hover { color: var(--juce-ink); }
  .juce-footer-links {
    display: flex;
    gap: 24px;
  }
  .juce-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
  }
  .juce-footer-brand img {
    height: 22px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
  }
  
  /* --- Mobile & tablet --- */
  @media (max-width: 900px) {
    .juce-container {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
    .juce-section { padding: 48px 0; }
    .juce-header-inner { padding: 14px 0; }
    .juce-header-mail-full { display: none; }
    .juce-header-mail-short { display: inline; }
    .juce-logo img { height: 32px; }
  
    /* Hero: single column stack */
    .juce-hero {
      padding: 40px 0 32px 0;
      grid-template-columns: 1fr;
      grid-template-areas:
        "avatar"
        "eyebrow"
        "copy";
      column-gap: 0;
      row-gap: 20px;
      justify-items: start;
    }
    .juce-avatar {
      width: 96px;
      height: 96px;
      justify-self: center;
    }
    .juce-eyebrow {
      margin-bottom: 0;
      letter-spacing: 1.5px;
      line-height: 1.4;
      text-align: center;
      width: 100%;
    }
    .juce-hero-copy { width: 100%; }
    .juce-h1 { font-size: clamp(28px, 7.5vw, 40px); }
    .juce-lead {
      font-size: 16px;
      margin-bottom: 28px;
      max-width: none;
    }
    .juce-h2 { font-size: 26px; }
  
    /* Timeline: stacked */
    .juce-timeline-group {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 20px 0;
    }
    .juce-timeline-period { padding-top: 0; }
  
    /* Cards: one column */
    .juce-grid,
    .juce-grid-2,
    .juce-grid-3 { grid-template-columns: 1fr; }
    .juce-card { padding: 22px; min-width: 0; }
  
    .juce-contact {
      margin: 48px 0;
      padding: 40px 20px;
    }
    .juce-contact-lead { font-size: 15px; }
    .juce-contact .juce-btn {
      max-width: 100%;
      word-break: break-word;
      justify-content: center;
      text-align: center;
    }
  
    .juce-footer-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
    }
  }
  
  @media (max-width: 400px) {
    .juce-container {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
    .juce-eyebrow { font-size: 11px; }
    .juce-avatar { width: 80px; height: 80px; }
    .juce-btn { width: 100%; justify-content: center; }
    .juce-btn-lg { padding: 15px 20px; font-size: 14px; }
    .juce-footer-links { flex-direction: column; gap: 12px; }
  }
  
  /* --- Utility --- */
  .juce-muted { color: var(--juce-muted) !important; }
