/* V8 / Typography system
   Consistent system fonts with real installed weights; no remote font downloads.
   No texture above glyphs or persistent transforms on text-bearing elements. */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "DejaVu Sans Mono", monospace;
  --font-ink: #23314e;
  --font-secondary: #5b6982;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; }
/* The noise used to sit above ALL text (z-index:20): remove that grain layer. */
.site-noise { display: none !important; }

/* Editorial headings: tighter than body but never compressed enough to collide. */
h1, h2, h3, h4 { font-family: var(--font-sans); font-synthesis: none; }
.hero h1 {
  font-weight: 700;
  letter-spacing: -.047em;
  line-height: 1.04;
  margin-bottom: 31px;
}
.hero h1>span:first-child { background: none; -webkit-text-fill-color: currentColor; color: #2e4062; }
.hero-point { font-weight: 700; }
.section h2, .section-competencies h2 {
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.13;
}
.section h2 em, .section-competencies h2 em,
.ecosystem h3 em, .ecosystem-header h3 em,
.contact-callout h3 em, .collab-banner h3 em {
  letter-spacing: inherit;
}
.section-top .eyebrow, .eyebrow, .ecosystem-header .eyebrow,
.case-page-overline, .case-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}
.section-sub, .section-competencies .section-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
}

/* Hero copy: native bold/semibold only; relaxed tracking and clear rhythm. */
.availability { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.hero-small { font-size: 12px; font-weight: 600; letter-spacing: .105em; }
.hero-role { font-size: 17px; font-weight: 600; letter-spacing: -.012em; line-height: 1.45; }
.hero-description {
  color: var(--font-secondary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0;
  max-width: 640px;
}
.brand { font-weight: 700; letter-spacing: .025em; }
.brand-mark { font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.brand-text { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.navigation a { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.cv-nav { font-size: 12px; font-weight: 700; letter-spacing: .005em; }

/* Controls should remain sharp, even with hover/focus effects. */
.btn, .filter, .case-link, .case-back, .case-topbar button {
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
.btn {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  min-height: 50px;
  padding: 13px 20px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: none; }
.btn-primary { box-shadow: 0 8px 20px rgba(49, 63, 91, .12); }
.btn-primary:hover { box-shadow: 0 11px 23px rgba(49,63,91,.15); }
.hero-text-link { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.filter { font-size: 13px; font-weight: 600; letter-spacing: 0; }

/* Cards / experience / projects: consistent weight ladder, no faux 750/850. */
.profile-intro .intro-quote { font-size: clamp(20px,2vw,24px); font-weight: 400; letter-spacing: -.018em; line-height: 1.55; }
.intro-quote strong { font-weight: 700; }
.profile-intro p, .experience-summary, .case-body>p:not(.case-eyebrow) {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
}
.profile-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.profile-card p { font-size: 14px; line-height: 1.7; }
.university { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.detail-list dt, .detail-list dd, .language-row, .education-tail { letter-spacing: 0; }
.experience-content h3 { font-size: clamp(23px,2.4vw,28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.experience-company { font-weight: 700; letter-spacing: .07em; }
.experience-type { font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.experience-year { font-size: 13px; font-weight: 600; }
.responsibilities h4 { font-weight: 700; }
.responsibilities li { font-size: 14px; line-height: 1.75; }
.exp-tags span { font-size: 12px; font-weight: 500; }
.competency h3 { font-size: clamp(23px,2.2vw,30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.competency .chips span { font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.comp-no { font-weight: 700; letter-spacing: .045em; }
.ecosystem-header h3 { font-size: clamp(34px,4.6vw,58px); font-weight: 700; letter-spacing: -.038em; line-height: 1.1; }
.orbit-pill, .ecosystem-orbit .orbit-pill { font-family:var(--font-sans); font-weight: 500; letter-spacing: 0; }
.orbit-pill.strong, .ecosystem-orbit .orbit-pill.strong { font-weight: 600; }
.orbit-center h4 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -.025em; }
.orbit-kicker, .orbit-center small { font-family: var(--font-mono); font-weight: 600; }
.case-body h3 { font-size: 26px; font-weight: 700; letter-spacing: -.027em; line-height: 1.22; }
.case-bottom span { font-size: 12px; }
.case-bottom strong { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.case-page-hero h2 { font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.case-page-hero>p { line-height: 1.7; }
.case-section h3 { font-weight: 700; letter-spacing: -.02em; }
.case-page-tags span, .case-bot-links a { font-weight: 500; }
.point p { font-size: 15px; line-height: 1.75; letter-spacing: 0; }
.collab-banner h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.contact-callout h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.contact-channels h3, .footer-brand { font-weight: 700; }
.contact-channels>a strong { font-weight: 600; }

/* No transform-based subpixel font blurring on hover or retained reveal animation. */
.reveal.in-view { animation: clearFade .35s ease-out both; }
@keyframes clearFade { from { opacity:.65; } to { opacity:1; } }
.project-tile:hover, .competency:hover, .experience-entry:hover,
.profile-card:hover, .point:hover, .filter:hover, .cv-nav:hover { transform:none !important; }
.glass, .header, .floating-caption, .case-topbar { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Narrow viewports: no tiny or heavily condensed labels. */
@media(max-width:900px) {
  .hero h1 { letter-spacing: -.044em; }
}
@media(max-width:650px) {
  .hero h1 { font-size: clamp(49px,12.1vw,72px); letter-spacing: -.043em; line-height: 1.07; }
  .hero-role { font-size: 14px; line-height: 1.55; }
  .hero-description { font-size: 15px; line-height: 1.72; }
  .btn { font-size: 13px; min-height: 46px; padding: 11px 14px; }
  .hero-text-link { font-size: 13px; }
  .section h2, .section-competencies h2 { font-size: clamp(33px,8.5vw,42px); line-height: 1.17; letter-spacing: -.033em; }
  .section-sub, .section-competencies .section-sub { font-size: 14px; }
  .profile-intro .intro-quote { font-size: 20px; }
  .competency h3, .experience-content h3 { font-size: 23px; }
  .ecosystem-header h3 { font-size: 35px; }
  .case-body h3 { font-size: 24px; }
  .case-page-hero h2 { font-size: clamp(36px,10vw,45px); }
  .contact-callout h3 { font-size: clamp(36px,10vw,44px); }
  .brand-text { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) {
  .reveal.in-view { animation: none !important; }
}

/* Small UI headings and numerical metadata maintain the same typography rhythm. */
.hero-bottom strong { font-weight:700; letter-spacing:-.02em; }
.hstat-label, .hero-bottom small { letter-spacing:0; }
.contact-channels h3 { letter-spacing:-.02em; }
.contact-channels>a span { letter-spacing:.065em; }
.footer-brand { letter-spacing:-.01em; }
.case-topbar>span { letter-spacing:.12em; }
.case-count { letter-spacing:.035em; font-weight:600; }
