@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-latin-wght-normal.2ee17598a9.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.5eb09b5ac0.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.5a51946dff.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-wght-normal.18be452724.woff2") format("woff2"); }
/* Layout: one quiet column (max 960px), sticky text nav, typography-led; one accent used for emphasis and interaction only. */
  :root {
    --bg: #faf8f4; --bg-2: #f1ede6; --fg: #262320; --muted: #6b645f; --accent: #76263d; --on-accent: #fff; --rule: rgba(38, 35, 32, 0.13);
    --display: "Instrument Serif", "Iowan Old Style", Georgia, serif; --body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --mono: "JetBrains Mono", Menlo, Consolas, monospace;
    --logo-filter: none;
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141315; --bg-2: #1c1a1d; --fg: #ebe6df; --muted: #9b948d; --accent: #d9687a; --on-accent: #141315; --rule: rgba(235, 230, 223, 0.14); --logo-filter: invert(1) hue-rotate(180deg); color-scheme: dark; } }
  :root[data-theme="dark"] { --bg: #141315; --bg-2: #1c1a1d; --fg: #ebe6df; --muted: #9b948d; --accent: #d9687a; --on-accent: #141315; --rule: rgba(235, 230, 223, 0.14); --logo-filter: invert(1) hue-rotate(180deg); color-scheme: dark; }

  :root[data-theme="light"] { color-scheme: light; }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 72px; }
  body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; margin: 0; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--accent); color: var(--bg); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; border-radius: 6px; background: var(--bg); color: var(--fg); transform: translateY(-160%); }
  .skip-link:focus { transform: translateY(0); }
  .wrap { max-width: 960px; margin: 0 auto; padding-inline: 24px; }

  .nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
  .brand { font-family: var(--display); font-size: 22px; }
  .links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
  .links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; transition: color 0.2s; }
  .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
  .links a:hover, .links a.active { color: var(--fg); }
  .links a:hover::after, .links a.active::after { transform: scaleX(1); }
  @media (max-width: 640px) { .links { gap: 14px; font-size: 13px; } }
  .theme { visibility: hidden; font: inherit; font-size: 15px; line-height: 1; background: none; border: 1px solid var(--rule); border-radius: 999px; width: 44px; height: 44px; flex: 0 0 44px; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; transition: color 0.2s, border-color 0.2s; }
  .js .theme { visibility: visible; }
  .theme:hover { color: var(--fg); border-color: var(--fg); }
  .theme .moon { display: none; }
  :root[data-theme="dark"] .theme .moon { display: block; } :root[data-theme="dark"] .theme .sun { display: none; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .moon { display: block; } :root:not([data-theme="light"]) .theme .sun { display: none; } }

  .hero { padding-block: 88px 48px; }
  .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 11vw, 124px); line-height: 0.95; letter-spacing: -0.015em; margin: 18px 0 26px; text-wrap: balance; }
  .lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; max-width: 32ch; margin: 0 0 30px; text-wrap: balance; }
  .lead em { font-family: var(--display); font-style: italic; font-size: 1.12em; color: var(--accent); }
  .cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--fg); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background 0.2s, color 0.2s, transform 0.2s; }
  .btn:hover { background: var(--fg); color: var(--bg); transform: translateY(-1px); }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .btn.primary:hover { background: var(--bg); border-color: var(--fg); color: var(--fg); }
  .ghost { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
  .ghost:hover { color: var(--accent); }
  .arrow { display: inline-block; transition: transform 0.2s; }
  .ghost:hover .arrow, .btn:hover .arrow { transform: translate(2px, -2px); }

  .brands { padding-block: 28px 64px; }
  .brands .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
  .brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
  .brands img { width: auto; max-width: 130px; display: block; filter: var(--logo-filter); opacity: 0.75; transition: opacity 0.2s; }
  .brands li:hover img { opacity: 1; }
  .brands .via { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

  section.block { padding-block: 72px; border-top: 1px solid var(--rule); }
  .head { display: grid; gap: 10px; margin-bottom: 44px; }
  h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1; letter-spacing: -0.01em; margin: 0; }
  .head p { margin: 0; color: var(--muted); max-width: 54ch; }

  .item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-block: 36px; border-top: 1px solid var(--rule); align-items: start; }
  .item:first-child { border-top: 0; padding-top: 0; }
  @media (max-width: 720px) { .item { grid-template-columns: 1fr; gap: 10px; } }
  .kind { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
  .item h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
  .item h3 a { transition: color 0.2s; } .item h3 a:hover { color: var(--accent); }
  .item p { margin: 0 0 16px; max-width: 62ch; }
  .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
  .facts li { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; }
  .more { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; color: var(--accent); font-weight: 500; }
  .more .arrow { transition: transform 0.2s; } .more:hover .arrow { transform: translateX(4px); }

  .role { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-block: 30px; border-top: 1px solid var(--rule); }
  .role:first-child { border-top: 0; padding-top: 0; }
  @media (max-width: 720px) { .role { grid-template-columns: 1fr; gap: 6px; } }
  .when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
  .role h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; }
  .role h3 span { color: var(--muted); font-family: var(--body); font-size: 16px; margin-left: 10px; }
  .role p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
  .role ul { margin: 12px 0 0; padding-left: 18px; max-width: 62ch; }
  .role li { margin-bottom: 7px; }
  .role li::marker { color: var(--accent); }
  details { margin-top: 12px; }
  summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); font-weight: 500; }
  summary::-webkit-details-marker { display: none; }
  summary .chev { display: inline-block; transition: transform 0.25s; }
  details[open] summary .chev { transform: rotate(90deg); }
  details ul { animation: fadeDown 0.3s ease both; }

  .skillrow { display: grid; grid-template-columns: 180px 1fr; gap: 16px 24px; padding-block: 22px; border-top: 1px solid var(--rule); align-items: start; }
  .skillrow:first-of-type { border-top: 0; padding-top: 0; }
  @media (max-width: 720px) { .skillrow { grid-template-columns: 1fr; gap: 10px; } }
  .skillrow h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0; padding-top: 7px; }
  .skillrow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .skillrow li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 12px 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-2); transition: border-color 0.2s, transform 0.2s; }
  .skillrow li:hover { border-color: var(--accent); transform: translateY(-1px); }
  .skillrow img { width: 16px; height: 16px; object-fit: contain; filter: var(--logo-filter); opacity: 0.9; }

  .about { display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
  @media (max-width: 720px) { .about { grid-template-columns: 1fr; } }
  .about p { margin: 0 0 16px; max-width: 60ch; }
  a.inline { color: var(--accent); border-bottom: 1px solid currentColor; }
  .resume-note { margin: 28px 0 0; color: var(--muted); font-size: 15px; }

  .contact { padding-block: 88px 40px; border-top: 1px solid var(--rule); }
  .contact h2 { font-size: clamp(44px, 8vw, 96px); margin-bottom: 28px; }
  .contact h2 em { font-style: italic; color: var(--accent); }
  .row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
  .foot { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }

  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .cta { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: 0.08s; } .hero .lead { animation-delay: 0.18s; } .hero .cta { animation-delay: 0.28s; }
  .reveal.in { animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
  @media (max-width: 720px) {
    .hero { padding-block: 48px 28px; }
    .cta { gap: 12px; }
    .brands { padding-block: 16px 36px; }
    section.block { padding-block: 40px; }
    .head { margin-bottom: 28px; }
    .item { padding-block: 24px; }
    .role { padding-block: 22px; }
    .skillrow { padding-block: 18px; }
    .item:last-child, .role:last-child, .skillrow:last-child { padding-bottom: 0; }
    .item > div:last-child > :last-child, .role > div:last-child > :last-child, .about p:last-child { margin-bottom: 0; }
    .kind, .when, .skillrow h3 { padding-top: 0; }
    .role h3 span { display: block; margin: 4px 0 0; }
    .about { gap: 8px; }
    .resume-note { margin-top: 22px; }
    .contact { padding-block: 48px 24px; }
    .contact h2 { margin-bottom: 24px; }
    .contact .row { gap: 12px 16px; }
    .foot { margin-top: 32px; padding-top: 16px; }
  }
  @media (max-width: 540px) {
    html { scroll-padding-top: 118px; }
    .nav .wrap { height: auto; display: grid; grid-template-columns: 1fr 44px; grid-template-rows: 44px 44px; gap: 2px 8px; padding-block: 6px; }
    .nav .brand { white-space: nowrap; grid-column: 1; grid-row: 1; }
    .nav .theme { grid-column: 2; grid-row: 1; justify-self: end; }
    .nav .links { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
    .nav .links a { justify-content: center; white-space: nowrap; }
    .skillrow li { max-width: 100%; overflow-wrap: anywhere; }
    .skillrow img { flex-shrink: 0; }
  }
  @media (max-width: 374px) {
    .cta { display: grid; grid-template-columns: 1fr; }
    .cta .btn { justify-content: center; }
  }
  @media print {
    :root:root, :root[data-theme] { --bg: #fff; --bg-2: #fff; --fg: #262320; --muted: #49433f; --accent: #76263d; --logo-filter: none; color-scheme: light; }
    .nav, .skip-link, .cta, .contact .row { display: none; }
    .hero, section.block, .contact { padding-block: 20px; }
    .head { margin-bottom: 20px; }
    .item, .role, .skillrow { padding-block: 16px; }
    .brands { padding-block: 16px 24px; }
    .foot { margin-top: 20px; }
    h1 { font-size: 64px; }
    h2, .contact h2 { font-size: 36px; }
    h2, h3 { break-after: avoid; }
    p, li { orphans: 3; widows: 3; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
.brands img.brand-logo-1 { height:14px }
.brands img.brand-logo-2 { height:11px }
.brands img.brand-logo-3 { height:21px }
.brands img.brand-logo-4 { height:13px }
.brands img.brand-logo-5 { height:17px }
.brands img.brand-logo-6 { height:12px }
.brands img.brand-logo-7 { height:14px }
.brands img.brand-logo-8 { height:13px }
