    :root {
      --paper:   #FBFAF7;
      --paper-2: #F4F1EA;
      --card:    #FFFFFF;
      --ink:     #1B1A17;
      --ink-2:   #2C2A25;
      --muted:   #6E6A61;
      --faint:   #928D82;
      --line:    #E7E3DA;
      --line-2:  #DBD6CB;
      --accent:  #B4552E;
      --accent-deep: #8E3F1F;
      --accent-soft: rgba(180, 85, 46, 0.09);
      --wrap: 1080px;
      --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
      --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      --shadow-sm: 0 1px 2px rgba(27, 26, 23, 0.05);
      --shadow-md: 0 14px 34px -18px rgba(27, 26, 23, 0.30);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.6;
      color: var(--ink);
      background: var(--paper);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    a { color: var(--accent-deep); text-decoration: none; }
    a:hover { color: var(--accent); }

    h1, h2, h3 { font-family: var(--serif); color: var(--ink-2); font-weight: 700; letter-spacing: -0.015em; overflow-wrap: break-word; }
    body { overflow-x: hidden; }

    .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.6rem; }
    @media (max-width: 440px) { .wrap { padding: 0 1.15rem; } .hero h1 { font-size: 1.95rem; } .section { padding: 3.5rem 0; } }

    .eyebrow {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0 0 0.9rem;
    }
    .section { padding: 5rem 0; border-top: 1px solid var(--line); }
    .section-head { max-width: 640px; margin: 0 0 2.4rem; }
    .section-head h2 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 0.6rem; }
    .section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

    /* ---------- nav ---------- */
    nav {
      position: sticky; top: 0; z-index: 50;
      background: rgba(251, 250, 247, 0.82);
      backdrop-filter: saturate(180%) blur(10px);
      -webkit-backdrop-filter: saturate(180%) blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
    .brand { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--ink-2); letter-spacing: -0.01em; }
    .brand .dot { color: var(--accent); }
    .nav-links { display: flex; align-items: center; gap: 1.7rem; }
    .nav-links a { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
    .nav-links a:hover { color: var(--ink); }
    .nav-links .nav-cta {
      color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px;
      padding: 0.42rem 0.9rem; background: var(--card);
    }
    .nav-links .nav-cta:hover { border-color: var(--accent); color: var(--accent-deep); }
    @media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

    /* ---------- hero ---------- */
    .hero { position: relative; padding: 5.5rem 0 4.5rem; overflow: hidden; }
    .hero::before {
      content: ""; position: absolute; inset: 0;
      background: radial-gradient(120% 90% at 12% -10%, rgba(180, 85, 46, 0.06), transparent 60%);
      pointer-events: none;
    }
    .hero-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
    .hero h1 { font-size: 2.85rem; line-height: 1.13; margin: 0 0 1.3rem; max-width: 15ch; }
    .hero h1 .hl { color: var(--accent-deep); }
    .hero-sub { font-size: 1.13rem; line-height: 1.6; color: var(--muted); max-width: 52ch; margin: 0 0 2rem; }
    .hero-photo {
      width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
      border: 3px solid var(--card); box-shadow: 0 6px 22px -8px rgba(27,26,23,0.35), 0 0 0 1px var(--line-2);
    }
    @media (max-width: 780px) {
      .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
      .hero-photo { width: 96px; height: 96px; order: -1; }
      .hero h1 { font-size: 2.15rem; }
    }

    .btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.2rem; }
    .btn {
      display: inline-flex; align-items: center; gap: 0.5rem;
      font-size: 0.92rem; font-weight: 600; font-family: var(--sans);
      padding: 0.62rem 1.15rem; border-radius: 9px; border: 1px solid transparent;
      transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
    }
    .btn svg { width: 16px; height: 16px; }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
    .btn-ghost { background: var(--card); color: var(--ink-2); border-color: var(--line-2); }
    .btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }

    .cred-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
    .cred-row .lbl { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-right: 0.3rem; }
    .cred {
      font-size: 0.8rem; font-weight: 600; color: var(--ink-2);
      background: var(--card); border: 1px solid var(--line-2);
      padding: 0.34rem 0.72rem; border-radius: 999px;
    }

    /* ---------- pillars ---------- */
    .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
    .pillar {
      background: var(--card); border: 1px solid var(--line); border-radius: 14px;
      padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
      transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }
    .pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
    .pillar-ic {
      width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
      background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 1rem;
    }
    .pillar-ic svg { width: 22px; height: 22px; }
    .pillar h3 { font-size: 1.16rem; margin: 0 0 0.5rem; }
    .pillar p { color: var(--muted); font-size: 0.94rem; margin: 0 0 1.1rem; }

    .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; list-style: none; }
    .chip {
      font-family: var(--mono); font-size: 0.72rem; line-height: 1;
      padding: 0.36rem 0.6rem; border-radius: 7px;
      color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line);
      white-space: nowrap;
    }

    /* ---------- career map ---------- */
    .map { display: flex; flex-direction: column; gap: 0.4rem; }
    .map-node {
      background: var(--card); border: 1px solid var(--line); border-radius: 13px;
      padding: 1.25rem 1.35rem; flex: 1; box-shadow: var(--shadow-sm);
      display: flex; flex-direction: column;
    }
    .map-node .step { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.5rem; }
    .map-node h3 { font-size: 1.04rem; margin: 0 0 0.15rem; }
    .map-node .domain { font-size: 0.82rem; color: var(--accent-deep); font-weight: 600; margin: 0 0 0.7rem; }
    .map-node .kw { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
    .map-node .kw span { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.22rem 0.45rem; }
    .map-node p { font-size: 0.87rem; line-height: 1.5; color: var(--muted); margin: auto 0 0; }
    .map-node.is-target { background: #221E1A; border-color: #221E1A; }
    .map-node.is-target .step { color: rgba(255,255,255,0.5); }
    .map-node.is-target h3 { color: #fff; }
    .map-node.is-target .domain { color: #E9A17C; }
    .map-node.is-target .kw span { color: #EDE7DF; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
    .map-node.is-target p { color: rgba(255,255,255,0.72); }
    .map-arrow { align-self: center; color: var(--line-2); flex: 0 0 auto; display: flex; }
    .map-arrow svg { width: 22px; height: 22px; transform: rotate(90deg); }
    @media (min-width: 900px) {
      .map { flex-direction: row; align-items: stretch; }
      .map-arrow svg { transform: none; }
    }

    /* ---------- featured projects ---------- */
    .grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
    @media (min-width: 780px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
    .pcard {
      display: flex; flex-direction: column; background: var(--card);
      border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }
    .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
    .pcard-media { background: linear-gradient(160deg, #FCFBF8 0%, #F2EFE8 100%); border-bottom: 1px solid var(--line); padding: 1.1rem 1.3rem 0.5rem; }
    .pcard-media svg { width: 100%; height: auto; display: block; }
    .pcard-head { padding: 1.35rem 1.4rem 1rem; }
    .pcard-body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
    .pcard .cat { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.45rem; }
    .pcard h3 { font-size: 1.24rem; margin: 0 0 0.5rem; line-height: 1.2; }
    .pcard .oneline { font-size: 0.95rem; color: var(--ink); margin: 0; line-height: 1.5; font-weight: 500; }
    .pcard .summary { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.1rem; line-height: 1.6; }
    .pcard .evals { font-size: 0.95rem; color: var(--ink); margin: 0 0 1rem; line-height: 1.5; }
    .pcard .chips { margin-bottom: 1.1rem; }
    .pcard .why {
      font-size: 0.88rem; color: var(--muted); line-height: 1.5;
      border-left: 2px solid var(--accent); padding-left: 0.85rem; margin: 0 0 1.25rem;
    }
    .pcard .why b { color: var(--ink-2); font-weight: 600; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }
    .pcard .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
    .pcard .actions .btn { font-size: 0.85rem; padding: 0.5rem 0.95rem; }
    .bridge-line { font-size: 0.88rem; color: var(--muted); margin: 1.6rem 0 0; text-align: center; }
    .bridge-line a { font-weight: 600; }

    /* ---------- featured project cards (real screenshots, consistent ratio) ---------- */
    .pcard-shot { background: var(--paper-2); border-bottom: 1px solid var(--line); aspect-ratio: 2.35 / 1; overflow: hidden; }
    .pcard-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .pcard-shot.pos-top img { object-position: top; }
    .mock-note {
      font-size: 0.82rem; line-height: 1.5; color: var(--accent-deep);
      background: rgba(180, 85, 46, 0.08); border: 1px solid rgba(180, 85, 46, 0.25);
      border-radius: 9px; padding: 0.65rem 0.85rem; margin: 0 0 1rem;
    }
    .mock-note b { font-weight: 700; }
    .workflow-compare { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin: 0 0 1.15rem; }
    @media (min-width: 480px) { .workflow-compare { grid-template-columns: 1fr 1fr; } }
    .workflow-step {
      background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
      padding: 0.75rem 0.85rem; font-size: 0.83rem; line-height: 1.5; color: var(--muted);
    }
    .workflow-step .lbl {
      display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.09em;
      text-transform: uppercase; color: var(--faint); margin-bottom: 0.35rem;
    }
    .workflow-step.after .lbl { color: var(--accent-deep); }
    .pcard .stack { font-size: 0.8rem; color: var(--faint); font-family: var(--mono); margin: 0 0 1.1rem; }

    /* ---------- environments (high-stakes) ---------- */
    .band { background: var(--paper-2); border-top: 1px solid var(--line); }
    .band .lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--ink-2); max-width: 46ch; margin: 0 0 2.4rem; letter-spacing: -0.01em; }
    .band .lead .hl { color: var(--accent-deep); }
    .env {
      background: var(--card); border: 1px solid var(--line); border-radius: 13px;
      padding: 1.4rem 1.45rem; box-shadow: var(--shadow-sm);
    }
    .env .org { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
    .env h3 { font-size: 1.08rem; margin: 0 0 0.5rem; }
    .env p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin: 0; }

    /* ---------- toolbox ---------- */
    .tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
    .tool {
      background: var(--card); border: 1px solid var(--line); border-radius: 13px;
      padding: 1.2rem 1.3rem 1.35rem; box-shadow: var(--shadow-sm);
    }
    .tool h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 0.85rem; }

    /* ---------- case-study pages ---------- */
    .case-header { padding: 2.6rem 0 2.2rem; border-bottom: 1px solid var(--line); }
    .back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 1.4rem; }
    .back-link:hover { color: var(--accent-deep); }
    .case-header .eyebrow { margin-bottom: 0.7rem; }
    .case-header h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.9rem; max-width: 32ch; }
    .case-header .outcome { font-size: 1.08rem; color: var(--muted); max-width: 62ch; line-height: 1.6; margin: 0 0 1.4rem; }
    .case-header .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

    .case-section { padding: 2.8rem 0; border-top: 1px solid var(--line); }
    .case-section h2 { font-size: 1.5rem; margin: 0 0 1rem; }
    .case-section h3 { font-size: 1.05rem; margin: 1.4rem 0 0.6rem; color: var(--ink-2); }
    .case-section p { color: var(--ink); line-height: 1.65; margin: 0 0 0.9rem; }
    .case-section p.muted { color: var(--muted); }
    .case-section ul, .case-section ol { margin: 0 0 0.9rem; padding-left: 1.3rem; color: var(--ink); line-height: 1.65; }
    .case-section li { margin-bottom: 0.4rem; }

    code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
    pre {
      background: #221E1A; color: #EDE7DF; border-radius: 11px; padding: 1rem 1.15rem;
      overflow-x: auto; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; margin: 0 0 1.2rem;
    }
    pre code { background: none; border: none; padding: 0; color: inherit; }

    .kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 0 0 1.2rem; }
    .kv-cell { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; }
    .kv-cell .k { display: block; font-size: 0.72rem; color: var(--faint); margin-bottom: 0.2rem; }
    .kv-cell .v { font-size: 1.15rem; font-weight: 700; color: var(--ink-2); font-family: var(--serif); }

    .case-shot { margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
    .case-shot img { width: 100%; height: auto; display: block; }
    .case-shot figcaption { padding: 0.7rem 0.9rem; font-size: 0.8rem; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }

    .callout { border-radius: 10px; padding: 0.9rem 1.05rem; margin: 0 0 1.2rem; font-size: 0.92rem; line-height: 1.6; }
    .callout.amber { background: rgba(180, 85, 46, 0.08); border: 1px solid rgba(180, 85, 46, 0.25); color: var(--accent-deep); }
    .callout.neutral { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); }
    .callout b { color: inherit; }

    /* ---------- more / secondary ---------- */
    .more-strip { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px dashed var(--line-2); }
    .more-item { flex: 1 1 260px; }
    .more-item a { font-weight: 600; }
    .more-item p { font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0 0; }

    /* ---------- contact / footer ---------- */
    .contact { text-align: center; }
    .contact h2 { font-size: 2rem; margin: 0 0 0.8rem; }
    .contact p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.8rem; }
    .contact .btn-row { justify-content: center; }
    .contact .loc { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin-top: 1.6rem; }
    footer {
      border-top: 1px solid var(--line); padding: 1.8rem 0; margin-top: 1rem;
      color: var(--faint); font-size: 0.8rem;
      display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: space-between; align-items: center;
    }
    footer a { color: var(--muted); }
    footer .foot-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { transition: none !important; }
    }
