/* Inter (SIL Open Font License) is bundled as a fallback for devices without Apple's system font. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-var-latin.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #56565b;          /* ≥ 6.5:1 on white, ≥ 6:1 on #f5f5f7 */
  --hairline: #d2d2d7;
  --accent: #0071e3;         /* buttons */
  --link: #0066cc;           /* text links (≥ 5:1 on both backgrounds) */
  --radius: 22px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .07);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 52px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 10px; color: #fff; text-decoration: none; }

.container { width: min(1040px, 100% - 44px); margin-inline: auto; }
.container.narrow { width: min(980px, 100% - 44px); text-align: center; }
.section { padding: clamp(80px, 11vw, 140px) 0; background: var(--bg); }
.section.alt { background: var(--bg-alt); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 10px; letter-spacing: -0.01em; }
.section-title { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.025em; max-width: 19ch; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-inner { width: min(1040px, 100% - 44px); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav-brand:hover { text-decoration: none; }
.nav-links ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a { display: block; padding: 6px 10px; font-size: 12.5px; color: var(--ink); opacity: .85; border-radius: 999px; }
.nav-links a:hover { opacity: 1; text-decoration: none; background: rgba(0, 0, 0, .05); }
.nav-links a.nav-cta { background: var(--accent); color: #fff; opacity: 1; padding: 6px 14px; margin-left: 6px; }
.nav-links a.nav-cta:hover { background: #0077ed; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 24px; border-radius: 999px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: background-color .2s ease, transform .2s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.btn-secondary:hover { background: rgba(0, 102, 204, .06); }
.link-arrow { font-size: 17px; font-weight: 500; }
.link-arrow::after { content: " ›"; font-size: 1.15em; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(80px, 10vw, 120px); }
.hero-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 28px; box-shadow: var(--shadow); }
.hero-title { font-size: clamp(48px, 8.4vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; }
.hero-title span { display: block; }
.hero-title-sub { background: linear-gradient(90deg, #0071e3, #7d4ce0 60%, #c9408f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
@media (forced-colors: active) { .hero-title-sub { color: CanvasText; background: none; } }
.hero-sub { margin-top: 18px; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.hero-summary { margin: 16px auto 0; max-width: 40em; font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 32px; }
.hero-location { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about-text { max-width: 760px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.about-text p + p { margin-top: 16px; color: var(--muted); font-size: .85em; font-weight: 400; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.fact { background: #fff; border-radius: 18px; padding: 22px 22px 24px; }
.fact dt { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fact dd { font-size: 17px; font-weight: 500; line-height: 1.35; }

/* ---------- Bento work grid ---------- */
.bento { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .35s ease, box-shadow .35s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile--feature { grid-column: span 3; }
.tile-body { padding: 28px 28px 8px; }
.tile--feature .tile-body { padding: 36px 36px 8px; }
.tile-meta { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tile h3 { font-size: 24px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.tile--feature h3 { font-size: clamp(28px, 3.2vw, 36px); }
.tile-desc { margin-top: 10px; font-size: 15px; color: var(--muted); }
.tile--feature .tile-desc { font-size: 17px; }
.tile-label { margin-top: 16px; font-size: 13px; font-weight: 600; }
.tile-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tile-tags li { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--ink); }
.tile-media { margin-top: auto; padding: 18px 18px 0; }
.tile-media svg { width: 100%; height: auto; aspect-ratio: 6 / 5; }
.tile:not(.tile--feature) .tile-media svg { aspect-ratio: 6 / 4.4; }
.tile-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0; }
.tint-blue { background: linear-gradient(180deg, transparent, rgba(0, 113, 227, .10)); }
.tint-orange { background: linear-gradient(180deg, transparent, rgba(255, 149, 0, .12)); }
.tint-yellow { background: linear-gradient(180deg, transparent, rgba(255, 204, 0, .16)); }
.tint-red { background: linear-gradient(180deg, transparent, rgba(255, 59, 48, .10)); }
.tint-pink { background: linear-gradient(180deg, transparent, rgba(255, 45, 85, .10)); }
.tint-green { background: linear-gradient(180deg, transparent, rgba(52, 199, 89, .12)); }
.tint-purple { background: linear-gradient(180deg, transparent, rgba(94, 92, 230, .12)); }
.tint-gray { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .05)); }

/* ---------- Experience ---------- */
.timeline { list-style: none; border-top: 1px solid var(--hairline); }
.tl-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.tl-years { font-size: 17px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.tl-body h3 { font-size: clamp(24px, 2.6vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.tl-role { margin-top: 4px; font-size: 17px; font-weight: 500; }
.tl-loc { color: var(--muted); font-weight: 400; }
.tl-body ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; max-width: 680px; }
.tl-body li { position: relative; padding-left: 18px; color: #3a3a3c; }
.tl-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.sub-title { margin: 72px 0 24px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.early { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.early li { background: #fff; border-radius: 18px; padding: 24px; }
.early .tl-years { font-size: 13px; padding: 0; margin-bottom: 4px; }
.early h4 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.early .tl-role { font-size: 15px; }
.early-sum { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- Skills ---------- */
.skill-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.col-title { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.quiet-list { list-style: none; display: grid; gap: 6px; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.tools-block { margin-top: 64px; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.tools li:not(:last-child)::after { content: "·"; color: var(--hairline); margin: 0 14px; }

/* ---------- Clients + languages ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 96px); }
.col-heading { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 28px; }
.clients { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.clients li { font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: #6e6e73; }
.langs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; }
.langs div:first-child { border-top: 1px solid var(--hairline); }
.langs dt { font-weight: 600; }
.langs dd { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-title { font-size: clamp(48px, 8vw, 88px); line-height: 1.03; font-weight: 700; letter-spacing: -0.03em; }
.contact-lead { margin-top: 16px; font-size: clamp(19px, 2vw, 24px); color: var(--muted); }
.contact-list { list-style: none; display: inline-grid; grid-template-columns: auto auto; gap: 12px 16px; margin-top: 36px; text-align: left; align-items: baseline; }
.contact-list li { display: contents; }
.c-label { font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }
.contact-list a { font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.015em; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--hairline); padding: 22px 0 28px; font-size: 12.5px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.load-error { width: min(1040px, 100% - 44px); margin: 20px auto 0; padding: 14px 18px; border-radius: 14px; background: #fff4f4; color: #8a1c1c; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn, .nav { transition: none; }
  .tile:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--feature { grid-column: span 1; }
  .tile--feature { grid-column: span 2; }
  .tile--feature .tile-media svg { aspect-ratio: 16 / 9; }
  .skill-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink); }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
  .nav-toggle-bars { position: relative; transform: translateY(-3.5px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 7px; left: 0; }
  .nav.is-open .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
  .nav.is-open .nav-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); background: rgba(255, 255, 255, .99); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); padding: 8px 22px 22px; }
  .nav.is-open .nav-links { display: block; }
  .nav-links ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: 21px; font-weight: 600; padding: 12px 0; border-radius: 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .nav-links a.nav-cta { margin: 16px 0 0; text-align: center; font-size: 17px; border-radius: 999px; padding: 12px; border: 0; }
  .facts, .bento, .skill-cols, .early, .two-col { grid-template-columns: 1fr; }
  .tile, .tile--feature { grid-column: auto; }
  .tile-body, .tile--feature .tile-body { padding: 26px 24px 6px; }
  .tile--feature .tile-media svg, .tile:not(.tile--feature) .tile-media svg { aspect-ratio: 6 / 4.6; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .tl-years { padding: 0; font-size: 15px; }
  .tools { display: grid; gap: 6px; }
  .tools li:not(:last-child)::after { content: none; }
  .contact-list { display: grid; grid-template-columns: 1fr; gap: 2px; text-align: center; }
  .contact-list li { display: block; margin-bottom: 12px; }
  .c-label { display: block; text-align: center; }
}
