/* Animated character opening: the device and hands share each registered frame. */
.journey-visual.studio-hero { width: min(43vw, 560px, calc((100svh - 170px) * .6667)); height: auto; min-height: 0; aspect-ratio: 2 / 3; bottom: 48px; right: 4%; }
.held-laptop { position: absolute; inset: 0; transform-origin: 50% 65%; }
.held-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
[data-held-frame="closed"] [data-held-frame-image="closed"], [data-held-frame="half"] [data-held-frame-image="half"], [data-held-frame="open"] [data-held-frame-image="open"] { opacity: 1; }
.held-display { position: absolute; left: 25.59%; top: 44.27%; width: 49.12%; height: 19.34%; overflow: hidden; background: #f6f5fa; opacity: 0; }
[data-held-frame="open"] .held-display { opacity: 1; }
.held-display .laptop-preview-title { font-size: 8px; }.held-display .laptop-preview-bar { height: 10px; font-size: 4px; }.held-display .laptop-preview-bar i { height: 2px; width: 2px; }.held-display .laptop-preview-rule { margin: 3px auto; height: 1px; }.held-display .laptop-preview-profile b { font-size: 6px; }.held-display .laptop-preview-profile p { font-size: 4px; margin-top: 3px; }.held-display .laptop-preview-nav { font-size: 5px; margin-top: 3px; padding-top: 3px; }.held-display .laptop-preview-skills { display: none; }.held-display .laptop-preview-profile img { max-height: 55px; }
.laptop-zoom { position: absolute; top: 42.5%; left: 10%; width: 80%; aspect-ratio: 3 / 2; opacity: 0; visibility: hidden; transform-origin: center; }
.laptop-photograph { display: block; width: 100%; height: 100%; }
.photographic-display { position: absolute; left: 15.05%; top: 8.85%; width: 69.8%; height: 58.7%; overflow: hidden; background: var(--bg-primary); }
.photographic-display .laptop-preview-title { font-size: clamp(8px, 1vw, 12px); }.photographic-display .laptop-preview-bar { height: 12px; font-size: 5px; }.photographic-display .laptop-preview-profile b { font-size: 8px; }.photographic-display .laptop-preview-profile p { font-size: 5px; }.photographic-display .laptop-preview-profile img { max-height: 75px; }.photographic-display .laptop-preview-rule { margin: 5px auto; }.photographic-display .laptop-preview-nav { margin-top: 4px; font-size: 5px; }.photographic-display .laptop-preview-skills { display: none; }

.studio-journey-nav { pointer-events: auto; }

/* Character cells share a single optimized 2 by 2 atlas. */
.studio-portrait { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; }
.studio-portrait > img { position: absolute; display: block; top: 0; left: 0; width: 200%; height: 200%; max-width: none; }
.studio-portrait.pose-walk > img { transform: translateX(-50%); }.studio-portrait.pose-read > img { transform: translateY(-50%); }.studio-portrait.pose-talk > img { transform: translate(-50%, -50%); }
.chapter-scene { --chapter-light: #bcaff1; position: relative; isolation: isolate; min-height: 460px; max-width: 1140px; margin: 0 auto 48px; background: #131424; color: #f4f0ff; border-radius: 16px; overflow: clip; box-shadow: 0 18px 38px #10101f1c; }
.chapter-atmosphere { position: absolute; z-index: -1; inset: -30px 0; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 18% 90%, #5c427548, transparent 62%); }
.chapter-atmosphere i { position: absolute; width: 65%; aspect-ratio: 1; left: -30%; top: 3%; border: 1px solid #e6d2ff13; border-radius: 50%; }.chapter-atmosphere i:nth-child(2) { width: 74%; left: -35%; }.chapter-atmosphere i:nth-child(3) { width: 83%; left: -40%; }
.chapter-character { position: absolute; left: 1%; bottom: 0; width: 28%; max-width: 288px; pointer-events: none; transform-origin: center bottom; }
.chapter-workspace { position: relative; margin-left: 33%; padding: 38px 34px 32px 8px; min-width: 0; }
.chapter-workspace h3 { color: #f5f1ff; font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; margin: 0 0 12px; }
.chapter-instruction { font-size: .9rem; color: #c7c1da; max-width: 54ch; line-height: 1.65; margin-bottom: 22px; }
.chapter-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.chapter-choices button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid #726684; border-radius: 7px; color: #dfd8ef; background: #201d30; font-size: .8rem; cursor: pointer; transition: background-color 150ms, color 150ms; }
.chapter-choices button[aria-pressed="true"] { background: #d0bdfa; color: #25163f; border-color: #d0bdfa; }.chapter-choices button:hover { border-color: #e1d3fa; }
.chapter-scene button:focus-visible, .studio-journey-nav a:focus-visible { outline: 3px solid #e3d5ff; outline-offset: 4px; }
.chapter-text-link, .chapter-compose { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: #d8c9fb; text-decoration: underline; text-underline-offset: 5px; font-size: .8rem; cursor: pointer; }
.chapter-result-caption { color: #d0c6e1; font-size: .85rem; line-height: 1.65; margin-top: 20px; }

/* Profile: a small system that changes with the selected practice. */
.studio-orbit { position: relative; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 15px; min-height: 200px; padding: 28px 0 0; }
.orbit-geometry { position: absolute; inset: 0; width: 100%; height: 165px; color: #ad93d5; stroke: currentColor; opacity: .45; pointer-events: none; }
.orbit-core { position: relative; text-align: center; font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 700; color: #eadbff; background: #252033; padding: 17px 6px; border-radius: 10px; white-space: nowrap; box-shadow: 0 16px 25px #0c091b66; }
.orbit-input, .orbit-output { font-size: .76rem; color: #d6cbe7; text-align: center; }.studio-orbit p { grid-column: 1 / -1; color: #dad2e8; font-size: .87rem; text-align: center; line-height: 1.65; padding-top: 24px; min-height: 78px; }

/* Skills: connect tools on a physical workbench. */
.chapter-skills { background: #101927; --chapter-light: #86cbe2; }.chapter-skills .chapter-atmosphere { background: radial-gradient(ellipse at 24% 90%, #28627166, transparent 60%); }
.studio-workbench { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; perspective: 900px; min-height: 154px; align-items: center; }
.workbench-tool { position: relative; z-index: 1; display: grid; place-items: center; min-height: 113px; padding: 16px 8px; background: linear-gradient(155deg, #2f435a, #1c293a); color: #f2f9ff; border-radius: 12px; box-shadow: 0 15px 0 -5px #0b111d, 0 25px 25px #040b124d; text-align: center; font-size: clamp(.9rem, 1.7vw, 1.3rem); font-weight: 650; }
.workbench-tool i { position: absolute; width: 18px; height: 3px; bottom: 11px; background: #90d5dd; border-radius: 3px; }
.workbench-beam { position: absolute; top: 50%; height: 2px; width: 100%; background: #75c5d84a; overflow: hidden; }.workbench-beam span { position: absolute; height: 2px; width: 30%; background: #ccf6fa; opacity: 0; }

/* Career: each stop opens the matching real experience entry. */
.career-window { padding: 20px 0 0; }.career-date { color: #bea6e3; font-size: 1rem; margin-bottom: 12px; }.career-window > strong { display: block; color: #f5eeff; font-size: clamp(1.2rem, 2.1vw, 1.65rem); line-height: 1.3; min-height: 60px; text-wrap: balance; }.career-window > p { color: #cdc0de; font-size: .95rem; line-height: 1.5; min-height: 47px; margin-top: 7px; }
.career-rail { display: flex; align-items: center; justify-content: space-between; position: relative; height: 24px; margin: 19px 8px 10px; }.career-rail::before { content: ''; position: absolute; height: 2px; width: 100%; background: #77618e; }.career-rail i { width: 11px; height: 11px; border: 2px solid #ba9dd8; border-radius: 50%; background: #292039; position: relative; }.career-rail i.active { background: #e2c5ff; }.career-rail > span { position: absolute; height: 2px; top: 11px; width: 100%; transform: scaleX(calc(var(--station) * .25)); transform-origin: left; background: #ead1ff; transition: transform 550ms; }
.chapter-experience .chapter-choices button { flex-grow: 1; font-size: .73rem; padding-inline: 10px; }

/* Education: readable paper, a hinged page, and the actual degree. */
.chapter-education { background: #231e27; }.chapter-education .chapter-atmosphere { background: radial-gradient(ellipse at 20% 85%, #9e705b55, transparent 68%); }
.studio-notebook { position: relative; background: #77604e; padding: 8px 8px 10px 20px; border-radius: 5px 13px 13px 5px; box-shadow: 0 18px 26px #0c08094d; perspective: 1100px; }
.notebook-spine { position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; background: #b0987b; }
.notebook-page { min-height: 228px; padding: 22px 27px; color: #3e3034; background: #f7f0e5; border-radius: 2px 7px 7px 2px; box-shadow: 2px 3px 0 #d1c2b0; transform-origin: left center; }
.notebook-date { display: block; color: #776255; font-size: .8rem; margin-bottom: 16px; }.notebook-page strong { display: block; font-size: 1.45rem; line-height: 1.25; color: #3d2b36; text-wrap: balance; }.notebook-page p { margin-top: 10px; color: #5c4b4d; font-size: .85rem; line-height: 1.6; }.notebook-place { display: block; font-size: .73rem; color: #775f55; margin-top: 12px; }.notebook-signature { display: block; width: 105px; height: 27px; margin: 8px 0 0 auto; color: #7d6483; }

/* Languages: silent conversation previews with truthful proficiency labels. */
.studio-conversation { position: relative; padding: 25px; background: #eee6fa; color: #31203d; border-radius: 18px 18px 18px 3px; box-shadow: 0 20px 30px #08051033; }
.conversation-greeting { display: block; font-size: clamp(2.9rem, 5.3vw, 4.4rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }.studio-conversation > p { color: #5d466c; font-size: .95rem; line-height: 1.5; margin-top: 12px; }.conversation-wave { display: flex; height: 45px; align-items: center; gap: 5px; margin: 12px 0; }.conversation-wave i { width: 4px; height: var(--wave); background: #9775b5; border-radius: 3px; }.conversation-level { color: #614774; font-size: .8rem; font-weight: 600; }

/* Contact: the envelope reflects local draft fields only. */
.chapter-contact { background: #152323; }.chapter-contact .chapter-atmosphere { background: radial-gradient(ellipse at 20% 85%, #447f7659, transparent 68%); }
.studio-draft { text-align: center; padding-top: 5px; }.draft-envelope { position: relative; width: 216px; height: 140px; margin: 35px auto 20px; }.draft-envelope svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #aecfc3; stroke-width: 1.5; fill: #2c4a45; }.draft-letter { position: absolute; width: 160px; height: 113px; background: #f0eadd; left: 28px; top: -12px; border-radius: 5px; padding: 24px 19px; transform-origin: center bottom; transition: translate 300ms; }.draft-letter i { display: block; height: 3px; background: #c4b9ac; margin-bottom: 13px; width: 100%; transform: scaleX(.75); transform-origin: left; transition: transform 250ms, background-color 250ms; }.draft-letter i:nth-child(2) { transform: scaleX(.5); }.draft-letter i:nth-child(3) { transform: scaleX(.2); }
[data-draft-fields="1"] .draft-letter, [data-draft-fields="2"] .draft-letter, [data-draft-fields="3"] .draft-letter { translate: 0 -10px; }[data-draft-fields="2"] .draft-letter i, [data-draft-fields="3"] .draft-letter i { transform: scaleX(1); background: #708f82; }
.draft-checks { display: flex; justify-content: center; gap: 17px; color: #b7cbc6; font-size: .74rem; }.draft-checks span { border-bottom: 2px solid #50645f; padding-bottom: 5px; }.draft-checks [data-filled="true"] { border-color: #a8dbc1; color: #d2fae4; }.studio-draft p { font-size: .78rem; line-height: 1.6; color: #b7cfc6; margin: 18px auto 9px; max-width: 42ch; }.chapter-compose { text-decoration: none; color: #1b352c; background: #bbdfc9; border-radius: 7px; padding: 10px 18px; justify-content: center; }

/* Connect the existing factual content to the new scenes. */
html:not([data-experience="classic"]) #skills .skills-marquee { display: none; }
html:not([data-experience="classic"]) .studio-about-details { grid-template-columns: 1fr; }
html:not([data-experience="classic"]) .studio-about-details > div:first-child { display: none; }
html:not([data-experience="classic"]) .studio-about-details > div:last-child { max-width: 880px; width: 100%; margin: auto; }
html:not([data-experience="classic"]) .studio-about-details .card { box-shadow: none; background: transparent; padding: 0 0 22px; }
.studio-journey-nav { display: grid; gap: 2px; margin-bottom: 18px; text-align: left; }.studio-journey-nav a { display: flex; align-items: center; gap: 9px; min-height: 37px; font-size: .71rem; color: var(--text-secondary); text-decoration: none; }.studio-journey-nav a::before { content: ''; height: 5px; width: 5px; border-radius: 50%; background: #82778d; flex-shrink: 0; }
[data-active-section="about"] a[data-chapter-link="about"], [data-active-section="skills"] a[data-chapter-link="skills"], [data-active-section="experience"] a[data-chapter-link="experience"], [data-active-section="projects"] a[data-chapter-link="projects"], [data-active-section="education"] a[data-chapter-link="education"], [data-active-section="languages"] a[data-chapter-link="languages"], [data-active-section="contact"] a[data-chapter-link="contact"] { color: var(--primary-color); font-weight: 700; }
.portfolio-guide { bottom: 35px; }.portfolio-guide .studio-portrait { max-height: 155px; width: 104px; margin: auto; }.portfolio-guide .guide-pose { display: none; }
[data-active-section="skills"] .guide-point, [data-active-section="projects"] .guide-point, [data-active-section="experience"] .guide-walk, [data-active-section="education"] .guide-read, [data-active-section="about"] .guide-talk, [data-active-section="languages"] .guide-talk, [data-active-section="contact"] .guide-talk { display: block; }
.portfolio-guide-caption { font-size: .73rem; }.assistant-avatar { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; }.assistant-avatar img { width: 120%; max-width: none; height: auto; margin-left: -10%; }
.ai-panel-icon .assistant-avatar { width: 40px; height: 40px; }.ai-launcher:not(.ai-launcher-open) { padding: 3px; background: #2e2242; }.ai-launcher-pulse { display: none; }

@media (max-width: 1100px) and (min-width: 760px) { .journey-visual.studio-hero { right: 2%; } .chapter-workspace { margin-left: 30%; padding-right: 25px; }.chapter-character { width: 27%; }.chapter-workspace h3 { font-size: 1.7rem; }.studio-workbench { gap: 12px; }.workbench-tool { font-size: .87rem; }.notebook-page { padding: 20px; } }
@media (max-width: 759px) {
 .journey-visual.studio-hero { width: clamp(180px, 55vw, 220px); height: auto; right: 50%; bottom: 64px; }
 .portfolio-journey[data-journey-mode="full"] .journey-stage { min-height: 720px; }
 .chapter-scene { margin-bottom: 32px; min-height: 0; padding-top: 218px; border-radius: 12px; }
 .chapter-character { width: 134px; max-width: none; left: calc(50% - 67px); top: 16px; bottom: auto; }
 /* The tools are below the guide on phones: an open-palm explanation fits this layout. */
 .chapter-skills .studio-portrait.pose-point > img { transform: translate(-50%, -50%); }
 .chapter-workspace { margin-left: 0; padding: 19px 17px 24px; }
 .chapter-workspace h3 { font-size: 1.6rem; }.chapter-instruction { font-size: .82rem; line-height: 1.6; margin-bottom: 18px; }
 .chapter-choices { gap: 7px; margin-top: 20px; }.chapter-choices button { font-size: .74rem; padding-inline: 12px; flex-grow: 1; }
 .studio-orbit { gap: 7px; min-height: 175px; }.orbit-geometry { height: 140px; }.orbit-input, .orbit-output { font-size: .62rem; }.orbit-core { font-size: 1rem; padding-inline: 4px; }.studio-orbit p { font-size: .8rem; }
 .studio-workbench { gap: 9px; min-height: 132px; }.workbench-tool { font-size: .74rem; min-height: 101px; padding-inline: 5px; }.chapter-result-caption { font-size: .79rem; }
 .career-window > strong { font-size: 1.2rem; }.career-window > p { font-size: .83rem; }.chapter-experience .chapter-choices button { font-size: .66rem; }
 .notebook-page { padding: 20px 17px; min-height: 245px; }.notebook-page strong { font-size: 1.24rem; }.notebook-page p { font-size: .78rem; }.studio-notebook { padding-left: 15px; }.notebook-spine { left: 7px; }
 .studio-conversation { padding: 20px; }.conversation-greeting { font-size: clamp(2.2rem, 11vw, 3.3rem); }.studio-conversation > p { font-size: .84rem; }.conversation-level { font-size: .72rem; }
 .draft-envelope { width: 196px; }.draft-letter { width: 146px; left: 25px; }.draft-checks { gap: 13px; font-size: .7rem; }
 .held-display .laptop-preview-body { padding: 5px; }.held-display .laptop-preview-title { font-size: 5px; }.held-display .laptop-preview-profile b { font-size: 4px; }.held-display .laptop-preview-profile p, .held-display .laptop-preview-nav { display: none; }.held-display .laptop-preview-profile img { max-height: 35px; }.held-display .laptop-preview-bar { height: 7px; font-size: 3px; }
 .photographic-display .laptop-preview-body { padding: 3px 4px; }.photographic-display .laptop-preview-title { font-size: 6px; line-height: 1.3; }.photographic-display .laptop-preview-profile b { font-size: 4px; }.photographic-display .laptop-preview-profile p { display: none; }.photographic-display .laptop-preview-profile img { max-height: 24px; }.photographic-display .laptop-preview-rule { margin: 2px auto; height: 1px; }.photographic-display .laptop-preview-nav { font-size: 3px; line-height: 1.3; margin-top: 2px; padding-top: 2px; }.photographic-display .laptop-preview-bar { height: 6px; font-size: 3px; }
}
@media (max-width: 759px) and (min-height: 900px) { .journey-visual.studio-hero { width: clamp(250px, 28svh, 300px); height: auto; bottom: 72px; } }
@media (max-height: 699px) and (min-width: 760px) { .journey-visual.studio-hero { width: 310px; bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .chapter-scene *, .chapter-scene *::before { transition: none !important; animation: none !important; } }
html[data-experience="classic"] .chapter-scene { display: none !important; }
@media print { .chapter-scene, .studio-journey-nav { display: none !important; } }

/* One selector and one complete detail surface per interactive chapter. */
.chapter-classic-details { display: none; }
html[data-experience="classic"] .chapter-classic-details { display: block; }
.chapter-choices { margin: 0 0 24px; }
.chapter-result { min-width: 0; }
.chapter-detail-title { font-size: 1.05rem; font-weight: 650; color: #d7edf5; line-height: 1.5; margin-bottom: 16px; }
.chapter-skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chapter-skill-list li { font-size: .82rem; line-height: 1.5; padding: 7px 11px; border: 1px solid #5c829455; border-radius: 6px; color: #c7dce7; }
.career-window { padding-top: 0; }
.career-window > strong, .career-window > p { min-height: 0; }
.career-window > p { color: #e2d4f4; font-size: 1rem; font-weight: 600; }
.career-date { font-size: .85rem; }
.career-location { display: block; color: #b8aec8; font-size: .8rem; margin-top: 7px; }
.career-responsibilities { display: grid; gap: 11px; padding: 22px 0 0 17px; margin: 22px 0 0; border-top: 1px solid #bcaff12b; list-style: disc; font-size: .86rem; line-height: 1.65; color: #d4cce2; }
.career-responsibilities li { padding-left: 4px; }
.career-responsibilities li::marker { color: #bba1e4; }
.career-video { width: 100%; margin-top: 20px; }
.notebook-certifications { display: grid; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; font-size: .82rem; line-height: 1.5; }
.notebook-certifications li { padding-bottom: 9px; border-bottom: 1px solid #3e30341a; }
.notebook-certifications li:last-child { border-bottom: 0; }
.conversation-proficiency { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: .85rem; font-weight: 650; }
.conversation-progress { height: 5px; border-radius: 4px; background: #d6c8e4; margin-top: 11px; overflow: hidden; }
.conversation-progress span { display: block; height: 100%; background: #8661ac; border-radius: inherit; transition: width 350ms ease; }
.conversation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; font-size: .82rem; line-height: 1.5; }
.conversation-details dt { color: #75598a; margin-bottom: 3px; }
.conversation-details dd { font-weight: 600; }
@media (min-width: 760px) {
 .chapter-experience .chapter-character, .chapter-education .chapter-character { top: auto; bottom: 0; }
 .chapter-skills .chapter-result { min-height: 338px; }
}
@media (max-width: 759px) {
 .chapter-choices { margin: 0 0 22px; }
 .chapter-choices button, .chapter-experience .chapter-choices button { font-size: .78rem; }
 .career-responsibilities { font-size: .82rem; gap: 10px; }
 .chapter-skill-list { gap: 8px; }
 .chapter-skill-list li { font-size: .78rem; padding: 6px 9px; }
 .conversation-details { gap: 12px; }
}
@media print { .chapter-classic-details { display: block !important; } }

.workbench-tool > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
