/* Approved profile direction: large portrait, open white canvas, visible business flow. */
.profile-document { scroll-behavior: smooth; }
.person-profile-page {
  --profile-ink: #193d35;
  --profile-text: #38574e;
  --profile-muted: #60766c;
  --profile-accent: #008a70;
  --profile-line: #dce7e1;
  --profile-surface: #f6faf7;
  --header-height: 76px;
  background: #fff;
  color: var(--profile-ink);
}
.profile-width, .profile-header .header-inner { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.profile-header { position: sticky; top: 0; background: #fff; border-color: var(--profile-line); }
.profile-header .header-inner { justify-content: space-between; gap: 24px; }
.profile-header .solvefolk-brand { --solvefolk-brand-width: 190px; --solvefolk-logo-size: 43px; --solvefolk-name-size: 28px; }
.profile-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--profile-muted); font-size: 13px; }
.profile-back:hover { color: var(--profile-accent); }
.profile-back svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; }
.profile-shell { padding: 0 0 60px; }
.profile-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 32%); align-items: end; gap: 60px; padding-top: 42px; }
.profile-intro-copy { padding-bottom: 28px; }
.identity-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--profile-muted); margin: 0 0 12px; }
.profile-identity h1 { margin: 0 0 12px; font-size: 48px; font-weight: 600; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; }
.identity-role { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--profile-text); }
.identity-specialty { max-width: 520px; margin: 0 0 14px; font-size: 26px; font-weight: 500; line-height: 1.6; letter-spacing: -.025em; text-wrap: pretty; }
.identity-specialty > span { display: block; }
.identity-intro { max-width: 605px; margin: 0; color: var(--profile-muted); font-size: 15px; line-height: 1.9; text-wrap: pretty; }
.identity-avatar { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; min-width: 0; }
.identity-avatar::before { content: ''; position: absolute; bottom: 0; right: 0; width: 93%; height: 76%; border-radius: 50% 50% 0 0; background: #f1f7f3; }
.identity-avatar img { position: relative; display: block; width: min(320px, 100%); height: auto; object-fit: contain; }
.identity-avatar-fallback { min-height: 250px; font-size: 96px; isolation: isolate; justify-content: center; align-items: center; }
.identity-avatar-fallback::before { z-index: -1; }
.profile-meta-row { display: flex; gap: 12px 26px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--profile-line); }
.identity-tags { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; color: var(--profile-text); font-size: 13px; }
.profile-meta-row > span { font-size: 12px; color: var(--profile-muted); }
.profile-tabs { display: flex; gap: 32px; margin: 24px 0 28px; }
.profile-tabs button { min-height: 46px; padding: 9px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--profile-muted); font-size: 15px; }
.profile-tabs button[aria-selected='true'] { color: var(--profile-accent); border-color: var(--profile-accent); font-weight: 500; }
.profile-tabs button:hover { color: var(--profile-accent); }
.profile-tab-panel { min-width: 0; }
.profile-project, .project-evidence { scroll-margin-top: 105px; }
.profile-project + .profile-project, .project-evidence + .project-evidence { margin-top: 56px; padding-top: 38px; border-top: 1px solid var(--profile-line); }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.project-heading h2, .profile-about h2, .profile-empty h2 { margin: 0; font-size: 27px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; text-wrap: balance; }
.section-eyebrow { flex: 0 0 100%; margin: 0; color: var(--profile-muted); font-size: 12px; }
.project-summary { max-width: 880px; margin: 12px 0 18px; font-size: 15px; line-height: 1.9; color: var(--profile-muted); text-wrap: pretty; }
.project-source-link { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: 12px; color: var(--profile-muted); }
.project-source-link:hover { color: var(--profile-accent); text-decoration: underline; text-underline-offset: 4px; }
.project-source-link svg { flex-shrink: 0; width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; }
.project-background { margin-bottom: 30px; border-bottom: 1px solid var(--profile-line); }
.person-profile-page summary { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 14px; line-height: 1.7; }
.person-profile-page summary::-webkit-details-marker { display: none; }
.person-profile-page summary svg { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; stroke: currentColor; stroke-width: 1.5; color: var(--profile-muted); transition: transform 150ms ease; }
.person-profile-page details[open] > summary svg { transform: rotate(180deg); }
.project-background > summary { color: var(--profile-muted); padding-top: 6px; min-height: 40px; }
.project-background-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 42px; padding: 12px 0 24px; }
.project-background-body h3 { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.project-background-body :is(p, ul) { font-size: 14px; color: var(--profile-text); line-height: 1.9; margin: 0; }
.project-background-body ul { padding-left: 18px; }
.project-background-body li + li { margin-top: 4px; }
.project-workflow, .project-methods { scroll-margin-top: 105px; }
.workflow-stages { display: grid; grid-template-columns: repeat(var(--stage-count, 4), minmax(0, 1fr)); gap: 28px; position: relative; margin: 0 0 28px; }
.workflow-stages::before { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; height: 1px; background: #cddfd5; }
.workflow-stage { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; padding: 0; background: transparent; text-align: left; color: var(--profile-ink); }
.workflow-stage::before { content: ''; display: block; flex: 0 0 10px; width: 10px; height: 10px; margin-bottom: 20px; border: 1px solid #a8c7b7; border-radius: 50%; background: #fff; }
.workflow-stage[aria-pressed='true']::before { background: var(--profile-accent); border-color: var(--profile-accent); }
.workflow-stage > strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.65; }
.workflow-stage > span { display: block; font-size: 14px; line-height: 1.9; margin: 8px 0 12px; color: var(--profile-muted); }
.workflow-stage em { display: block; margin-top: auto; padding: 5px 0; font-size: 12px; font-style: normal; color: var(--profile-muted); }
.workflow-stage[aria-pressed='true'] :is(strong, em), .workflow-stage:hover em { color: var(--profile-accent); }
.workflow-panel { border-top: 1px solid var(--profile-line); background: var(--profile-surface); padding: 22px 26px 20px; }
.workflow-detail-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--profile-accent); margin-bottom: 18px; }
.workflow-detail-heading h3 { margin: 0; font-size: 14px; font-weight: 500; }
.workflow-detail-heading > span { border-left: 1px solid #bdcfc4; padding-left: 14px; font-size: 12px; }
.workflow-detail-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 30px; }
.workflow-detail-grid h4 { margin: 0; color: var(--profile-muted); font-size: 12px; font-weight: 400; }
.workflow-detail-grid p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: var(--profile-text); }
.workflow-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 20px 0 0; border-top: 1px solid var(--profile-line); padding-top: 16px; }
.workflow-roles dt { font-size: 12px; color: var(--profile-ink); margin-bottom: 6px; font-weight: 500; }
.workflow-roles dd { margin: 0; color: var(--profile-muted); font-size: 13px; line-height: 1.9; }
.project-methods { margin-top: 32px; }
.project-methods > h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.decision-item { border-bottom: 1px solid var(--profile-line); }
.decision-body { max-width: 950px; padding: 0 28px 16px 0; }
.decision-body > p { margin: 0 0 8px; color: var(--profile-text); line-height: 1.9; font-size: 14px; }
.decision-verification { background: var(--profile-surface); padding: 18px 22px; margin-top: 14px; }
.decision-verification h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; }
.decision-verification dl { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 0; }
.decision-verification dt { font-size: 12px; color: var(--profile-muted); }
.decision-verification dd { margin: 5px 0 0; font-size: 15px; }
.decision-verification p { margin: 12px 0 0; font-size: 12px; color: var(--profile-muted); line-height: 1.8; }
.profile-about { max-width: 760px; padding-bottom: 20px; }
.profile-about blockquote { border-left: 2px solid var(--profile-accent); margin: 28px 0; padding-left: 28px; font-size: 26px; font-weight: 500; line-height: 1.9; text-wrap: pretty; }
.profile-about > p { font-size: 16px; line-height: 2; color: var(--profile-text); }
.evidence-subtitle { margin: 30px 0 0; font-size: 17px; font-weight: 500; }
.evidence-description { font-size: 14px; color: var(--profile-muted); line-height: 1.9; margin: 10px 0 0; }
.project-media-item { margin: 24px 0 32px; }
.media-preview { display: block; width: 100%; padding: 0; background: #fff; border: 1px solid var(--profile-line); border-radius: 4px; overflow: hidden; text-align: left; color: var(--profile-text); }
.media-preview > img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; background: #fff; }
.media-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--profile-surface); font-size: 12px; line-height: 1.8; border-top: 1px solid var(--profile-line); }
.media-preview-footer > span { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.media-preview-footer svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
.media-preview:hover { border-color: #97b9a7; }
.project-media-item figcaption { margin-top: 12px; color: var(--profile-muted); font-size: 12px; line-height: 1.9; }
.project-results { margin-top: 30px; }
.project-results h3 { font-size: 17px; margin: 0 0 20px; font-weight: 500; }
.project-results dl { margin: 0; }
.result-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-top: 1px solid var(--profile-line); }
.result-row dt { font-size: 15px; line-height: 1.8; }
.result-row dd { margin: 0; }
.result-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; margin: 0; }
.result-value strong { font-size: 27px; font-weight: 500; line-height: 1.45; }
.result-value .qualitative-result { font-size: 19px; }
.result-baseline { font-size: 17px; color: var(--profile-muted); }
.result-arrow { color: #8da397; font-size: 18px; }
.result-note { color: var(--profile-muted); font-size: 12px; line-height: 1.9; margin: 9px 0 0; }
.source-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--profile-line); margin-top: 26px; padding-top: 16px; font-size: 12px; color: var(--profile-muted); }
.profile-image-dialog { width: min(1200px, calc(100% - 48px)); max-height: calc(100svh - 48px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--profile-line); border-radius: 8px; background: #fff; color: var(--profile-ink); box-shadow: 0 24px 100px rgb(0 22 27 / 18%); }
.profile-image-dialog::backdrop { background: rgb(7 21 25 / 65%); }
.image-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--profile-line); }
.image-dialog-toolbar h2 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.6; }
.image-dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: var(--profile-surface); color: var(--profile-ink); }
.image-dialog-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; }
.profile-image-dialog > img { display: block; width: 100%; height: auto; }
.profile-image-dialog > p { padding: 0 18px 16px; margin: 12px 0 0; color: var(--profile-muted); font-size: 12px; line-height: 1.8; }
.profile-footer { border-top: 1px solid var(--profile-line); background: #fff; padding-block: 18px; }
.profile-footer .profile-width { display: flex; align-items: center; gap: 24px; }
.profile-footer .wordmark .solvefolk-brand { --solvefolk-brand-width: 155px; --solvefolk-logo-size: 33px; --solvefolk-name-size: 23px; }
.profile-footer .profile-width > span, .profile-footer .profile-width > a:last-child { color: var(--profile-muted); font-size: 12px; line-height: 1.8; }
.profile-footer .profile-width > a:last-child { margin-left: auto; min-height: 44px; display: flex; align-items: center; }
.profile-unavailable { min-height: 70vh; max-width: 700px; margin-inline: auto; padding: 100px 30px; }
.profile-unavailable h1 { font-size: 30px; line-height: 1.4; }
.profile-unavailable p, .profile-empty p { color: var(--profile-muted); line-height: 1.8; }
.profile-unavailable a { display: inline-block; padding-block: 12px; color: var(--profile-accent); }
.person-profile-page :is(button, a, summary, [role='tabpanel']):focus-visible { outline: 2px solid var(--profile-accent); outline-offset: 4px; }
.person-profile-page :is(button, a, summary) { touch-action: manipulation; -webkit-tap-highlight-color: rgb(0 138 112 / 10%); }
@media (max-width: 900px) {
  .profile-width, .profile-header .header-inner { width: calc(100% - 48px); }
  .profile-intro { grid-template-columns: minmax(0, 1fr) minmax(190px, 31%); gap: 30px; padding-top: 30px; }
  .profile-identity h1 { font-size: 41px; }
  .identity-specialty { font-size: 23px; }
  .identity-role { font-size: 14px; margin-bottom: 19px; }
  .identity-intro { font-size: 14px; }
  .workflow-stages { gap: 20px; }
  .workflow-stage > strong { font-size: 15px; }
  .workflow-stage > span { font-size: 13px; }
  .workflow-detail-grid { gap: 20px; }
  .workflow-detail-grid p { font-size: 13px; }
  .result-row { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .person-profile-page { --header-height: 64px; }
  .profile-width, .profile-header .header-inner { width: calc(100% - 36px); }
  .profile-header .header-inner { gap: 12px; }
  .profile-header .solvefolk-brand { --solvefolk-brand-width: 155px; --solvefolk-logo-size: 34px; --solvefolk-name-size: 24px; --solvefolk-brand-gap: 6px; }
  .profile-back { font-size: 12px; gap: 4px; }
  .profile-back svg { width: 14px; height: 14px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; align-items: start; padding-top: 28px; }
  .profile-intro-copy { display: contents; }
  .profile-identity { grid-column: 1; grid-row: 1; padding-bottom: 10px; align-self: center; }
  .identity-meta { font-size: 12px; gap: 4px 10px; margin-bottom: 12px; }
  .profile-identity h1 { font-size: 35px; line-height: 1.25; margin-bottom: 10px; }
  .identity-role { font-size: 12px; margin: 0; line-height: 1.8; }
  .identity-avatar { grid-column: 2; grid-row: 1; align-self: end; }
  .identity-avatar-fallback { min-height: 132px; font-size: 64px; }
  .profile-statement { grid-column: 1 / -1; grid-row: 2; padding: 7px 0 23px; }
  .identity-specialty { max-width: 420px; font-size: 23px; line-height: 1.65; margin-bottom: 13px; }
  .identity-intro { font-size: 14px; line-height: 1.9; }
  .profile-meta-row { gap: 10px; padding: 14px 0; }
  .identity-tags { gap: 7px 20px; font-size: 12px; }
  .profile-meta-row > span { font-size: 11px; }
  .profile-tabs { gap: 28px; margin: 15px 0 23px; }
  .profile-tabs button { font-size: 14px; }
  .project-heading { gap: 8px 16px; }
  .project-heading h2, .profile-about h2, .profile-empty h2 { font-size: 23px; }
  .project-summary { font-size: 14px; margin-top: 10px; }
  .project-background-body { grid-template-columns: 1fr; gap: 20px; }
  .project-background-body :is(p, ul) { font-size: 13px; }
  .workflow-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; }
  .workflow-stages::before, .workflow-stage::before { display: none; }
  .workflow-stage { padding-top: 12px; border-top: 1px solid var(--profile-line); }
  .workflow-stage[aria-pressed='true'] { border-color: var(--profile-accent); }
  .workflow-stage > strong { font-size: 15px; }
  .workflow-stage > span { font-size: 13px; margin-bottom: 8px; }
  .workflow-panel { padding: 20px; }
  .workflow-detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .workflow-detail-grid p { margin-top: 5px; font-size: 14px; }
  .workflow-roles { grid-template-columns: 1fr; gap: 16px; }
  .project-methods { margin-top: 26px; }
  .decision-body { padding-right: 0; }
  .decision-body > p { font-size: 13px; }
  .profile-about blockquote { font-size: 23px; padding-left: 20px; }
  .profile-about > p { font-size: 14px; }
  .media-preview-footer { gap: 12px; font-size: 11px; padding: 10px 12px; }
  .result-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .result-value strong { font-size: 25px; }
  .profile-shell { padding-bottom: 38px; }
  .profile-footer .profile-width { gap: 12px; }
  .profile-footer .profile-width > span { display: none; }
  .profile-footer .profile-width > a:last-child { font-size: 11px; }
  .profile-image-dialog { width: calc(100% - 20px); max-height: calc(100svh - 32px); }
}
@media (max-width: 360px) {
  .profile-width, .profile-header .header-inner { width: calc(100% - 28px); }
  .profile-intro { grid-template-columns: minmax(0, 1fr) 116px; gap: 14px; }
  .profile-identity h1 { font-size: 31px; }
  .profile-header .solvefolk-brand { --solvefolk-brand-width: 145px; --solvefolk-name-size: 22px; --solvefolk-logo-size: 32px; }
  .profile-back { font-size: 11px; }
  .profile-tabs { gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-document { scroll-behavior: auto; }
  .person-profile-page *, .person-profile-page *::before, .person-profile-page *::after { transition: none; }
}
