/* The public profile uses existing Popoto tokens and native document navigation. */
.profile-page { overflow-wrap: anywhere; }
.profile-header { border-bottom: 1px solid var(--line); }
html[data-palette] .profile-header .theme-toggle { margin-inline-start: auto; width: 44px; padding: 0; flex-shrink: 0; }
.profile-header .theme-toggle > .theme-label { display: none; }
.profile-main { max-width: 1200px; padding-block: 28px 0; }
.profile-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .8125rem; }
.profile-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.profile-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.8fr); align-items: center; gap: clamp(32px,7vw,100px); padding-block: 48px 80px; }
.profile-kicker { color: var(--violet-text); font-size: .8125rem; font-weight: 550; margin-block: 0 20px; }
.profile-intro h1 { font-size: clamp(3.75rem,7vw,6.75rem); line-height: .99; letter-spacing: -.065em; font-weight: 550; margin: 0 0 28px; }
.profile-intro h1 > span { color: var(--violet-text); }
.profile-role { font-size: clamp(1.25rem,2vw,1.625rem); line-height: 1.4; letter-spacing: -.025em; color: var(--ink); max-width: 27ch; margin-block: 0 20px; }
.profile-intro > p:not(.profile-kicker,.profile-role), .profile-section p:not(.profile-kicker,.profile-case-caption), .profile-contact p:not(.profile-kicker) { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.profile-intro .profile-location { font-size: .8125rem !important; margin-block: 22px; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-block-start: 26px; }
.profile-page .profile-primary { color: var(--action-ink); background: var(--action-bg); padding: 16px 20px; border-radius: 12px; font-size: .875rem; text-transform: none; letter-spacing: 0; min-height: 50px; }
.profile-page .profile-primary:hover { background: var(--action-hover); }
.profile-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.profile-text-link:hover { color: var(--violet-text); text-decoration-color: currentColor; }
.profile-text-link > span { font-size: 1.25rem; text-decoration: none; }
.profile-workspace { padding: clamp(24px,3.3vw,48px); background: var(--brand-deep); color: #fff; border: 1px solid var(--brand-deep); border-radius: 24px; position: relative; }
.profile-initials { color: var(--brand-accent); font-size: clamp(3rem,5vw,5rem); font-weight: 500; line-height: 1.1; letter-spacing: -.07em; margin-bottom: 32px; }
.profile-initials > span { color: #fff; }
.profile-workspace-title { font-size: 1.4rem; line-height: 1.4; letter-spacing: -.03em; max-width: 19ch; margin-bottom: 30px; }
.profile-stack { padding: 0; list-style: none; margin: 0; }
.profile-stack li { display: flex; align-items: center; gap: 16px; border-top: 1px solid #ffffff35; padding-block: 18px; font-size: .9375rem; }
.profile-stack span { font-size: .6875rem; color: var(--brand-tint); font-variant-numeric: tabular-nums; }
.profile-workspace > p:last-child { color: #e5eaf2; font-size: .75rem; margin-block: 16px 0; }
.profile-section { padding-block: 64px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.profile-section h2, .profile-contact h2 { font-size: clamp(2rem,3.5vw,3rem); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; margin-block: 0 24px; text-wrap: balance; }
.profile-section p { margin-block: 0 18px; }
.profile-story, .profile-services { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr); gap: clamp(28px,7vw,100px); }
.profile-case { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
.profile-case-heading { padding-top: 16px; }
.profile-case-heading p:not(.profile-kicker) { max-width: 42ch; }
.profile-case-detail { padding: 28px; border-radius: 20px; background: var(--surface-soft); border: 1px solid var(--line); }
.profile-case-caption { color: var(--violet-text); font-size: .8125rem; font-weight: 550; }
.profile-features { list-style: none; padding: 0; margin: 0 0 12px; }
.profile-features li { display: flex; align-items: flex-start; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.profile-features li > span { flex-shrink: 0; color: var(--violet-text); font-size: .6875rem; padding-top: 5px; font-variant-numeric: tabular-nums; }
.profile-features h3 { font-size: 1rem; line-height: 1.45; font-weight: 550; margin: 0 0 6px; letter-spacing: -.015em; }
.profile-features li p { font-size: .875rem !important; line-height: 1.7 !important; margin: 0; }
.profile-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.profile-section-heading h2 { margin-bottom: 0; }
.profile-projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.profile-projects > a { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.profile-projects > a:hover { border-color: var(--violet-text); }
.profile-projects img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.profile-projects a > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 22px; }
.profile-projects h3 { font-size: 1.125rem; line-height: 1.4; margin: 0; font-weight: 550; }
.profile-projects a > div > span { font-size: 1.125rem; }
.profile-projects a p { font-size: .8125rem !important; line-height: 1.6 !important; grid-column: 1/-1; margin: 4px 0 0; }
.profile-services nav { display: flex; flex-direction: column; }
.profile-services nav a { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.profile-services nav a:first-child { border-top: 1px solid var(--line); }
.profile-services nav a:hover { color: var(--violet-text); }
.profile-services nav a span { flex-shrink: 0; }
.profile-contact { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 22px; padding: 40px; margin-block: 12px 24px; }
.profile-contact .profile-actions { align-items: flex-start; flex-direction: column; margin: 0; }
.profile-contact h2 { margin-bottom: 14px; }
.profile-contact p { margin-bottom: 0; max-width: 45ch; }
.profile-contact .profile-kicker { margin-bottom: 18px; }
.profile-identity { color: var(--muted); font-size: .75rem; line-height: 1.8; padding-block: 12px 48px; max-width: 85ch; }
.profile-page :is(a,button):focus-visible { outline: 2px solid var(--violet-text); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .profile-hero { animation: profile-arrive .5s ease-out both; }
  @keyframes profile-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 30px; }
  .profile-story, .profile-services { gap: 36px; }
  .profile-projects { gap: 14px; }
  .profile-projects a > div { padding: 16px; }
  .profile-contact { grid-template-columns: 1fr; }
  .profile-contact .profile-actions { flex-direction: row; align-items: center; }
}
@media (max-width: 650px) {
  .profile-header { gap: 12px; padding-block: 18px; flex-wrap: wrap; }
  .profile-main { padding-top: 12px; }
  .profile-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 48px; }
  .profile-intro h1 { font-size: clamp(3.5rem,14vw,5rem); margin-bottom: 22px; }
  .profile-intro h1 br { display: none; }
  .profile-intro h1 br::after { content: ' '; }
  .profile-intro h1 { max-width: 7ch; }
  .profile-workspace { padding: 24px; }
  .profile-initials { font-size: 2.75rem; margin-bottom: 18px; }
  .profile-workspace-title { max-width: none; font-size: 1.125rem; margin-bottom: 14px; }
  .profile-stack li { padding-block: 13px; }
  .profile-section { padding-block: 48px; }
  .profile-story, .profile-services, .profile-case { grid-template-columns: 1fr; gap: 20px; }
  .profile-section h2, .profile-contact h2 { font-size: 2rem; }
  .profile-case-heading { padding: 0; }
  .profile-case-detail { padding: 22px; }
  .profile-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .profile-projects { grid-template-columns: 1fr; gap: 24px; }
  .profile-projects img { aspect-ratio: 1.9; }
  .profile-contact { padding: 24px; }
  .profile-contact .profile-actions { align-items: stretch; flex-direction: column; }
}
