    :root {
      --bg: #0f0f0f;
      --surface: #1a1a1a;
      --border: #2a2a2a;
      --text: #e8e8e8;
      --muted: #888;
      --accent: #4f8ef7;
      --accent-dim: #1e3a6e;
      --green: #3ecf6e;
      --green-dim: #0d3320;
      --orange: #f97316;
      --orange-dim: #3d1a06;
      --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

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

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-sans);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ── Gate screen ─────────────────────────────────── */
    #gate {
      text-align: center;
      padding: 2rem;
      animation: fadeIn .5s ease;
    }

    #gate h1 {
      font-size: clamp(2rem, 6vw, 4rem);
      font-weight: 700;
      letter-spacing: -.02em;
      margin-bottom: .75rem;
    }

    #gate p {
      color: var(--muted);
      font-size: 1.1rem;
      margin-bottom: 3rem;
    }

    .gate-buttons {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .gate-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: .75rem;
      padding: 2rem 2.5rem;
      border-radius: 16px;
      max-width: 200px;
      border: 2px solid var(--border);
      background: var(--surface);
      cursor: pointer;
      transition: border-color .2s, transform .15s, box-shadow .2s;
      min-width: 160px;
      text-decoration: none;
      color: inherit;
    }

    .gate-btn:hover { transform: translateY(-4px); }

    .gate-btn.human:hover {
      border-color: var(--accent);
      box-shadow: 0 8px 32px rgba(79,142,247,.2);
    }

    .gate-btn.robot:hover {
      border-color: var(--green);
      box-shadow: 0 8px 32px rgba(62,207,110,.2);
    }

.gate-btn .icon { font-size: 3rem; }
    .gate-btn .label { font-weight: 600; font-size: 1.1rem; }
    .gate-btn .sub { font-size: .8rem; color: var(--muted); }

    /* ── Shared CV chrome ────────────────────────────── */
    #cv {
      display: none;
      width: 100%;
      min-height: 100vh;
      animation: fadeIn .4s ease;
    }

    #cv.visible { display: block; }

    .cv-topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: .75rem 2rem;
      background: rgba(15,15,15,.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }

    .cv-topbar button,
    .cv-topbar-back {
      background: none;
      border: 1px solid var(--border);
      color: var(--muted);
      padding: .3rem .75rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: .8rem;
      text-decoration: none;
      transition: color .2s, border-color .2s;
    }

    .cv-topbar button:hover,
    .cv-topbar-back:hover { color: var(--text); border-color: var(--text); }

    .mode-indicator {
      font-size: .75rem;
      font-family: var(--font-mono);
      margin-left: auto;
      color: var(--muted);
    }

    .mode-indicator span { color: var(--accent); }

    /* robot-mode removed — robot routes to llms.txt */

    /* ── Human CV ────────────────────────────────────── */
    .human-cv {
      max-width: 860px;
      margin: 0 auto;
      padding: 2rem 2rem 4rem;
    }

    .human-cv .header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    .human-cv .name { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
    .human-cv .title { font-size: 1.2rem; color: var(--accent); margin-top: .25rem; font-weight: 500; }
    .human-cv .tagline { color: var(--muted); margin-top: .5rem; font-size: .95rem; max-width: 100%; }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: .3rem;
      align-items: flex-start;
      padding-top: 1rem;
      padding-bottom: 1rem;
    }

    .contact-links a {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      color: var(--muted);
      text-decoration: none;
      font-size: .82rem;
      font-family: var(--font-mono);
      padding: .22rem .55rem;
      border-radius: 6px;
      border: 1px solid transparent;
      transition: color .15s, border-color .15s, background .15s;
    }

    .contact-links a:hover {
      color: var(--text);
      border-color: var(--border);
      background: var(--surface);
    }

    .contact-links a svg {
      flex-shrink: 0;
      opacity: .6;
      transition: opacity .15s;
    }

    .contact-links a:hover svg { opacity: 1; }

    .divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

    .section-label {
      font-size: .7rem;
      font-family: var(--font-mono);
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
    }

    /* Experience */
    .employer-block {
      margin-bottom: 1.75rem;
    }

    .employer-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      border-radius: 10px;
      padding: .9rem 1.25rem;
      margin-bottom: 1rem;
    }

    .employer-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      flex-wrap: wrap;
      gap: .35rem;
      margin-bottom: .35rem;
    }

    .employer-role { font-weight: 700; font-size: 1rem; }
    .employer-name { color: var(--accent); font-weight: 700; font-size: 1rem; }
    .employer-dates { font-size: .75rem; font-family: var(--font-mono); color: var(--muted); }
    .employer-desc { color: var(--muted); font-size: .85rem; line-height: 1.6; margin-bottom: .5rem; }

    .employer-responsibilities {
      margin-top: .5rem;
      padding-top: .5rem;
      border-top: 1px solid var(--border);
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .2rem;
    }

    .employer-responsibilities li {
      display: flex;
      align-items: baseline;
      gap: .5rem;
      color: var(--muted);
      font-size: .82rem;
      line-height: 1.5;
    }

    .employer-responsibilities li::before {
      content: '–';
      color: var(--accent);
      flex-shrink: 0;
      font-weight: 600;
    }

    .employer-card[style*="--green"] .employer-responsibilities li::before {
      color: var(--green);
    }

    .employer-card[style*="--orange"] .employer-responsibilities li::before {
      color: var(--orange);
    }

    .clients-label {
      display: flex;
      align-items: center;
      gap: .75rem;
      font-size: .65rem;
      font-family: var(--font-mono);
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0;
      margin-left: 0.7rem;
      padding-left: 3rem;
      position: relative;
    }

    .clients-label::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-dim);
    }

    .clients-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, var(--border), transparent);
    }

    .client-projects {
      padding: 1rem 0 .25rem 2rem;
      border-left: 1px solid var(--border);
      margin-left: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
    }

    .exp-item {
      position: relative;
      padding-bottom: 1.1rem;
    }

    .exp-item::before {
      content: '';
      position: absolute;
      left: -2.38rem;
      top: .35rem;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--surface);
      border: 1.5px solid var(--border);
      transition: border-color .2s, background .2s, box-shadow .2s;
      z-index: 1;
    }

    .exp-item::before {
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    .exp-item:last-child {
      padding-bottom: 0;
    }

    /* Devoca green accent variant */
    .employer-block:has(.employer-card[style*="--green"]) .clients-label::before {
      background: var(--green);
      box-shadow: 0 0 0 3px var(--green-dim);
    }

    .employer-block:has(.employer-card[style*="--green"]) .exp-item::before {
      border-color: var(--green);
      background: var(--green-dim);
    }

    /* Uutispulssi orange accent variant */
    .employer-block:has(.employer-card[style*="--orange"]) .clients-label::before {
      background: var(--orange);
      box-shadow: 0 0 0 3px var(--orange-dim);
    }

    .employer-block:has(.employer-card[style*="--orange"]) .exp-item::before {
      border-color: var(--orange);
      background: var(--orange-dim);
    }

    .exp-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      flex-wrap: wrap;
      gap: .5rem;
      margin-bottom: .25rem;
    }

    .exp-role { font-weight: 600; font-size: .9rem; }
    .exp-company { color: var(--accent); font-weight: 600; }
    .exp-dates { font-size: .72rem; font-family: var(--font-mono); color: var(--muted); }
    .exp-tech { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .35rem; }
    .exp-desc { color: var(--muted); font-size: .83rem; line-height: 1.55; margin-top: .25rem; }
    .exp-desc li { margin-bottom: .15rem; }

    /* Skills */
    .skills-grid {
      display: flex;
      flex-wrap: wrap;
      gap: .4rem;
    }

    .skill-chip {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: .25rem .75rem;
      font-size: .75rem;
      font-family: var(--font-mono);
      color: var(--muted);
      transition: color .15s, border-color .15s;
    }

    .skill-chip:hover {
      color: var(--text);
      border-color: var(--accent);
    }

    /* Education */
    .edu-item { margin-bottom: 1rem; }
    .edu-degree { font-weight: 700; }
    .edu-school { color: var(--accent); }
    .edu-dates { font-size: .8rem; font-family: var(--font-mono); color: var(--muted); margin-top: .2rem; }

/* ── Print ───────────────────────────────────────── */
    @media print {
      /* Force background/color rendering on all elements */
      * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

      body { background: #fff; color: #000; }
      #gate { display: none !important; }
      #cv { display: block !important; }
      .cv-topbar { display: none !important; }

      /* Always print human view */
      #human-view { display: block !important; }

      .human-cv {
        padding: 0;
        max-width: 100%;
        font-size: 11pt;
      }

      :root {
        --text: #000;
        --muted: #444;
        --accent: #1a56db;
        --surface: #f5f5f5;
        --border: #ddd;
        --bg: #fff;
      }

      .skill-chip {
        border-color: #ccc;
        background: #f0f0f0;
      }

      a { color: var(--accent); text-decoration: none; }
      .contact-links a { border: none; background: none; padding: .1rem 0; }
      .contact-links a svg { opacity: .7; }

      .divider { background: #ddd; }
      .section-label { color: #666; }
      .exp-dates, .edu-dates { color: #666; }

      /* Avoid page breaks inside items */
      .exp-item, .edu-item { page-break-inside: avoid; }

      /* Timeline circles — use light fills so they're visible on white */
      .clients-label::before {
        background: #1a56db !important;
        box-shadow: 0 0 0 3px #d0dff9 !important;
      }
      .exp-item::before {
        background: #d0dff9 !important;
        border-color: #1a56db !important;
      }

      /* Devoca green */
      .employer-block:has(.employer-card[style*="--green"]) .clients-label::before {
        background: #3ecf6e !important;
        box-shadow: 0 0 0 3px #c8f5d8 !important;
      }
      .employer-block:has(.employer-card[style*="--green"]) .exp-item::before {
        background: #c8f5d8 !important;
        border-color: #3ecf6e !important;
      }

      /* Uutispulssi orange */
      .employer-block:has(.employer-card[style*="--orange"]) .clients-label::before {
        background: #f97316 !important;
        box-shadow: 0 0 0 3px #fde8d5 !important;
      }
      .employer-block:has(.employer-card[style*="--orange"]) .exp-item::before {
        background: #fde8d5 !important;
        border-color: #f97316 !important;
      }
    }

    /* ── Animations ──────────────────────────────────── */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── Responsive ──────────────────────────────────── */
    @media (max-width: 600px) {
      .human-cv .header { flex-direction: column; }
      .contact-links { align-items: flex-start; }
      .cv-topbar { padding: .75rem 1rem; }
    }
