/* Profile dock inspired by Osmo's Apple Dock. See profile-dock-LICENSE.txt. */
.personal-panel { border: 1px solid var(--border); border-radius: 28px; padding: clamp(24px, 4vw, 48px); background: var(--surface-1); }
.personal-panel .section-header { text-align: left; margin-bottom: 32px; }
.personal-panel .section-title::after { left: 0; transform: none; }
.personal-panel .section-subtitle { margin-inline: 0; }
.personal-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.personal-intro > * { min-width: 0; }
.personal-panel .about-description { font-size: 17px; line-height: 1.85; }
.personal-panel .about-info { font-size: 15px; margin-bottom: 0; }
.personal-panel .skills-grid { gap: 24px; }
.personal-panel .skill-category h3 { font-size: 16px; margin-bottom: 10px; }
.personal-panel .skill-tag { font-size: 13px; }
.personal-panel .skill-practice { display: flex; align-items: flex-start; gap: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.personal-panel .skill-practice:first-child { padding-top: 0; border-top: 0; }
.skill-practice > div { min-width: 0; }
.personal-panel .skill-practice h3 { margin-bottom: 6px; font-size: 18px; }
.skill-practice p { margin: 0; color: var(--text-1); font-size: 15px; line-height: 1.75; }
.skill-practice-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; color: var(--accent-primary); background: color-mix(in srgb, var(--accent-primary) 9%, transparent); font-size: 18px; }
.skill-practice:nth-child(2) .skill-practice-icon { color: var(--accent-secondary); background: color-mix(in srgb, var(--accent-secondary) 9%, transparent); }
.personal-approach { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.personal-approach .section-title { font-size: clamp(26px, 3vw, 34px); }
.personal-approach .service-card { padding: 24px; border-radius: 16px; }
.personal-approach .service-title { font-size: 19px; }
.personal-approach .service-description { font-size: 16px; line-height: 1.75; }
.personal-approach .work-example-links .studio-link { font-size: 15px; }
.profile-showcase { position: relative; min-width: 0; margin-top: 38px; }
.profile-showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.profile-showcase-heading h3 { font-size: 18px; color: var(--text-0); margin: 0; }
.profile-showcase-heading span { color: var(--text-2); font: 11px var(--font-mono); }
.profile-stage { display: grid; gap: 18px; }
.profile-card { --profile-tone: #7cd4b0; position: relative; display: flex; flex-direction: column; gap: 0; padding: 14px; border-radius: 30px; border: 1px solid var(--border); background: var(--surface-0); color: var(--text-0); overflow: hidden; min-width: 0; }
.profile-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--profile-tone) 7%, transparent), transparent 65%); pointer-events: none; }
.profile-card::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain-texture); opacity: .23; mix-blend-mode: soft-light; mask-image: radial-gradient(ellipse 60% 65% at 100% 0, #000, transparent 80%); }
.profile-card > * { position: relative; }
.profile-card > * { z-index: 1; }
.profile-card-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; flex: 1; }
.profile-overview, .profile-detail { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: clamp(20px, 2.4vw, 28px); border-radius: 20px; background: var(--surface-1); }
.profile-card[data-profile="youtube"] .profile-detail { gap: 20px; }
.profile-card[data-profile="github"] { --profile-tone: #b19aeb; }
.profile-card[data-profile="spotify"] { --profile-tone: #64d783; }
.profile-card[data-profile="youtube"] { --profile-tone: #ec9a7d; }
.profile-card-heading { display: flex; gap: 18px; align-items: center; }
.profile-card-heading > div:last-child { min-width: 0; }
.profile-avatar { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--surface-card); }
.profile-avatar img, .profile-avatar svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-platform { display: block; color: var(--text-2); font: 14px/1.6 var(--font-mono); margin-bottom: 3px; }
.profile-card h4 { font-size: 28px; line-height: 1.25; letter-spacing: -.03em; margin: 0; color: var(--text-0); }
.profile-handle { color: var(--text-2); font-size: 16px; display: block; margin-top: 4px; overflow-wrap: anywhere; }
.profile-card p { font-size: 17px; line-height: 1.7; color: var(--text-1); margin: 0; }
.profile-stats { display: flex; gap: 12px; margin: 0; }
.profile-stats > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.profile-stats dt { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.profile-stats dd { order: -1; font-size: 24px; font-weight: 600; color: var(--text-0); margin: 0 0 4px; line-height: 1.4; }
.profile-activity { margin: 0; }
.profile-activity svg { display: block; width: 100%; height: auto; border-radius: 5px; }
.profile-activity > img { display: block; width: 100%; height: auto; border-radius: 5px; }
.profile-activity object { display: block; width: 100%; height: auto; aspect-ratio: 636 / 81; }
.profile-card-footer { display: flex; justify-content: flex-end; padding: 12px 14px 0; }
.profile-open { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; color: var(--text-0); text-decoration: none; min-height: 44px; }
.profile-open i { font-size: 11px; }
.profile-open:hover, .profile-picks a:hover { color: var(--accent-secondary); }
.profile-picks { display: grid; gap: 10px; }
.profile-picks a { display: flex; gap: 16px; align-items: center; color: var(--text-0); text-decoration: none; font-size: 17px; line-height: 1.5; }
.profile-picks img { width: 64px; height: 64px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.profile-picks small { display: block; color: var(--text-2); font-size: 14px; }
.profile-music-group h5, .profile-group h5 { color: var(--text-0); font-size: 18px; line-height: 1.5; font-weight: 500; margin: 0 0 12px; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
.profile-plugins { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.profile-plugins li { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); }
.profile-plugins img { display: block; width: 32px; height: 32px; object-fit: contain; }
.profile-plugins i { font-size: 32px; }
.profile-insights { margin: 0; display: grid; gap: 8px; }
.profile-insights > div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.5; }
.profile-insights dt { color: var(--text-2); }
.profile-insights dd { margin: 0; color: var(--text-0); text-align: right; }
.profile-github-bio > span, .profile-channel-meta > span { display: block; font-size: 14px; line-height: 1.6; color: var(--text-2); margin-top: 4px; }
.profile-card .profile-native-meta { font-size: 14px; line-height: 1.6; }
.profile-channel-banner { display: block; width: 100%; height: auto; border-radius: 10px; }
.profile-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-video-grid > a { min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text-0); font-size: 15px; line-height: 1.5; }
.profile-video-grid > a:hover { color: var(--accent-secondary); }
.profile-video-grid small { display: block; font-size: 14px; color: var(--text-2); margin-top: 3px; }
.profile-video-thumbnail { position: relative; display: block; }
.profile-video-thumbnail > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.profile-video-duration { display: flex; align-items: center; gap: 4px; position: absolute; right: 5px; bottom: 5px; border-radius: 4px; background: rgba(0,0,0,.85); padding: 1px 5px; color: #fff; font-size: 12px; line-height: 1.5; }
.profile-video-duration svg { width: 14px; height: 14px; fill: currentColor; }
.profile-artists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profile-artists a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-1); font-size: 16px; line-height: 1.4; text-decoration: none; text-align: center; }
.profile-artists img { width: min(100%, 88px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.profile-card[data-profile="spotify"] .profile-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-card[data-profile="spotify"] .profile-picks a { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 16px; }
.profile-card[data-profile="spotify"] .profile-picks img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.profile-artists a:hover { color: var(--accent-secondary); }
.profile-repositories { display: grid; gap: 8px; }
.profile-repositories a { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-0); padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }
.profile-repo-icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; color: var(--text-2); }
.profile-repo-name { min-width: 0; overflow-wrap: anywhere; }
.profile-repositories a:hover .profile-repo-name { color: var(--accent-secondary); }
.profile-public { margin-left: auto; border: 1px solid var(--border-strong); border-radius: 20px; padding: 0 7px; font-size: 12px; line-height: 1.8; color: var(--text-2); }
.profile-repo-language { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin-top: 3px; }
.language-dot { width: 10px; height: 10px; border-radius: 50%; }
.language-css { background: #663399; }
.language-html { background: #e34c26; }
.profile-achievement { display: flex; align-items: center; gap: 18px; }
.profile-achievement h5 { margin: 0; }
.profile-achievement a { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-1); text-decoration: none; }
.profile-achievement a:hover { color: var(--accent-secondary); }
.profile-achievement img { width: 48px; height: 48px; }
.profile-dock { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 20px auto 0; padding: 16px 12px; width: fit-content; max-width: 100%; border: 0; background: transparent; }
.profile-dock li { width: 72px; flex: 0 0 72px; text-align: center; }
.profile-dock-link { display: flex; justify-content: center; align-items: center; min-height: 64px; text-decoration: none; border-radius: 14px; }
.profile-dock-face { display: grid; place-items: center; width: 54px; height: 54px; transform-origin: center bottom; border-radius: 16px; background: linear-gradient(150deg, #fff, #e9e9e7); color: #111; box-shadow: 0 5px 10px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.5); }
.profile-dock-face > img { display: block; width: 40px; height: 40px; object-fit: contain; }
.profile-dock-face > i { color: inherit; font-size: 37px; }
.profile-dock-link[data-profile="github"] .profile-dock-face { background: linear-gradient(150deg, #363636, #171717); color: #fff; }
.profile-dock-link[data-profile="spotify"] .profile-dock-face { background: linear-gradient(150deg, #303b31, #101a13); color: #1ed760; }
.profile-dock-link[data-profile="youtube"] .profile-dock-face { color: #e62117; }
.profile-showcase.is-enhanced .profile-stage { gap: 0; }
.profile-showcase.is-enhanced .profile-card { grid-area: 1 / 1; }
.profile-showcase.is-enhanced .profile-card[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.profile-showcase.is-enhanced .profile-card.is-leaving { visibility: visible; }
.profile-showcase a:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 6px; }
@media (max-width: 1023px) {
  .personal-intro { grid-template-columns: 1fr; gap: 28px; }
  .profile-showcase { width: 100%; }
  .personal-panel .bridge-services { grid-template-columns: 1fr; }
  .personal-panel .personal-intro > .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .personal-panel .skill-practice { flex-direction: column; padding-top: 0; border-top: 0; }
}
@media (max-width: 800px) {
  /* Mobile follows the selected profile's height instead of reserving the tallest one. */
  .profile-showcase.is-enhanced .profile-stage { position: relative; }
  .profile-showcase.is-enhanced .profile-card[hidden] { position: absolute; inset: 0; }
  .profile-card-layout { grid-template-columns: 1fr; }
  .profile-overview, .profile-detail { gap: 20px; }
  .profile-artists img { width: min(100%, 100px); }
  .profile-card[data-profile="youtube"] .profile-overview { display: grid; grid-template-columns: 1fr; }
  .profile-channel-banner { max-height: 94px; object-fit: cover; }
}
@media (max-width: 600px) {
  .personal-panel { padding: 24px 18px; border-radius: 20px; }
  .personal-panel .personal-intro > .skills-grid { grid-template-columns: 1fr; }
  .personal-panel .skill-practice { flex-direction: row; padding-top: 20px; border-top: 1px solid var(--border); }
  .profile-card { padding: 8px; gap: 0; border-radius: 22px; }
  .profile-card-layout { gap: 8px; }
  .profile-overview, .profile-detail { padding: 20px 14px; border-radius: 15px; }
  .profile-card-footer { padding: 10px 8px 0; }
  .profile-avatar { flex-basis: 62px; width: 62px; height: 62px; }
  .profile-card-heading { gap: 14px; }
  .profile-card h4 { font-size: 25px; }
  .profile-stats { gap: 8px; }
  .profile-stats dd { font-size: 20px; }
  .profile-stats dt { font-size: 13px; }
  .profile-showcase-heading span { display: none; }
  .profile-dock { gap: 2px; padding: 14px 5px; }
  .profile-dock li { width: 56px; flex-basis: 56px; }
  .profile-dock-face { width: 44px; height: 44px; border-radius: 13px; }
  .profile-dock-face > img { width: 34px; height: 34px; }
  .profile-dock-face > i { font-size: 31px; }
  .profile-artists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .profile-artists img { width: min(100%, 88px); height: auto; }
  .profile-artists a { font-size: 15px; }
  .profile-picks a { gap: 12px; font-size: 16px; }
  .profile-picks img { width: 56px; height: 56px; }
  .profile-card[data-profile="spotify"] .profile-picks { grid-template-columns: 1fr; gap: 16px; }
  .profile-card[data-profile="spotify"] .profile-picks a { flex-direction: row; align-items: center; gap: 14px; }
  .profile-card[data-profile="spotify"] .profile-picks img { width: 82px; height: 82px; }
  .profile-plugins { gap: 8px; }
  .profile-plugins li { width: 40px; height: 40px; }
  .profile-plugins img { width: 28px; height: 28px; }
  .profile-plugins i { font-size: 28px; }
  .profile-repositories a { padding: 10px; gap: 8px; }
  .profile-achievement { flex-wrap: wrap; gap: 8px 16px; }
  .profile-video-grid { gap: 10px; }
  .personal-approach { margin-top: 32px; padding-top: 28px; }
}
