/* Scoped to the personal profile; uses the shared light/dark theme tokens. */
.analyst-profile { color: var(--text); font: 16px/1.65 var(--font); }
.analyst-profile * { box-sizing: border-box; }
.analyst-profile .ap-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.analyst-profile h1, .analyst-profile h2, .analyst-profile h3 { color: var(--text); font-family: var(--font); text-wrap: balance; }
.analyst-profile h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.06; letter-spacing: -.045em; margin: 14px 0 18px; font-weight: 800; }
.analyst-profile h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.16; letter-spacing: -.03em; margin: 0 0 20px; max-width: 28ch; }
.analyst-profile h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 12px; }
.analyst-profile p { margin: 0 0 16px; }
.analyst-profile p:last-child { margin-bottom: 0; }
.analyst-profile a { color: var(--accent2); text-underline-offset: 4px; }
.analyst-profile a:hover { text-decoration: underline; }
.analyst-profile :is(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--accent2); outline-offset: 4px; }
.analyst-profile :is(section, form, h2) { scroll-margin-top: calc(var(--nav-h) + 28px); }
.analyst-profile .ap-breadcrumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.analyst-profile .ap-breadcrumb a { color: inherit; }
.analyst-profile .ap-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: center; gap: 64px; padding: 54px 0 48px; }
.analyst-profile .ap-eyebrow { color: var(--accent2); font-size: 13px; font-weight: 750; letter-spacing: .04em; margin-bottom: 16px; }
.analyst-profile .ap-role { font-size: 15px; font-weight: 650; color: var(--muted); margin-bottom: 26px; }
.analyst-profile .ap-promise { font-size: 25px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; max-width: 31ch; }
.analyst-profile .ap-lead { color: var(--muted); font-size: 17px; max-width: 73ch; line-height: 1.7; }
.analyst-profile .ap-portrait { margin: 0; border: 1px solid var(--border-strong); border-radius: 22px; padding: 12px; background: var(--surface); transform: rotate(2deg); }
.analyst-profile .ap-portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 13px; }
.analyst-profile .ap-portrait figcaption { font-size: 13px; line-height: 1.5; margin: 14px 4px 4px; color: var(--muted); }
.analyst-profile .ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.analyst-profile .ap-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: 650 15px/1.4 var(--font); cursor: pointer; text-decoration: none; }
.analyst-profile .ap-button:hover { background: var(--surface2); text-decoration: none; border-color: var(--text); }
.analyst-profile .ap-primary { background: var(--accent); color: #141414; border-color: transparent; }
.analyst-profile .ap-primary:hover { background: var(--accent3); border-color: transparent; }
.analyst-profile .ap-button:disabled { cursor: wait; opacity: .7; }
.analyst-profile .ap-jumps { display: flex; flex-wrap: wrap; gap: 8px 32px; border-block: 1px solid var(--border); padding: 12px 0; }
.analyst-profile .ap-jumps a { color: var(--text); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 40px; }
.analyst-profile .ap-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.analyst-profile .ap-case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 28px 0; padding: 24px 0; border-block: 1px solid var(--border); }
.analyst-profile dt { font-weight: 750; margin-bottom: 8px; }
.analyst-profile dd { margin: 0; color: var(--muted); }
.analyst-profile .ap-question { border-radius: 18px; background: #181818; color: #fff; padding: 28px 32px; border-left: 4px solid var(--accent); }
.analyst-profile .ap-question h3 { color: #ff9a83; font-size: 14px; letter-spacing: .02em; }
.analyst-profile .ap-question p { color: #fff; font-size: 23px; line-height: 1.4; max-width: 65ch; }
.analyst-profile .ap-steps { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.analyst-profile .ap-steps p { color: var(--muted); }
.analyst-profile .ap-step-number { display: inline-block; color: var(--accent2); font: 600 14px var(--mono); margin-bottom: 20px; }
.analyst-profile .ap-finding { border: 1px solid var(--border-strong); border-radius: 18px; padding: 28px 32px; background: var(--surface); }
.analyst-profile .ap-finding h3 { font-size: 24px; }
.analyst-profile .ap-finding p { max-width: 85ch; }
.analyst-profile .ap-next { border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); }
.analyst-profile :is(.ap-evidence, .ap-credentials) { margin-top: 20px; border: 1px solid var(--border); border-radius: 14px; padding: 0 24px; background: var(--surface); }
.analyst-profile summary { cursor: pointer; min-height: 56px; padding: 16px 0; font-weight: 650; color: var(--text); }
.analyst-profile details[open] { padding-bottom: 24px; }
.analyst-profile .ap-evidence dl { display: grid; gap: 20px; margin: 12px 0 0; }
.analyst-profile .ap-limits { margin: 26px 0; color: var(--muted); }
.analyst-profile .ap-limits h3 { font-size: 17px; }
.analyst-profile .ap-small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.analyst-profile .ap-actions .ap-small { max-width: 40ch; margin: 0; }
.analyst-profile .ap-product { margin: 36px 0 0; background: var(--surface2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.analyst-profile .ap-product img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
.analyst-profile .ap-product figcaption { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 95ch; }
.analyst-profile .ap-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 32px; }
.analyst-profile .ap-skills > div { border-top: 3px solid var(--accent); padding-top: 22px; }
.analyst-profile .ap-skills p { color: var(--muted); }
.analyst-profile .ap-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.analyst-profile .ap-course { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.analyst-profile .ap-course-top { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.analyst-profile .ap-course-top span { color: var(--muted); }
.analyst-profile .ap-course p { color: var(--muted); }
.analyst-profile .ap-course a { margin-top: auto; padding-top: 8px; font-weight: 650; }
.analyst-profile .ap-credentials ul { list-style: none; margin: 0; padding: 0; }
.analyst-profile .ap-credentials li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--border); padding: 14px 0; }
.analyst-profile .ap-credentials li span { color: var(--muted); font-size: 14px; }
.analyst-profile .ap-timeline { list-style: none; padding: 0; margin: 30px 0 0; }
.analyst-profile .ap-timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--border); padding: 24px 0; }
.analyst-profile .ap-timeline li > span { color: var(--accent2); font-size: 14px; font-weight: 650; }
.analyst-profile .ap-timeline p { color: var(--muted); }
.analyst-profile .ap-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-bottom: 0; padding-bottom: 80px; }
.analyst-profile .ap-contact > div > p:not(.ap-eyebrow) { color: var(--muted); max-width: 44ch; }
.analyst-profile .ap-contact-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.analyst-profile .ap-contact-links a:first-child { flex-basis: 100%; overflow-wrap: anywhere; }
.analyst-profile .ap-contact-links a { padding-block: 6px; font-weight: 650; }
.analyst-profile #contactForm { background: var(--surface); padding: 26px; border: 1px solid var(--border); border-radius: 18px; min-width: 0; }
.analyst-profile label { display: block; font-size: 14px; font-weight: 650; margin: 16px 0 8px; }
.analyst-profile :is(input, textarea) { display: block; width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
.analyst-profile textarea { resize: vertical; min-height: 135px; }
.analyst-profile #cfSubmit { width: 100%; margin: 18px 0 12px; }
.analyst-profile #cfSubmit svg { width: 15px; height: 15px; }
.analyst-profile .ap-status:empty { display: none; }
.analyst-profile .ap-status { margin: 12px 0; font-size: 14px; }
.analyst-profile .ap-status.err { color: var(--red); }
.analyst-profile .ap-status.ok { color: var(--green); }
@media (max-width: 850px) {
  .analyst-profile .ap-hero { grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
  .analyst-profile .ap-contact { gap: 28px; }
  .analyst-profile :is(.ap-steps, .ap-skills) { grid-template-columns: 1fr; gap: 24px; }
  .analyst-profile .ap-step-number { margin-bottom: 10px; }
}
@media (max-width: 600px) {
  .analyst-profile .ap-shell { width: calc(100% - 36px); }
  .analyst-profile .ap-breadcrumb { font-size: 12px; padding-top: 20px; }
  .analyst-profile .ap-hero { grid-template-columns: 1fr; padding: 32px 0; gap: 28px; }
  .analyst-profile h1 { font-size: clamp(34px, 9.6vw, 48px); }
  .analyst-profile .ap-promise { font-size: 23px; }
  .analyst-profile .ap-portrait { transform: none; display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: 16px; }
  .analyst-profile .ap-portrait img { width: 92px; height: 92px; flex: 0 0 92px; }
  .analyst-profile .ap-portrait figcaption { margin: 0; }
  .analyst-profile .ap-actions { align-items: stretch; }
  .analyst-profile .ap-hero .ap-button { width: 100%; }
  .analyst-profile .ap-jumps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .analyst-profile .ap-section { padding: 40px 0; }
  .analyst-profile :is(.ap-case-meta, .ap-courses, .ap-contact) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .analyst-profile :is(.ap-question, .ap-finding, .ap-course, #contactForm) { padding: 22px; }
  .analyst-profile .ap-question p { font-size: 21px; }
  .analyst-profile .ap-product { padding: 10px; border-radius: 14px; }
  .analyst-profile .ap-product figcaption { padding: 0 4px 4px; }
  .analyst-profile .ap-timeline li { grid-template-columns: 1fr; gap: 10px; }
}
