.projects-section { padding: 72px 24px; background: var(--bg-secondary); }
.projects-heading { max-width: 1140px; margin: 0 auto 32px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.projects-heading h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.025em; color: var(--text-primary); margin: 0 0 12px; }
.projects-heading p { max-width: 54ch; color: var(--text-secondary); line-height: 1.7; }
.experience-switch { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-secondary); color: var(--text-primary); background: var(--bg-primary); border-radius: 8px; font-size: .8rem; line-height: 1.4; flex-shrink: 0; cursor: pointer; }
.show-classic { display: none; }
.project-cinema { max-width: 1140px; margin: auto; background: #101322; color: #f4f1ff; border-radius: 16px; overflow: clip; box-shadow: 0 24px 48px #090d1726; }
.project-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: #191c2d; }
.scene-library-label { font-weight: 650; font-size: .95rem; }
.scene-demo-label { color: #c8c4dc; font-size: .72rem; text-align: right; }
.scene-back { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; color: #f3eaff; font-size: .875rem; cursor: pointer; }
.projects-section[data-project="logistics"] .project-stage { height: max(570px, calc(var(--project-phone-height, 530px) + 40px)); }
.project-stage { height: 570px; position: relative; isolation: isolate; overflow: clip; background: radial-gradient(ellipse at 64% 58%, #373054 0, #171a2d 45%, #101322 82%); }
.scene-floor { position: absolute; z-index: -1; bottom: 0; width: 100%; height: 19%; background: linear-gradient(#222536, #131624); border-top: 1px solid #70658045; }
.scene-avatar { position: absolute; left: 1%; bottom: 15px; width: 30%; max-width: 330px; z-index: 4; pointer-events: none; transform-origin: left bottom; }
.scene-avatar img { display: block; width: 100%; height: auto; }
.scene-avatar img:not(:first-child) { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.project-laptop { position: absolute; z-index: 5; width: 67%; left: 30%; top: 70px; perspective: 1400px; }
.project-laptop-lid { position: relative; padding: 10px 10px 16px; border: 2px solid #77788a; border-radius: 14px 14px 5px 5px; background: #0b0d13; transform-origin: bottom; }
.project-device-bar { height: 29px; display: flex; align-items: center; justify-content: center; gap: 9px; background: #202437; color: #d5d2e7; font-size: .65rem; border-radius: 6px 6px 0 0; padding-inline: 10px; }
.project-device-bar i { width: 5px; height: 5px; border-radius: 50%; background: #8c96bb; }
.project-device-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-laptop-screen { min-height: 338px; background: #f2f4fa; color: #1d2339; overflow: clip; }
.project-laptop-deck { height: 24px; width: 108%; margin-left: -4%; border-radius: 1px 1px 45% 45% / 1px 1px 85% 85%; background: linear-gradient(#9699ac, #4f5265 65%, #292d40); box-shadow: 0 17px 26px #03050b5e; }
.project-laptop-deck > span { display: block; height: 5px; width: 18%; margin: auto; background: #3d4052; border-radius: 0 0 6px 6px; }
.project-launcher { padding: 20px; }
.launcher-instruction { font-size: .82rem; color: #4a526c; margin: 0 0 14px; }
.project-launcher-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.project-launcher-grid button { display: block; position: relative; text-align: left; cursor: pointer; background: #fff; color: #232a40; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 8px #20213712; min-height: 125px; }
.project-launcher-grid button:hover { background: #e6dfff; }
.project-launcher-grid img { width: 100%; height: 72px; object-fit: cover; display: block; }
.project-launcher-grid button > span:not(.launcher-arrow) { display: block; font-size: .76rem; font-weight: 650; line-height: 1.35; padding: 8px 18px 9px 9px; }
.launcher-arrow { position: absolute; right: 6px; bottom: 8px; font-size: 13px; color: #6b47c6; }
.logistics-world { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene-truck { position: absolute; width: 61%; left: 5%; bottom: 13%; opacity: 0; visibility: hidden; }
.scene-pallet { position: absolute; bottom: 8%; width: 12%; opacity: 0; visibility: hidden; z-index: 2; }
.scene-pallet-0 { left: 23%; }.scene-pallet-1 { left: 34%; }.scene-pallet-2 { left: 45%; }
.project-phone { position: absolute; z-index: 6; right: 10%; top: 20px; width: 258px; min-height: 505px; border: 7px solid #0a0d16; border-radius: 34px; background: #f4f6fa; color: #1e293b; box-shadow: 2px 0 0 2px #717787, 0 22px 35px #04061266; opacity: 0; visibility: hidden; padding: 26px 12px 19px; }
.phone-camera { position: absolute; top: 8px; height: 10px; width: 56px; background: #090c14; border-radius: 12px; left: calc(50% - 28px); }
.phone-home { position: absolute; bottom: 7px; height: 4px; width: 74px; left: calc(50% - 37px); border-radius: 4px; background: #2c3448; }
.scene-progress { position: absolute; z-index: 8; height: 3px; bottom: 0; left: 0; width: 100%; background: #ffffff0d; }
.scene-progress span { display: block; width: 100%; height: 100%; background: #bcaff2; transform: scaleX(0); transform-origin: left; }
.scene-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; min-height: 75px; background: #191c2d; }
.project-cinema .scene-status { font-size: .875rem; line-height: 1.5; color: #d7d3e9; margin: 0; }
.scene-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.scene-controls button { min-height: 44px; border: 1px solid #66647d; padding: 7px 12px; color: #f1edff; font-size: .78rem; border-radius: 7px; cursor: pointer; }
.scene-controls button:hover { background: #33304a; }
.scene-resume-label, [data-scene-replay] { display: none; }
[data-scene-state="paused"] .scene-resume-label, [data-scene-state="complete"] [data-scene-replay] { display: inline; }
[data-scene-state="paused"] .scene-pause-label, [data-scene-state="complete"] [data-scene-pause], [data-scene-state="complete"] [data-scene-skip] { display: none; }
.project-story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 28px; background: var(--bg-primary); }
.project-story h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.project-story p { color: var(--text-secondary); font-size: .94rem; line-height: 1.8; max-width: 65ch; }
.project-story-side > span { color: var(--text-secondary); font-size: .82rem; }
.project-story ul, .projects-classic ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: .78rem; color: var(--primary-color); }
.projects-github { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 28px auto 0; color: var(--primary-color); font-weight: 650; min-height: 48px; text-decoration: underline; text-underline-offset: 5px; text-align: center; }
.projects-classic { display: none; }
.projects-section button:focus-visible, .projects-section a:focus-visible, .experience-switch:focus-visible { outline: 3px solid #bcb0ef; outline-offset: 4px; }
.project-launcher-grid button:focus-visible, .demo-action:focus-visible { outline-color: #673db1; outline-offset: -3px; }

/* Each device renders a semantic, project-specific demo page. */
.demo-screen { position: relative; min-height: 338px; padding: 18px 22px; color: #222940; }
.demo-app-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #4f586f; border-bottom: 1px solid #d8deeb; padding-bottom: 12px; font-size: .67rem; }
.demo-app-header strong { color: #242c43; font-size: .8rem; }
.demo-status-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #33826c; border-radius: 50%; }
.demo-action { min-height: 44px; padding: 10px 13px; border-radius: 7px; background: #6243a6; color: white; font-size: .75rem; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; margin-top: 16px; cursor: pointer; }
.demo-action:hover { background: #483078; }
.demo-after { display: none; }
[data-scene-step="3"] .demo-after { display: inline; }
[data-scene-step="3"] .demo-before { display: none; }
.erp-flow { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; font-size: .76rem; gap: 8px; }
.erp-flow span { background: #e3deef; color: #4f3d77; padding: 8px 12px; border-radius: 6px; }
.erp-flow i { font-style: normal; color: #7b718d; }
.demo-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.demo-order small, .demo-inventory small { color: #5c6680; font-size: .67rem; }
.demo-order h4 { font-size: 1.5rem; color: #232b40; font-weight: 750; margin-top: 4px; }
.demo-order p { color: #576078; font-size: .76rem; margin-block: 5px 12px; }
.demo-order > span { color: #3d6d5b; font-size: .73rem; }
.demo-inventory { border-left: 1px solid #cfd6e5; padding-left: 24px; font-size: .75rem; }
.demo-inventory strong { display: block; font-size: 2.2rem; font-weight: 750; color: #523687; line-height: 1.25; }
.inventory-meter { height: 6px; margin-top: 12px; background: #d8d0e7; border-radius: 4px; }
.inventory-meter i { display: block; height: 100%; background: #9072c3; border-radius: 4px; }
.bi-headline { display: flex; justify-content: space-between; align-items: center; padding-top: 17px; }
.bi-headline small { color: #5b647b; font-size: .65rem; }
.bi-headline strong { display: block; color: #34214f; font-size: 1.6rem; font-weight: 750; }
.demo-period { color: #6243a6; background: #e8e1f5; border-radius: 5px; padding: 7px 10px; font-size: .68rem; }
.bi-chart { display: flex; height: 132px; gap: 14px; align-items: end; border-bottom: 1px solid #c5cbdc; margin: 8px 0 18px; padding-inline: 12px; }
.bi-chart > div { height: 100%; flex: 1; position: relative; display: flex; align-items: end; }
.bi-chart span { display: block; width: 100%; height: var(--bar-height); background: #8870be; border-radius: 4px 4px 0 0; transform-origin: bottom; }
.bi-chart small { position: absolute; bottom: -17px; text-align: center; width: 100%; font-size: .62rem; color: #667089; }
.portal-door { margin: 22px 0; min-height: 175px; text-align: center; display: grid; justify-items: center; align-content: center; gap: 8px; color: #655080; }
.portal-door h4 { font-size: 1.1rem; color: #293249; }.portal-door p { font-size: .8rem; color: #5d657b; }
.portal-workspace { position: absolute; left: 22px; right: 22px; top: 74px; visibility: hidden; opacity: 0; color: #222940; }
.portal-workspace h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; }.demo-role { float: right; font-size: .68rem; color: #655080; }
.portal-document { min-height: 116px; background: #fff; padding: 15px; display: grid; grid-template-columns: 32% 1fr; gap: 8px 14px; }
.portal-document img { width: 100%; height: 85px; object-fit: cover; border-radius: 4px; }.portal-document strong { color: #35435d; font-size: .75rem; display: block; }.portal-document p { color: #637087; font-size: .66rem; line-height: 1.5; margin-top: 6px; }
.portal-workspace p { color: #34765d; font-size: .76rem; margin-top: 12px; }
.rag-question { margin: 17px 0; padding: 12px; background: #e4deef; color: #40305f; border-radius: 8px 8px 0 8px; font-size: .85rem; }
.rag-sources { display: flex; gap: 8px; font-size: .68rem; color: #515c73; }.rag-sources span { border-bottom: 2px solid #a996c6; padding: 6px 4px; }
.rag-answer { background: #fff; padding: 12px; margin-top: 12px; visibility: hidden; opacity: 0; font-size: .78rem; }.rag-answer p { color: #566078; margin-block: 6px; line-height: 1.5; }.rag-answer small { color: #62517d; font-size: .58rem; line-height: 1.4; display: block; }
.automation-pipeline { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 33px 0 20px; }.automation-pipeline div { text-align: center; }.automation-pipeline span { display: block; font-size: .82rem; font-weight: 700; color: #47305d; }.automation-pipeline small { font-size: .66rem; color: #5b667c; }.automation-pipeline i { font-style: normal; color: #9583b3; }
.pipeline-track { position: relative; height: 14px; border-top: 2px solid #d0c4e3; margin-bottom: 14px; }.pipeline-track i { width: 9px; height: 9px; background: #79609d; position: absolute; top: -5px; border-radius: 2px; }
.automation-log { background: #e5eaf3; padding: 12px; font-size: .72rem; color: #34425b; line-height: 1.8; min-height: 71px; }.automation-log span { color: #78829a; margin-right: 7px; }.automation-log .demo-after { color: #2b7057; }[data-scene-step="3"] .automation-log .demo-after { display: block; }
.demo-logistics { padding: 0; min-height: 445px; }
.phone-app-header { font-size: .75rem; font-weight: 750; display: flex; align-items: center; justify-content: space-between; padding: 6px 0 15px; color: #3c4660; }.phone-app-header i { height: 6px; width: 6px; background: #6c957e; border-radius: 50%; }
.phone-location { color: #718099; font-size: .65rem; margin: 0 0 2px; }.demo-logistics h4 { font-size: 1.35rem; font-weight: 750; color: #26334a; margin-bottom: 15px; }
.phone-delivery { padding: 12px; background: #e5eaf2; border-radius: 9px; display: grid; gap: 4px; }.phone-delivery > span { font-size: .65rem; color: #5c6b83; }.phone-delivery strong { font-size: 1.2rem; color: #303f58; }.phone-delivery small { color: #4c705e; font-size: .64rem; }
.phone-steps { list-style: none; margin: 17px 0; display: grid; gap: 10px; padding: 0; font-size: .7rem; color: #5b6880; }.phone-steps li::before { content: ''; display: inline-block; width: 7px; height: 7px; background: #b4bdcc; border-radius: 50%; margin-right: 10px; }[data-scene-step="1"] .phone-steps li:first-child::before, [data-scene-step="2"] .phone-steps li:nth-child(-n+2)::before, [data-scene-step="3"] .phone-steps li::before { background: #548776; }
.stock-notification { display: flex; visibility: hidden; min-height: 66px; gap: 8px; background: #dbefe5; padding: 10px; border-radius: 8px; color: #215940; margin-bottom: 12px; }.stock-notification strong { font-size: .68rem; line-height: 1.3; display: block; }.stock-notification div > span { font-size: .62rem; display: block; margin-top: 4px; }.stock-check { flex-shrink: 0; width: 16px; padding-top: 2px; }[data-scene-step="2"] .stock-notification, [data-scene-step="3"] .stock-notification { visibility: visible; }
.phone-stock { display: flex; justify-content: space-between; align-items: center; color: #48566f; font-size: .74rem; }.phone-stock strong { font-size: 1.45rem; color: #283950; }.phone-sync { display: block; margin-top: 5px; font-size: .62rem; color: #60778b; }.demo-logistics .demo-action { width: 100%; margin-top: 13px; font-size: .7rem; }

@media (min-width: 760px) and (max-width: 1100px) {
 .project-stage { height: 535px; }.scene-avatar { width: 24%; }.project-laptop { left: 22%; width: 74%; top: 65px; }.project-launcher { padding: 14px; }.project-launcher-grid { gap: 8px; }.project-phone { right: 5%; }.scene-truck { left: 0; width: 66%; }
}
@media (max-width: 759px) {
 .projects-section { padding: 44px 10px; }.projects-heading { display: block; margin-bottom: 22px; padding-inline: 4px; }.projects-heading h2 { font-size: 2rem; }.projects-heading p { font-size: .9rem; }.projects-heading .experience-switch { margin-top: 16px; }
 .project-cinema { border-radius: 10px; }.project-toolbar { padding: 9px 13px; gap: 8px; min-height: 62px; }.scene-library-label { font-size: .78rem; }.scene-demo-label { font-size: .6rem; max-width: 130px; }.scene-back { font-size: .7rem; }
 .projects-section[data-project="logistics"] .project-stage { height: calc(var(--project-phone-height, 550px) + 263px); }
 .project-stage { height: 680px; }.scene-avatar { width: 140px; left: calc(50% - 70px); bottom: auto; top: 9px; }.project-laptop { width: calc(100% - 20px); left: 10px; top: 180px; }.project-laptop-lid { padding: 5px 5px 10px; border-radius: 9px 9px 4px 4px; }.project-device-bar { font-size: .53rem; height: 25px; padding-inline: 5px; }.project-device-bar i { display: none; }.project-laptop-screen { min-height: 365px; }
 .project-launcher { padding: 10px; }.launcher-instruction { font-size: .7rem; margin-bottom: 9px; }.project-launcher-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.project-launcher-grid button { min-height: 103px; }.project-launcher-grid img { height: 58px; }.project-launcher-grid button > span:not(.launcher-arrow) { font-size: .66rem; padding: 6px 15px 7px 7px; line-height: 1.3; }.project-laptop-deck { width: 104%; margin-left: -2%; height: 17px; }
 .project-phone { width: 220px; right: calc(50% - 110px); top: 235px; min-height: 470px; border-width: 6px; padding: 23px 10px 17px; }.demo-logistics { min-height: 422px; }.scene-truck { width: 74%; left: 26%; bottom: auto; top: 17px; }.scene-pallet { width: 16%; bottom: auto; top: 156px; }.scene-pallet-0 { left: 45%; }.scene-pallet-1 { left: 61%; }.scene-pallet-2 { left: 77%; }
 .scene-caption { display: block; padding: 14px; }.project-cinema .scene-status { font-size: .78rem; }.scene-controls { margin-top: 9px; gap: 6px; }.scene-controls button { font-size: .7rem; padding-inline: 9px; }
 .project-story { display: block; padding: 20px 16px; }.project-story h3 { font-size: 1.2rem; }.project-story p { font-size: .86rem; }.project-story-side { margin-top: 18px; }
 .demo-screen:not(.demo-logistics) { min-height: 365px; padding: 13px; }.demo-app-header { align-items: start; font-size: .52rem; gap: 5px; }.demo-app-header strong { font-size: .68rem; }.demo-app-header > span { max-width: 90px; text-align: right; }.erp-flow { font-size: .6rem; margin-top: 24px; gap: 3px; }.erp-flow span { padding: 7px; }.demo-split { gap: 12px; }.demo-inventory { padding-left: 12px; }.demo-order h4 { font-size: 1.3rem; }.demo-inventory strong { font-size: 1.9rem; }.demo-order p { font-size: .7rem; }.demo-action { font-size: .67rem; }
 .bi-headline strong { font-size: 1.35rem; }.demo-period { font-size: .58rem; padding: 6px; }.bi-chart { gap: 8px; padding-inline: 5px; height: 145px; }.rag-question { font-size: .75rem; }.rag-sources { font-size: .53rem; gap: 5px; }.rag-answer { font-size: .68rem; }.rag-answer small { font-size: .52rem; }.automation-pipeline { margin-top: 40px; gap: 3px; }.automation-pipeline span { font-size: .64rem; }.automation-pipeline small { font-size: .53rem; }.automation-log { font-size: .6rem; padding: 9px; }.portal-workspace { left: 13px; right: 13px; }.projects-github { font-size: .87rem; }
}

/* A saved, complete reading mode rather than a hidden animation toggle. */
/* Both versions animate. Reduced-motion handling lives in the motion styles. */

html[data-experience="classic"] .show-classic { display: inline; }
html[data-experience="classic"] .show-animated, html[data-experience="classic"] .project-cinema, html[data-experience="classic"] .portfolio-guide, html[data-experience="classic"] .journey-visual, html[data-experience="classic"] .journey-scroll-cue, html[data-experience="classic"] .device-chrome, html[data-experience="classic"] .device-base, html[data-experience="classic"] .cursor-dot, html[data-experience="classic"] .cursor-ring { display: none !important; }
html[data-experience="classic"] [data-reveal], html[data-experience="classic"] [data-reveal-up], html[data-experience="classic"] [data-reveal-left], html[data-experience="classic"] [data-reveal-right], html[data-experience="classic"] .experience-item, html[data-experience="classic"] .hero-copy, html[data-experience="classic"] .hero-letter, html[data-experience="classic"] [data-gsap-support], html[data-experience="classic"] .hero-greeting { opacity: 1 !important; visibility: visible !important; transform: none !important; }

html[data-experience="classic"] .journey-skip { display: none; }
html[data-experience="classic"] .journey-intro { height: auto !important; }
html[data-experience="classic"] .journey-stage { position: relative !important; min-height: 0; height: auto; max-height: none; padding: 0; }
html[data-experience="classic"] .journey-intro .hero-copy { width: auto; max-width: 980px; margin: auto; padding: 64px 24px; }
html[data-experience="classic"] .portfolio-device { width: 100%; max-width: 1400px; border: 0; margin: 0 auto; background: transparent; box-shadow: none; border-radius: 0; }
html[data-experience="classic"] .portfolio-screen section { scroll-margin-top: 90px; }
html[data-experience="classic"] .projects-classic { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; max-width: 1140px; margin: auto; }
.projects-classic details { padding-bottom: 24px; border-bottom: 1px solid var(--border-primary); min-width: 0; }
.projects-classic summary { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); min-height: 48px; cursor: pointer; }
.projects-classic img { display: block; width: 100%; height: 190px; object-fit: cover; margin: 14px 0; border-radius: 8px; }.projects-classic p { color: var(--text-secondary); font-size: .94rem; line-height: 1.7; }
.journey-intro .experience-switch { background: #242036; color: #e4dcf5; border-color: #6b5e85; margin-top: 18px; }
@media(max-width:759px) { html[data-experience="classic"] .projects-classic { grid-template-columns: 1fr; } html[data-experience="classic"] .journey-intro .hero-copy { padding: 44px 20px; } }
@media(prefers-reduced-motion:reduce) { .scene-controls [data-scene-pause], .scene-controls [data-scene-skip] { display: none; } }
@media print { .project-cinema, .experience-switch { display: none !important; }.projects-classic { display: block !important; }.projects-classic details { break-inside: avoid; }.projects-classic img { max-width: 260px; height: auto; }.projects-heading { display: block; } }

/* The gallery guide points to the display; only the working poses hold devices. */
.scene-presenter { width: 100%; }
.scene-avatar .scene-presenter .studio-portrait > img { width: 200%; height: 200%; max-width: none; }
@media (max-width: 759px) {
 /* Above the laptop, an open presentation gesture replaces the sideways point. */
 .scene-presenter .studio-portrait > img { transform: translate(-50%, -50%); }
}
