@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/intertight-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/intertight-latin-ext.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f4f0;
  --bg-alt: #ebe9e3;
  --surface: #ffffff;
  --ink: #1c2124;
  --muted: #5b6266;
  --line: #d9d6ce;
  --accent: #407a98;
  --accent-ink: #ffffff;
  --dark: #353b3e;
  --dark-ink: #eef0f1;
  --dark-muted: #b4bcc0;
  --dark-line: #4a5155;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191b;
    --bg-alt: #1d2124;
    --surface: #23282b;
    --ink: #e8ebec;
    --muted: #a3abaf;
    --line: #343a3e;
    --accent: #7fb3cf;
    --accent-ink: #10181d;
    --dark: #102029;
    --dark-line: #2c3236;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: flex-end; height: 68px; }


.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-alt); }
.nav .nav__cta { background: var(--ink); color: var(--bg); margin-left: 8px; }
.nav .nav__cta:hover { background: var(--accent); color: var(--accent-ink); }

.nav-toggle {
  display: none; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero { padding: 72px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.hero__kicker { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.025em; }
.hero__role { font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--accent); margin: 0.4rem 0 1.25rem; }
.hero__lead { font-size: 1.12rem; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.hero__photo img { width: 300px; border-radius: 50%; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--surface);
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); border-color: var(--accent); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 56px 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts div { padding: 20px 20px 20px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.facts dd { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__photo { order: -1; }
  .hero__photo img { width: 160px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__intro { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin-bottom: 2.5rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card--wide { grid-column: 1 / -1; border-left: 3px solid var(--accent); }
.card p, .cards--plain p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.cards--plain { margin-top: 1.5rem; gap: 40px; }
.cards--plain article { border-top: 2px solid var(--accent); padding-top: 18px; }

/* AI */
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark .section__intro { color: var(--dark-muted); }
.section--dark h2 { max-width: 820px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--dark-line); }
.ai-grid article { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--dark-line); }
.ai-grid article:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.ai-grid p { color: var(--dark-muted); margin: 0; font-size: 0.98rem; }
.quote {
  margin: 48px 0 0; padding-left: 20px; border-left: 3px solid #7fb3cf;
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; max-width: 760px;
}

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 1.5rem; }
.skills h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--font); font-weight: 600; }
.skills p { margin: 0; }

/* Experience */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { color: var(--muted); font-size: 0.95rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; color: var(--muted); }
.more { margin: 1.5rem 0 0; font-weight: 600; }

/* Contact */
.section--contact { padding-bottom: 104px; }
.contact { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.contact li { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact span { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .cards, .skills { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid article:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .ai-grid article:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--dark-line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cards, .skills, .ai-grid { grid-template-columns: 1fr; }
  .ai-grid article, .ai-grid article:nth-child(even) { padding: 22px 0; border-left: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .contact li { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .header, .nav-toggle, .hero__actions, .footer { display: none; }
  .section--dark { background: none; color: var(--ink); }
}
