:root {
  color-scheme: light;
  --bg: #f1f1f3;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #fafafa;
  --text: #202027;
  --muted: #818189;
  --line: rgba(22, 22, 28, 0.1);
  --soft-line: rgba(22, 22, 28, 0.06);
  --chip: rgba(255, 255, 255, 0.6);
  --shadow: 0 24px 70px rgba(20, 20, 30, 0.08);
  --radius: 14px;
  --content: 710px;
  --wide: 1020px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111216;
  --surface: rgba(31, 32, 38, 0.78);
  --surface-strong: #1b1c21;
  --text: #f2f2f3;
  --muted: #9898a2;
  --line: rgba(255, 255, 255, 0.12);
  --soft-line: rgba(255, 255, 255, 0.07);
  --chip: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.018em;
  transition: background-color 180ms ease, color 180ms ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  border-bottom: 1px solid var(--soft-line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  height: 100%;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 520; }
.brand-mark { width: 15px; height: 15px; opacity: 0.75; }

.main-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.52), 0 8px 28px rgba(20,20,30,.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-indicator {
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 0;
  height: 38px;
  width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: 0 5px 16px rgba(20,20,30,.09), inset 0 1px rgba(255,255,255,.6);
  pointer-events: none;
  will-change: transform, width;
}

.main-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  outline: none;
  transform-origin: center;
  transition: color 160ms ease, background-color 160ms ease;
}
.main-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--surface-strong) 35%, transparent); }
.main-nav a:active { color: var(--text); }
.main-nav a:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--text) 38%, transparent); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav small {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.main-nav a[aria-current="page"] small { color: var(--text); }

.theme-toggle {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--chip); }

.page-shell {
  width: min(calc(100% - 40px), var(--wide));
  margin: 0 auto;
  padding: 134px 0 120px;
}

.with-toc {
  display: grid;
  grid-template-columns: 145px minmax(0, var(--content));
  gap: 70px;
  justify-content: start;
}

.toc {
  position: sticky;
  top: 120px;
  align-self: start;
  color: var(--muted);
  font-size: 11px;
}
.toc-title { margin: 0 0 14px; }
.toc nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { padding: 5px 0 5px 14px; transition: color 150ms ease; }
.toc a:hover, .toc a.active { color: var(--text); }

.content-column { min-width: 0; }
.page-title { margin: 0 0 44px; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.055em; line-height: 1; }

.intro {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 14px;
}
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.intro h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(40px, 6vw, 62px);
  line-height: .98;
  letter-spacing: -0.068em;
  font-weight: 610;
}
.intro h1 span { color: var(--muted); font-weight: 470; }
.intro-copy { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 16px; }
.intro-actions { display: flex; gap: 10px; margin-top: 24px; }

.button, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  font-size: 12px;
  transition: transform 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--surface-strong); }
.feature-strip { display: flex; gap: 22px; align-items: center; margin-top: 34px; color: var(--muted); font-size: 11px; }

.section { padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.section:first-of-type { border-top: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.045em; }
.section-link { color: var(--muted); font-size: 11px; }
.section-link:hover { color: var(--text); }

.project-list { display: grid; gap: 48px; }
.project-card { display: grid; gap: 13px; }
.project-meta { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.project-card h3 { margin: 0 0 5px; font-size: 15px; letter-spacing: -0.035em; }
.project-card p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 10px; }
.view-link { color: var(--muted); font-size: 11px; white-space: nowrap; }
.view-link:hover { color: var(--text); }

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #0d0e12;
  box-shadow: var(--shadow);
}
.media-frame.light { background: #fff; }
.media-frame img, .media-frame video { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.media-frame.contain img { object-fit: contain; padding: 26px; }
.media-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); border-radius: inherit; }

.profile-row { display: grid; grid-template-columns: 74px 1fr; gap: 22px; align-items: start; margin-bottom: 44px; }
.portrait { width: 74px; height: 74px; object-fit: cover; border-radius: 22px; filter: grayscale(1); }
.profile-row p { margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.4; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--chip); }
.social-row a:hover { color: var(--text); }

.tool-board {
  padding: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 12px 12px;
}
.tool-card { position: relative; min-height: 150px; padding: 26px 18px 18px; display: grid; place-items: center; gap: 14px; border-radius: 15px; background: color-mix(in srgb, var(--surface-strong) 82%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 36px rgba(0,0,0,.07); transform: rotate(var(--r, -2deg)); }
.tool-card:nth-child(even) { --r: 2deg; }
.tool-card::before { content: "•"; position: absolute; top: -18px; color: #d24b4b; font-size: 28px; text-shadow: 0 3px 5px rgba(0,0,0,.2); }
.tool-logo { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #15161a; color: white; font-weight: 700; box-shadow: inset 0 0 0 6px #2e3036, 0 8px 18px rgba(0,0,0,.18); }
.tool-card small { color: var(--muted); }

.prose-section { padding: 42px 0; border-top: 1px solid var(--line); }
.prose-section h2 { margin: 0 0 16px; font-size: 20px; }
.prose-section p { margin: 0 0 12px; color: var(--muted); }
.plain-list { margin: 0; padding: 0; list-style: none; color: var(--muted); }

.contact-head { display: flex; align-items: center; gap: 16px; margin-bottom: 46px; }
.contact-head .page-title { margin: 0; }
.availability { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #2dcc6f; box-shadow: 0 0 0 4px rgba(45,204,111,.13); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(45,204,111,0); } }

.contact-block { padding: 44px 0; border-top: 1px solid var(--line); }
.contact-label { margin: 0 0 18px; color: var(--muted); }
.service-pill { display: flex; align-items: center; width: fit-content; max-width: 100%; gap: 12px; padding: 10px 14px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(0,0,0,.06); }
.service-icon { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #777, #111 65%); }
.service-pill strong { min-width: 155px; font-size: 17px; }
.copy-email { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.copy-email:hover { color: var(--text); }

.timezone-card { position: relative; min-height: 345px; overflow: hidden; border-radius: 28px; background: var(--surface-strong); box-shadow: var(--shadow); border: 1px solid var(--soft-line); }
.world-map { position: absolute; inset: 35px 28px 75px; opacity: .72; background-image: radial-gradient(var(--muted) 1.2px, transparent 1.4px); background-size: 7px 7px; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 360'%3E%3Cpath fill='black' d='M38 90l73-42 99 8 33 40 54 8 25 58-61 30-38 73-48-5-32-70-75-26zm311-28l51-18 56 21 53-10 46 28 74 12 82 54-25 40-78 15-19 88-50 36-30-78-45-43-20-75-48-19zm-32 199l47 17 27 54-36 21-42-44z'/%3E%3C/svg%3E"); mask-size: 100% 100%; mask-repeat: no-repeat; }
.map-pin { position: absolute; left: 29%; top: 41%; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.map-pin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 5px var(--surface-strong); }
.time-bar { position: absolute; inset: auto 12px 12px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; padding: 11px 15px; border-radius: 13px; background: rgba(15,15,17,.62); color: white; backdrop-filter: blur(12px); font-size: 13px; }
.time-bar b { font-variant-numeric: tabular-nums; }

.site-footer { padding: 30px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-inner { width: min(100%, var(--wide)); margin: auto; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 900px) {
  .site-header { backdrop-filter: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .main-nav { position: fixed; left: 50%; bottom: 14px; top: auto; transform: translateX(-50%); box-shadow: 0 12px 35px rgba(0,0,0,.16); }
  .main-nav a { padding: 0 11px; }
  .main-nav small { display: none; }
  .theme-toggle { grid-column: 2; }
  .with-toc { display: block; }
  .toc { display: none; }
  .page-shell { padding-top: 110px; }
  .intro { min-height: 470px; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .site-header { height: 58px; }
  .nav-shell { padding: 0 16px; }
  .page-shell { width: min(calc(100% - 28px), var(--wide)); padding: 96px 0 100px; }
  .main-nav { width: calc(100% - 28px); justify-content: space-between; }
  .main-nav a { flex: 1; justify-content: center; min-height: 42px; padding: 0 7px; font-size: 12px; }
  .intro { min-height: 430px; }
  .intro h1 { font-size: 42px; }
  .feature-strip { gap: 14px; flex-wrap: wrap; }
  .project-list { gap: 42px; }
  .project-meta { grid-template-columns: 1fr; }
  .view-link { justify-self: start; }
  .media-frame, .media-frame img, .media-frame video { min-height: 205px; }
  .profile-row { grid-template-columns: 58px 1fr; gap: 15px; }
  .portrait { width: 58px; height: 58px; border-radius: 17px; }
  .profile-row p { font-size: 15px; }
  .tool-board { padding: 24px; gap: 24px; }
  .tool-card { min-height: 125px; padding: 20px 10px 14px; }
  .tool-logo { width: 52px; height: 52px; }
  .service-pill { width: 100%; flex-wrap: wrap; border-radius: 18px; }
  .service-pill strong { min-width: 140px; }
  .timezone-card { min-height: 290px; }
  .time-bar { grid-template-columns: 1fr 1fr; }
  .time-delta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
