/* Shared foundations, navigation, and contact. Section layouts live beside this file. */
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("../fonts/roboto-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #192437;
  --muted: #596579;
  --line: #e3e7ef;
  --purple: #6845cc;
  --blue: #426cbf;
  --wash: #f0ecfa;
  --tag: #f3f5f9;
  --shadow: 0 8px 28px #19243708;
  --header: #ffffffed;
  --art: #eef1fb;
  --focus: #6845cc;
  --header-height: 66px;
  --section-title-size: 28px;
  --card-title-size: 16px;
  --radius-card: 14px;
  --radius-chip: 6px;
  --section-gap: 64px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1523;
  --surface: #172132;
  --text: #eef2fa;
  --muted: #b0bdd1;
  --line: #2b374b;
  --purple: #bea6ff;
  --blue: #8cb7f4;
  --wash: #2b2542;
  --tag: #1d293d;
  --shadow: 0 8px 28px #0002;
  --header: #111a2aed;
  --art: #202c43;
  --focus: #c9b5ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 Roboto, Arial, sans-serif; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: Manrope, Arial, sans-serif; }
h1 { font-weight: 800; }
h2 { font-size: var(--section-title-size); font-weight: 600; line-height: 1.35; letter-spacing: -.7px; text-wrap: balance; }
h3 { font-size: var(--card-title-size); font-weight: 600; line-height: 1.5; letter-spacing: -.2px; text-wrap: pretty; }
h4 { font-size: 14px; font-weight: 600; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
::selection { background: #ddd3fa; color: #271647; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--surface); padding: 12px 20px; border: 2px solid var(--purple); }
.skip-link:focus { top: 10px; }

/* A compact navigation rail keeps every section within reach. */
.topbar { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--header); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; font: 600 12px/1.4 Manrope, Arial, sans-serif; letter-spacing: 1.5px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-caption { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.icon-button .icon { width: 20px; height: 20px; }
.icon-button:hover { background: var(--wash); color: var(--purple); }
.sun { display: none; }
[data-theme="dark"] .sun { display: block; }
[data-theme="dark"] .moon { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 12px; }
.menu-toggle > span[aria-hidden] { font-size: 19px; line-height: 1; transition: transform .18s; }
.menu-toggle[aria-expanded="true"] > span[aria-hidden] { transform: rotate(45deg); }
.page-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); max-width: 1480px; margin: auto; }
.sidebar { position: sticky; top: var(--header-height); height: calc(100dvh - var(--header-height)); overflow-y: auto; scrollbar-width: thin; padding: 32px 18px; border-right: 1px solid var(--line); }
.identity { padding: 0 12px 26px; border-bottom: 1px solid var(--line); }
.identity h2 { font-size: 19px; letter-spacing: -.5px; text-wrap: nowrap; }
.identity .role { margin-top: 5px; font-size: 13px; }
.profile-specialty { margin-top: 5px; color: var(--muted); font-size: 12px; }
.profile-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 10px; color: var(--purple); font-size: 12px; font-weight: 500; }
.profile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.linkedin-icon { font: bold 14px Arial, sans-serif; }
.profile-nav { display: grid; gap: 5px; margin-top: 22px; }
.nav-label { margin: 0 12px 8px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 1.7px; }
.profile-nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 12px; border-radius: 9px; color: var(--muted); font-size: 12px; transition: color .18s, background .18s; }
.profile-nav .icon { width: 18px; height: 18px; }
.profile-nav a:hover { background: var(--tag); color: var(--text); }
.profile-nav a.active { background: var(--wash); color: var(--purple); font-weight: 500; }
main { min-width: 0; padding: 26px 40px 0; }
main > section:not(.hero) { margin-top: var(--section-gap); }
main section[id] { scroll-margin-top: 0; }
.section-intro { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-intro .eyebrow { margin-bottom: 10px; }
.section-intro > p:not(.eyebrow) { max-width: 660px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.section-intro .section-heading { margin-bottom: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 500; letter-spacing: 1.7px; color: var(--purple); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > span { color: var(--muted); font-size: 12px; text-align: right; }
.section-description { max-width: 660px; margin-bottom: 26px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-description { color: var(--muted); }
h1 > span { color: var(--purple); background: linear-gradient(110deg, #7450c9, #4975ba); background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] h1 > span { background-image: linear-gradient(110deg, #c3a5ff, #91b9ef); }
.card { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 11px 18px; border: 1px solid #6845cc; border-radius: 9px; background: #6845cc; color: #fff; font-size: 13px; font-weight: 500; transition: background .18s, border-color .18s; }
.button:hover { background: #5735b5; border-color: #5735b5; }
.button-outline { border-color: var(--line); background: var(--surface); color: var(--purple); }
.button-outline:hover { border-color: var(--purple); background: var(--wash); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--purple); font-size: 12px; font-weight: 500; }
.text-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button { min-height: 42px; padding: 10px 12px; border: 0; background: transparent; color: var(--purple); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 9px; border: 0; border-radius: var(--radius-chip); background: var(--tag); color: var(--muted); font-size: 12px; line-height: 1.5; }
.role-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A clear closing invitation, with the email available directly. */
.contact-editorial { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(115deg, var(--surface), var(--wash)); }
.contact-editorial > .icon { display: none; }
.contact-editorial .eyebrow { margin-bottom: 10px; }
.contact-editorial > div:not(.contact-actions) > p:last-child { max-width: 440px; margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-email { display: inline-block; margin-top: 10px; color: var(--purple); font-size: 15px; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-actions { display: grid; justify-items: stretch; gap: 8px; flex: none; }
.copy-email { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 12px; }
.copy-email:hover { color: var(--purple); border-color: var(--purple); }
.copy-status { max-width: 220px; min-height: 18px; color: var(--muted); font-size: 12px; text-align: center; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; color: var(--muted); font-size: 11px; }
footer a { display: inline-flex; align-items: center; min-height: 42px; }

@media (max-width: 1100px) {
  :root { --section-title-size: 26px; }
  .page-layout { grid-template-columns: 208px minmax(0, 1fr); }
  .sidebar { padding: 28px 12px; }
  main { padding: 24px 28px 0; }
  .contact-editorial { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  :root { --header-height: 62px; --section-title-size: 24px; --section-gap: 48px; }
  .topbar { gap: 12px; padding: 0 20px; }
  .wordmark { font-size: 11px; gap: 10px; letter-spacing: 1.2px; }
  .header-caption { display: none; }
  .header-actions { gap: 8px; }
  .page-layout { display: block; }
  .sidebar { position: static; height: auto; padding: 0; border: 0; overflow: visible; }
  .identity { display: none; }
  .profile-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .nav-label { grid-column: 1 / -1; margin-top: 4px; }
  .profile-nav a { font-size: 12px; }
  .js .profile-nav { display: none; position: fixed; z-index: 30; top: calc(var(--header-height) + 10px); right: 16px; left: 16px; margin: 0; max-height: calc(100dvh - var(--header-height) - 30px); overflow-y: auto; box-shadow: 0 14px 45px #111b3026; }
  .js .profile-nav.is-open { display: grid; }
  main { padding: 18px 20px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading > span { text-align: left; }
  .section-description { font-size: 13px; }
  .contact-editorial { padding: 26px; gap: 22px; }
  .contact-editorial > div:not(.contact-actions) > p:last-child { font-size: 13px; }
}
@media (max-width: 380px) {
  .topbar { padding: 0 12px; }
  .wordmark { font-size: 10px; gap: 8px; letter-spacing: .8px; }
  .header-actions { gap: 6px; }
  .menu-toggle { padding: 8px 10px; }
  main { padding-right: 16px; padding-left: 16px; }
  .profile-nav { grid-template-columns: 1fr; }
  .profile-nav a { min-height: 42px; }
  .contact-editorial { padding: 22px; }
  .contact-email { font-size: 14px; }
  footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
