/* Phase 3: editorial profile pages. Scoped to .pm-profile; existing brand tokens. */
body.page-id-1203.ast-theme-transparent-header #masthead { position: relative; }
.pm-profile { --profile-space: clamp(3.5rem, 7vw, 6.5rem); color: var(--pm-text); font-family: var(--pm-font-body); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.pm-profile *, .pm-profile *::before, .pm-profile *::after { box-sizing: border-box; }
html body .entry-content .pm-profile :is(p, figure, blockquote, dl, ol, ul) { margin: 0; }
.pm-profile-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.pm-profile-section { padding-block: var(--profile-space); }
.pm-profile-tinted { background: var(--pm-surface-alt); }
.pm-profile-hero { padding-block: clamp(2.5rem, 5vw, 5rem) var(--profile-space); }
.pm-profile-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pm-profile-about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pm-profile :is(.pm-profile-hero-grid, .pm-profile-about-grid, .pm-profile-split, .pm-profile-three, .pm-profile-contact-grid) > * { min-width: 0; }
html body .entry-content .pm-profile h1 { margin: 12px 0 14px; color: var(--pm-text); font-size: clamp(2.5rem, 5.2vw, 4.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.055em; }
html body .entry-content .pm-profile-about h1 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); line-height: 1.16; letter-spacing: -.045em; }
.pm-profile-dot { color: var(--pm-accent); }
html body .entry-content .pm-profile .pm-profile-kicker { margin-bottom: 12px; color: var(--pm-accent); font-family: var(--pm-font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .035em; line-height: 1.7; }
html body .entry-content .pm-profile .pm-profile-role { font-size: .9375rem; color: var(--pm-muted); line-height: 1.65; }
html body .entry-content .pm-profile .pm-profile-statement { margin-block: 28px 20px; font-family: var(--pm-font-head); font-size: clamp(1.65rem, 2.5vw, 2.25rem); font-weight: 600; line-height: 1.28; letter-spacing: -.035em; }
html body .entry-content .pm-profile .pm-profile-lead { max-width: 60ch; color: var(--pm-muted); font-size: 1.0625rem; line-height: 1.8; }
html body .entry-content .pm-profile p + p { margin-top: 16px; }
html body .entry-content .pm-profile .pm-profile-muted { color: var(--pm-muted); }
.pm-profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 28px 18px; }
html body .entry-content .pm-profile a.pm-profile-button { display: inline-flex; gap: 20px; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--pm-accent); border-radius: 8px; background: var(--pm-accent); color: var(--pm-on-accent) !important; text-decoration: none; font-size: .9375rem; font-weight: 600; line-height: 1.5; }
html body .entry-content .pm-profile a.pm-profile-button:hover { background: var(--pm-accent-hover); border-color: var(--pm-accent-hover); color: var(--pm-on-accent) !important; }
html body .entry-content .pm-profile a.pm-profile-button-secondary { background: transparent; color: var(--pm-text) !important; border-color: var(--pm-border); }
html body .entry-content .pm-profile a.pm-profile-button-secondary:hover { background: var(--pm-surface-alt); border-color: var(--pm-accent); color: var(--pm-text) !important; }
html body .entry-content .pm-profile a.pm-profile-text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; padding-block: 8px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; font-size: .9375rem; font-weight: 500; }
.pm-profile-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px 24px 90px 24px; background: var(--pm-surface-alt); }
.pm-profile-portrait-tall img { aspect-ratio: 724 / 900; object-position: center 28%; }
.pm-profile-portrait figcaption { display: flex; flex-direction: column; border-left: 2px solid var(--pm-accent); padding-left: 16px; margin-top: 20px; font-size: .8125rem; color: var(--pm-muted); }
.pm-profile-portrait figcaption strong { color: var(--pm-text); font-weight: 500; }
html body .entry-content .pm-profile h2 { margin: 0 0 20px; max-width: 26ch; font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.2; letter-spacing: -.04em; }
html body .entry-content .pm-profile h3 { margin: 0 0 14px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.02em; }
.pm-profile-section-heading { margin-bottom: 36px; }
.pm-profile-section-heading p { max-width: 62ch; }
.pm-profile-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--pm-border); border-radius: 16px; background: var(--pm-surface); }
html body .entry-content .pm-profile-project h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pm-profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px 14px; }
.pm-profile-tags span { padding: 4px 10px; border: 1px solid var(--pm-border); border-radius: 5px; color: var(--pm-muted); font-family: var(--pm-font-mono); font-size: .75rem; }
html body .entry-content .pm-profile .pm-profile-contributions { list-style: none; padding: 0; display: grid; gap: 24px; }
.pm-profile-contributions li { border-left: 2px solid var(--pm-border); padding-left: 20px; }
.pm-profile-contributions strong { display: block; margin-bottom: 6px; font-family: var(--pm-font-head); font-weight: 600; }
.pm-profile-contributions span { color: var(--pm-muted); font-size: .9375rem; }
.pm-profile-section-bottom { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 24px; font-size: .875rem; }
.pm-profile-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 28px; }
.pm-profile-three article { padding-top: 24px; border-top: 1px solid var(--pm-border); }
.pm-profile-three article > p:not(.pm-profile-kicker) { color: var(--pm-muted); font-size: .9375rem; }
html body .entry-content .pm-profile .pm-profile-caption { color: var(--pm-muted); font-family: var(--pm-font-mono); font-size: .75rem; line-height: 1.9; }
.pm-profile-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.pm-profile-design { align-self: center; max-width: 460px; justify-self: end; }
.pm-profile-design img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.pm-profile-design-caption { display: flex; justify-content: space-between; padding: 16px 20px; color: var(--pm-text); font-size: .9375rem; }
.pm-profile-contact { background: var(--pm-surface); border-top: 1px solid var(--pm-border); }
.pm-profile-contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pm-profile-contact-grid p { max-width: 53ch; color: var(--pm-muted); }
.pm-profile-contact-grid .pm-profile-actions { margin-top: 0; }
.pm-profile-mail { display: inline-block; padding-block: 8px; overflow-wrap: anywhere; font-family: var(--pm-font-mono); font-size: .8125rem; }
html body .entry-content .pm-profile .pm-profile-timeline { list-style: none; padding: 0 0 0 24px; border-left: 1px solid var(--pm-border); }
.pm-profile-timeline li { position: relative; padding-bottom: 36px; }
.pm-profile-timeline li:last-child { padding-bottom: 0; }
.pm-profile-timeline li::before { content: ''; position: absolute; width: 9px; height: 9px; border: 2px solid var(--pm-accent); background: var(--pm-surface-alt); border-radius: 50%; left: -29px; top: 8px; }
html body .entry-content .pm-profile-timeline h3 { margin-block: 10px 12px; }
.pm-profile-role-small { font-size: .9375rem; color: var(--pm-accent); }
#deneyim { scroll-margin-top: 24px; }
.pm-profile-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.pm-profile-skills > div { border-top: 1px solid var(--pm-border); padding-block: 24px; }
.pm-profile-skills dt, .pm-profile-roles dt { font-family: var(--pm-font-head); font-weight: 600; margin-bottom: 10px; }
.pm-profile-skills dd, .pm-profile-roles dd { margin: 0; color: var(--pm-muted); font-size: .9375rem; }
html body .entry-content .pm-profile .pm-profile-roles { margin-top: 28px; display: grid; gap: 18px; }
html body .entry-content .pm-profile .pm-profile-subheading { margin-top: 36px; }
@media (max-width: 1050px) {
  .pm-profile-hero-grid { gap: 32px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .pm-profile-project { gap: 28px; }
}
@media (max-width: 767px) {
  .pm-profile-wrap { width: calc(100% - 40px); }
  .pm-profile-hero-grid, .pm-profile-about-grid, .pm-profile-project, .pm-profile-split, .pm-profile-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pm-profile-portrait { width: min(100%, 340px); }
  .pm-profile-portrait-tall { width: min(100%, 290px); }
  .pm-profile-three, .pm-profile-skills { grid-template-columns: minmax(0, 1fr); }
  .pm-profile-three { gap: 28px; }
  .pm-profile-design { justify-self: start; width: 100%; }
  .pm-profile-section-bottom { flex-direction: column; align-items: flex-start; }
  .pm-profile-contact-grid .pm-profile-actions { margin-bottom: 12px; }
}
@media (max-width: 374px) {
  .pm-profile-wrap { width: calc(100% - 32px); }
  .pm-profile-actions { gap: 10px; }
  html body .entry-content .pm-profile a.pm-profile-button { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-profile .pm-card:hover, .pm-profile .pm-card:focus-visible { transform: none; }
}
/* Present in PHP before wp_body_open's existing navbar; works without JS. */
.pm-profile-skip { position: fixed; top: 12px; left: 12px; z-index: 100001; padding: 12px 20px; min-height: 44px; background: var(--pm-surface); color: var(--pm-accent); border: 2px solid var(--pm-accent); border-radius: 8px; clip-path: inset(50%); }
.pm-profile-skip:focus { clip-path: none; }
#pm-profile-start:focus { outline: none; }
/* Let navigation labels grow and wrap with user text sizing on these pages. */
@media (max-width: 921px) {
  body:is(.page-id-1201, .page-id-1203) {
    --pm-profile-nav-height: max(60px, calc(4rem - 12px));
    padding-bottom: calc(var(--pm-profile-nav-height) + env(safe-area-inset-bottom, 0px));
  }
  body:is(.page-id-1201, .page-id-1203) .pm-mnav {
    height: calc(var(--pm-profile-nav-height) + env(safe-area-inset-bottom, 0px));
  }
  body:is(.page-id-1201, .page-id-1203) .pm-mnav-label {
    max-width: 100%; white-space: normal; overflow-wrap: anywhere;
    text-align: center; line-height: 1.2;
  }
  body:is(.page-id-1201, .page-id-1203) .pm-mnav-cv { align-self: center; }
}

/* Mobile: show the existing portrait alongside the introduction; leave room
   for the technical profile and its actions in the first viewport. */
@media (max-width: 767px) {
  .pm-profile-hero { padding-top: 24px; }
  .pm-profile-hero-grid, .pm-profile-about-grid { position: relative; }
  .pm-profile-hero-grid .pm-profile-portrait,
  .pm-profile-about-grid .pm-profile-portrait { width: 100%; max-width: none; }
  .pm-profile-hero .pm-profile-portrait img {
    position: absolute; top: 0; right: 0; width: 64px; height: 64px;
    aspect-ratio: 1; object-fit: cover; border-radius: 18px;
  }
  .pm-profile-hero .pm-profile-portrait-tall img { object-position: center 28%; }
  html body .entry-content .pm-profile-hero .pm-profile-kicker {
    min-height: 64px; padding-right: 84px; display: flex; align-items: center;
  }
  .pm-profile-hero .pm-profile-portrait figcaption { margin-top: 0; }
}
