  :root {
    --bg: #F3F4F1;
    --surface: #FBFBF9;
    --surface-2: #EFF0EC;
    --ink: #17191B;
    --muted: #55595F;
    --faint: #898E93;
    --line: #DEE1DC;
    --line-strong: #CDD1CB;
    --accent: #1B6E48;
    --accent-deep: #145537;
    --accent-soft: #E6F0EA;
    --amber: #8A6410;
    --amber-soft: #F1E9D6;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --sans: 'IBM Plex Sans', system-ui, sans-serif;
    --maxw: 860px;
  }

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

  html { scroll-behavior: smooth; scroll-padding-top: 72px; }

  body {
    background: var(--bg);
    background-image:
      radial-gradient(900px 620px at 8% -6%, rgba(27,110,72,0.20) 0%, rgba(27,110,72,0) 62%),
      radial-gradient(760px 560px at 100% 12%, rgba(46,124,92,0.16) 0%, rgba(46,124,92,0) 60%),
      radial-gradient(820px 700px at 50% 108%, rgba(20,85,55,0.16) 0%, rgba(20,85,55,0) 64%),
      linear-gradient(168deg, #EEF3EA 0%, #E0EBDD 34%, #D2E1CE 66%, #C4D8C0 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  a { color: var(--accent); text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
  a:hover { color: var(--accent-deep); }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

  /* ---------- top bar ---------- */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 11px 26px;
    display: flex; align-items: center; gap: 20px;
  }
  .brand {
    font-family: var(--mono); font-weight: 600; font-size: 14px;
    letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
    display: flex; align-items: center; gap: 8px;
  }
  .brand .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .topnav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
  .topnav a {
    font-family: var(--mono); font-size: 12.5px; color: var(--muted);
    text-decoration: none; letter-spacing: -0.01em;
  }
  .topnav a:hover { color: var(--accent); }
  @media (max-width: 620px) { .topnav a.hide-sm { display: none; } }

  /* ---------- hero ---------- */
  header.hero { padding: 60px 0 10px; }
  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
  @media (min-width: 760px) { .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }

  .avail {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px; color: var(--accent-deep);
    background: var(--accent-soft); padding: 5px 11px; border-radius: 100px;
    letter-spacing: -0.01em; margin-bottom: 20px;
  }
  .avail .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    position: relative;
  }
  .avail .pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--accent); opacity: 0.5; animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }

  h1.name {
    font-weight: 700; font-size: clamp(38px, 6.4vw, 58px);
    letter-spacing: -0.03em; line-height: 1.02;
  }
  .headline {
    margin-top: 16px; font-size: 16.5px; color: var(--muted); max-width: 40ch;
  }
  .headline strong { color: var(--ink); font-weight: 600; }
  .roles-line {
    margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--accent);
    display: flex; flex-wrap: wrap; gap: 4px 0;
  }
  .roles-line span::after { content: " / "; color: var(--faint); }
  .roles-line span:last-child::after { content: ""; }

  .contact-row {
    margin-top: 24px; display: flex; gap: 16px; flex-wrap: wrap;
    font-family: var(--mono); font-size: 13px;
  }
  .contact-row a { text-decoration: none; color: var(--ink); }
  .contact-row a:hover { color: var(--accent); text-decoration: underline; }
  .contact-row .loc { color: var(--faint); }

  /* service card signature */
  .svc {
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: 8px; overflow: hidden; font-family: var(--mono);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 10px 30px -18px rgba(0,0,0,0.25);
  }
  .svc-head {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-bottom: 1px solid var(--line);
    background: var(--surface-2); font-size: 11.5px; color: var(--muted);
    letter-spacing: -0.01em;
  }
  .svc-head .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .svc-body { padding: 14px 16px; display: grid; gap: 9px; }
  .svc-row { display: grid; grid-template-columns: 66px 1fr; gap: 10px; font-size: 12.5px; align-items: baseline; }
  .svc-key { color: var(--faint); text-transform: uppercase; letter-spacing: 0.03em; font-size: 10.5px; }
  .svc-val { color: var(--ink); }
  .svc-val .hl { color: var(--accent-deep); }

  /* ---------- generic section ---------- */
  hr.rule { display: none; }

  .block {
    padding: 30px 32px 34px;
    margin: 20px 0;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.6),
      0 1px 2px rgba(23,40,30,0.03),
      0 16px 38px -28px rgba(23,40,30,0.36);
    backdrop-filter: saturate(115%) blur(2px);
  }
  @media (max-width: 560px) { .block { padding: 24px 20px 26px; margin: 14px 0; } }
  .eyebrow {
    font-family: var(--mono); font-size: 15px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent-deep); margin-bottom: 22px;
    display: flex; align-items: center; gap: 12px;
  }
  .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

  .summary { font-size: 15.5px; color: var(--muted); max-width: 66ch; }
  .summary strong { color: var(--ink); font-weight: 600; }

  /* ---------- projects ---------- */
  .project {
    position: relative;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 24px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(23,40,30,0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .project::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(27,110,72,0.22) 38%, rgba(27,110,72,0) 78%);
  }
  .project:hover {
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(23,40,30,0.04), 0 14px 30px -24px rgba(23,40,30,0.4);
  }
  .project:last-of-type { margin-bottom: 0; }

  @media (max-width: 560px) { .project { padding: 18px 16px 20px; } }

  .p-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; flex-wrap: wrap;
  }
  .p-name { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
  .p-tag { font-family: var(--mono); font-size: 12px; color: var(--faint); }

  .p-sub {
    margin-top: 5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    font-family: var(--mono); font-size: 12px;
  }
  .p-domain { color: var(--accent); text-decoration: none; }
  .p-domain:hover { text-decoration: underline; }
  .status {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
    border-radius: 100px; font-size: 11px; letter-spacing: -0.01em;
  }
  .status .d { width: 6px; height: 6px; border-radius: 50%; }
  .status.live { background: var(--accent-soft); color: var(--accent-deep); }
  .status.live .d { background: var(--accent); }
  .status.ondemand { background: var(--amber-soft); color: var(--amber); }
  .status.ondemand .d { background: var(--amber); }

  .p-bullets { margin-top: 13px; list-style: none; }
  .p-bullets li {
    font-size: 14.5px; color: var(--muted); padding-left: 18px;
    position: relative; margin-top: 6px;
  }
  .p-bullets li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }

  .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
  .tag {
    font-family: var(--mono); font-size: 11px; color: var(--accent-deep);
    background: var(--accent-soft); border-radius: 4px; padding: 3px 8px;
    letter-spacing: -0.01em;
  }
  .tag.neutral { color: var(--muted); background: var(--surface-2); }

  .details-btn {
    margin-top: 16px; font-family: var(--mono); font-size: 12.5px;
    color: var(--accent-deep); background: none; border: 1px solid var(--line-strong);
    padding: 7px 13px; border-radius: 6px; cursor: pointer; display: inline-flex;
    align-items: center; gap: 8px; transition: border-color 0.15s ease, background 0.15s ease;
  }
  .details-btn:hover { border-color: var(--accent); background: rgba(255,255,255,0.75); }
  .details-btn .chev { transition: transform 0.2s ease; display: inline-block; }
  .details-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }

  .details { display: none; margin-top: 20px; padding: 20px 22px;
    background: rgba(250,252,248,0.85);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    border-radius: 9px; }
  .details.open { display: block; }
  .d-block { margin-bottom: 20px; }
  .d-block:last-child { margin-bottom: 0; }
  .d-title {
    font-family: var(--mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px;
  }
  .d-list { list-style: none; }
  .d-list li {
    font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; margin-top: 7px;
  }
  .d-list li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
  .d-list.aws li::before { content: "▸"; color: var(--accent); font-size: 11px; top: 1px; }
  .d-links { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
  .d-links a {
    font-family: var(--mono); font-size: 12.5px; text-decoration: none;
    border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 6px; color: var(--ink);
  }
  .d-links a:hover { border-color: var(--accent); color: var(--accent); }

  /* ---------- demo video ---------- */
  .demo {
    margin-top: 16px; border: 1px solid var(--line-strong); border-radius: 8px;
    overflow: hidden; background: #10120F;
  }
  .demo video { display: block; width: 100%; height: auto; background: #10120F; }
  .demo-cap {
    display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
    padding: 9px 13px; background: rgba(255,255,255,0.7); border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  }
  .demo-cap .lead { color: var(--muted); }
  .chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
  .chapters button {
    font-family: var(--mono); font-size: 11px; color: var(--accent-deep);
    background: var(--accent-soft); border: none; border-radius: 3px;
    padding: 3px 7px; cursor: pointer;
  }
  .chapters button:hover { background: var(--accent); color: #fff; }

  /* ---------- request access ---------- */
  .req-note {
    margin-top: 12px; font-size: 13.5px; color: var(--muted);
    background: var(--amber-soft); border-left: 2px solid var(--amber);
    padding: 11px 15px; border-radius: 0 7px 7px 0;
    background: linear-gradient(100deg, var(--amber-soft) 0%, rgba(241,233,214,0.45) 100%);
  }
  .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .req-btn {
    margin-top: 16px; font-family: var(--mono); font-size: 12.5px;
    color: var(--surface); background: var(--accent); border: 1px solid var(--accent);
    padding: 8px 14px; border-radius: 6px; cursor: pointer; display: inline-flex;
    align-items: center; gap: 8px; transition: background 0.15s ease;
  }
  .req-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

  .ov {
    position: fixed; inset: 0; background: rgba(20,22,24,0.55); display: none;
    align-items: flex-start; justify-content: center; padding: 40px 20px;
    overflow-y: auto; z-index: 200;
  }
  .ov.open { display: flex; }
  .dlg {
    background: var(--surface); border-radius: 10px; max-width: 460px; width: 100%;
    padding: 28px 28px 30px; position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  }
  .dlg h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
  .dlg .sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
  .dlg-close {
    position: absolute; top: 14px; right: 14px; background: none;
    border: 1px solid var(--line-strong); border-radius: 50%; width: 30px; height: 30px;
    font-size: 15px; color: var(--muted); cursor: pointer; line-height: 1;
  }
  .dlg-close:hover { background: var(--surface-2); }
  .fld { margin-top: 14px; }
  .fld label {
    display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--faint); margin-bottom: 5px;
  }
  .fld input, .fld textarea {
    width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px;
    padding: 9px 11px; resize: vertical;
  }
  .fld input:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .dlg-send {
    margin-top: 18px; width: 100%; font-family: var(--mono); font-size: 13px;
    color: #fff; background: var(--accent); border: none; padding: 11px;
    border-radius: 6px; cursor: pointer;
  }
  .dlg-send:hover { background: var(--accent-deep); }
  .dlg-send:disabled { opacity: 0.6; cursor: default; }
  .dlg-msg { margin-top: 12px; font-size: 13px; min-height: 18px; }
  .dlg-msg.ok { color: var(--accent-deep); }
  .dlg-msg.err { color: #A33; }
  .dlg-alt {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  }
  .dlg-alt a { color: var(--muted); }

  /* ---------- skills ---------- */
  .skill-group { margin-top: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
  .skill-group:first-of-type { border-top: none; padding-top: 0; }
  .sg-grid { display: grid; grid-template-columns: 1fr; gap: 6px 0; }
  @media (min-width: 640px) { .sg-grid { grid-template-columns: 150px 1fr; gap: 0 24px; align-items: start; } }
  .sg-label {
    font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px;
    letter-spacing: -0.01em;
  }
  .sg-tags { display: flex; flex-wrap: wrap; gap: 6px; }

  /* ---------- experience ---------- */
  .xp { border-top: 1px solid var(--line); padding: 20px 0; display: grid; gap: 4px 0; }
  .xp:first-of-type { border-top: none; padding-top: 0; }
  @media (min-width: 640px) { .xp { grid-template-columns: 132px 1fr; gap: 0 24px; } }
  .xp-when { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 3px; }
  .xp-role { font-size: 16px; font-weight: 600; }
  .xp-org { font-size: 13.5px; color: var(--accent-deep); margin-top: 1px; }
  .xp-note { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 60ch; }
  .xp-note .li { display: block; padding-left: 16px; position: relative; margin-top: 4px; }
  .xp-note .li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }

  /* ---------- education ---------- */
  .edu { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 2px 0; }
  .edu:first-of-type { border-top: none; padding-top: 0; }
  @media (min-width: 640px) { .edu { grid-template-columns: 132px 1fr auto; gap: 0 24px; align-items: baseline; } }
  .edu-when { font-family: var(--mono); font-size: 12px; color: var(--faint); }
  .edu-deg { font-size: 15px; font-weight: 600; }
  .edu-school { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
  .edu-score { font-family: var(--mono); font-size: 12px; color: var(--muted); }

  /* ---------- footer ---------- */
  footer {
    padding: 30px 0 60px; border-top: 1px solid var(--line); margin-top: 8px;
    font-family: var(--mono); font-size: 12px; color: var(--faint);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  }
  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--accent); }

  .copy-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
    background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12.5px;
    padding: 9px 16px; border-radius: 100px; box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 300;
  }
  .copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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