/* PORTFOLIO STRUCTURE — Four main scenes, two click-only detail routes.
   Keep the v13 living-field / 3D renderer, but the reading plane stays above it. */
:root{--paper:#f8f9fb;--night:#172237;--electric:#3456d1;--hair:#cdd5dd}
html{scroll-snap-type:none!important;scroll-padding-top:64px}
.stage>.scene{scroll-snap-align:none!important}
.stage>.scene>.scene-inner{z-index:4}
.scene .scene-inner, .hero-mark {position:relative;z-index:4}
.scene .living-field,.scene .dimension-canvas{z-index:0}
/* One clear typographic plane. Particles remain visible at the edges, not behind the copy. */
.profile-scene::after,.work-scene::after{content:"";position:absolute;top:0;bottom:0;left:50%;width:min(84vw,1330px);transform:translateX(-50%);background:linear-gradient(90deg,transparent 0,rgba(247,249,252,.91) 13%,rgba(247,249,252,.96) 36%,rgba(247,249,252,.96) 64%,rgba(247,249,252,.91) 87%,transparent 100%);z-index:1;pointer-events:none}
.work-scene::after{background:linear-gradient(90deg,transparent 0,rgba(238,239,241,.94) 13%,rgba(238,239,241,.96) 50%,rgba(238,239,241,.94) 87%,transparent 100%)}
.hero-scene .hero-mark{z-index:5}
.hero-scene::after{content:"";position:absolute;inset:13% 25%;background:radial-gradient(ellipse at center,rgba(249,250,249,.83) 0,rgba(249,250,249,.55) 45%,transparent 75%);pointer-events:none;z-index:1}
/* The approved dark work diagram is not masked. */
.approach-scene::after{display:none}
.scene h2{font-size:clamp(32px,3.45vw,54px);margin-bottom:32px}
.site-nav{padding-inline:var(--margin)}
.nav-links a{font-size:13px;letter-spacing:-.03em}
/* Profile: professional experience and tools belong to the same page. */
.profile-scene{background:#f7f9fc}
.profile-scene .scene-inner{display:flex;flex-direction:column;justify-content:center;max-width:1350px;padding-top:105px;padding-bottom:100px;min-height:100svh}
.profile-heading{width:100%}
.profile-heading h2{margin-bottom:30px}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.14fr);gap:clamp(30px,5.5vw,92px);align-items:start}
.profile-intro{font-size:clamp(20px,1.95vw,29px);line-height:1.48;letter-spacing:-.055em;font-weight:660;word-break:keep-all;margin-bottom:40px;max-width:510px}
.profile-rows{border-top:1px solid #b7c2ce}
.profile-row{display:grid;grid-template-columns:95px 1fr;gap:12px;padding:20px 0;border-bottom:1px solid #d6dde5;align-items:start}
.profile-row h3{font-size:13px;color:#657184;font-weight:550;margin:1px 0 0;letter-spacing:-.03em}
.profile-row p{font-size:clamp(13px,1vw,15px);line-height:1.76;color:#24334a;word-break:keep-all;margin:0}
.profile-subhead{margin:0 0 12px;font-size:16px;letter-spacing:-.035em;font-weight:700}
.career-scroll{overflow-x:auto;max-width:100%;border-top:1px solid #b7c2ce}
.profile-career .career{width:100%;border-collapse:collapse;background:transparent;table-layout:fixed}
.profile-career .career th{font-size:12px;color:#657184;text-align:left;font-weight:550;padding:16px 10px 13px 0;border-bottom:1px solid #d6dde5}
.profile-career .career td{font-size:clamp(12px,1vw,14px);line-height:1.6;color:#253249;vertical-align:top;padding:23px 12px 24px 0;border-bottom:1px solid #d6dde5;word-break:keep-all}
.profile-career .career td:first-child{font-weight:700}
.profile-career .career small{font-size:11px;color:#8490a2;font-weight:450}
.profile-career .career th:first-child,.profile-career .career td:first-child{width:32%}
.profile-career .career th:nth-child(2),.profile-career .career td:nth-child(2){width:36%}
/* Approach: original approved chart / hierarchy untouched except max-width. */
.approach-scene .scene-inner{max-width:1450px}
/* Two routes that read unmistakably as clickable surfaces. */
.work-scene{background:#eeeff1}
.work-scene .scene-inner{max-width:1460px;min-height:100svh}
.project-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.4vw,40px);width:100%}
.project-choice{display:flex;flex-direction:column;position:relative;min-width:0;isolation:isolate;text-decoration:none;color:#1c293b;outline-offset:6px;--edge-color:#bbc9dd;--art-bg:#dee6f3;cursor:pointer}
.project-choice--delivery{--edge-color:#bcc8c5;--art-bg:#e3e9e7}
.project-choice .choice-image{aspect-ratio:1.52;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:8px;background:var(--art-bg);border:1px solid var(--edge-color);transition:border-color .35s ease,box-shadow .55s cubic-bezier(.18,.75,.2,1),background .45s ease;transform-style:preserve-3d}
.project-choice .choice-image img{width:91%;height:86%;object-fit:contain;display:block;transform:translate3d(var(--kin-x,0px),var(--kin-y,0px),0) scale(var(--kin-scale,1));filter:saturate(.85);transition:transform .7s cubic-bezier(.2,.72,.16,1),filter .6s ease;pointer-events:none}
.project-choice .choice-image::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at var(--px,50%) var(--py,50%),rgba(255,255,255,.28),transparent 54%);opacity:0;transition:opacity .45s ease}
.project-choice .choice-copy{padding:21px 2px 10px;flex:1}
.project-choice .choice-copy h3{font-size:clamp(20px,2vw,29px);letter-spacing:-.055em;line-height:1.3;margin:0 0 8px;font-weight:740;word-break:keep-all}
.project-choice .choice-copy p{font-size:14px;line-height:1.6;color:#667183;margin:0;word-break:keep-all}
.project-choice .choice-open{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid #bec7d1;padding:17px 2px 0;margin-top:auto;font-size:13px;font-weight:700;color:#3456d1;transition:color .2s ease,padding-left .35s ease}
.project-choice .choice-arrow{display:grid;place-items:center;width:34px;height:34px;border:1px solid #b9c7de;border-radius:50%;font-size:20px;line-height:1;transition:transform .5s cubic-bezier(.2,.75,.16,1),background .3s,border-color .3s,color .3s}
.project-choice:hover .choice-image,.project-choice:focus-visible .choice-image{border-color:#3456d1;box-shadow:0 20px 46px rgba(32,59,119,.12),0 0 0 1px rgba(52,86,209,.18)}
.project-choice:hover .choice-image img,.project-choice:focus-visible .choice-image img{--kin-scale:1.045;filter:saturate(1.04)}
.project-choice:hover .choice-image::after,.project-choice:focus-visible .choice-image::after{opacity:1}
.project-choice:hover .choice-arrow,.project-choice:focus-visible .choice-arrow{transform:translate(3px,-3px);background:#3456d1;border-color:#3456d1;color:#fff}
.project-choice:hover .choice-open,.project-choice:focus-visible .choice-open{padding-left:9px}
.project-choice:focus-visible{outline:2px solid #3456d1;outline-offset:6px}
.home-footer{padding-top:36px;font-size:12px;font-weight:650;letter-spacing:.01em;color:#9aa3ad}
/* DETAIL ROUTES: native vertical reading, no hidden scroll-to cases. */
body.detail-page{overflow:auto!important;background:#fafbfc;color:#1e293b}
.detail-page .site-nav{background:rgba(249,250,252,.88);border-bottom:1px solid rgba(191,201,215,.4)}
.detail-nav-right{display:flex;align-items:center;gap:20px;margin-left:auto}
.detail-page .return-link{font-size:13px;font-weight:650;border-bottom:1px solid #bbc4d6;padding-bottom:4px}
.detail-page .return-link:hover{color:#3456d1;border-color:#3456d1}
.detail-main{min-height:100vh}
.detail-hero{background:#edf2f8;padding:155px var(--margin) 60px;position:relative;overflow:hidden}
.detail-hero--delivery{background:#eff2ee}
.detail-hero::before{content:"";position:absolute;inset:0;opacity:.26;background:radial-gradient(circle at 86% 28%,rgba(52,86,209,.20),transparent 37%),radial-gradient(circle at 6% 80%,rgba(102,153,191,.13),transparent 30%);pointer-events:none}
.detail-hero-inner{position:relative;max-width:1270px;margin:auto}
.detail-hero h1{font-size:clamp(32px,4.6vw,67px);letter-spacing:-.07em;line-height:1.15;max-width:950px;word-break:keep-all;margin:0 0 22px}
.detail-lede{font-size:clamp(17px,1.7vw,23px);font-weight:450;color:#45546b;line-height:1.55;max-width:850px;letter-spacing:-.035em;word-break:keep-all;margin:0 0 34px}
.detail-meta{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:13px;color:#55657a;border-top:1px solid #b7c5d3;padding-top:18px}
.detail-image{margin-top:45px;aspect-ratio:2.05;max-height:520px;background:#dce5f4;border:1px solid #bccbd9;border-radius:5px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.detail-hero--delivery .detail-image{background:#e0e8e5}
.detail-image img{display:block;width:88%;height:91%;object-fit:contain}
.detail-content{max-width:1270px;padding:30px var(--margin) 120px;margin:0 auto}
.detail-block{display:grid;grid-template-columns:minmax(150px,24%) minmax(0,1fr);gap:clamp(20px,4vw,72px);border-bottom:1px solid #d5dde7;padding:clamp(36px,5.5vw,85px) 0}
.detail-key{font-weight:720;letter-spacing:-.045em;font-size:clamp(20px,2vw,28px)}
.detail-body{min-width:0}
.detail-bullets{padding-left:1.1em;margin:0;display:grid;gap:13px;font-size:clamp(15px,1.3vw,18px);line-height:1.72;word-break:keep-all}
.detail-bullets li::marker{color:#3456d1}
.detail-section-lead{font-size:18px;font-weight:650;margin:0 0 20px;word-break:keep-all}
.detail-factory-evidence{width:100%}
.detail-factory-evidence .product-evidence{width:100%;margin:0;overflow:hidden}
.detail-factory-evidence .carousel{height:clamp(290px,42vw,530px);margin:0;background:#e6edf9;border:1px solid #c5d2e3}
.detail-factory-evidence .slide{border:1px solid #d9e0e9;background:#fff}
.detail-factory-evidence .product-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:12px}
.detail-demo-link{display:inline-flex;align-items:center;gap:30px;padding:14px 19px;background:#3456d1;color:white!important;text-decoration:none;font-size:13px;font-weight:650;margin-top:12px;border-radius:3px}
.detail-demo-link:hover{background:#2641ae}
.work-flow-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 25px}
.work-flow-track span{padding:19px 10px;border:1px solid #c7d2e1;border-radius:3px;background:#f2f5fa;text-align:center;font-size:13px;font-weight:600;word-break:keep-all}
.detail-inline-art{background:#f0f4f9;padding:28px;border:1px solid #d9e1ed}
.detail-inline-art img{width:100%;max-height:360px;object-fit:contain}
.before-after{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.before-after>div{background:#f3f6f9;padding:24px;border-top:2px solid #a7b6c7}
.before-after>div:last-child{border-color:#3456d1;background:#e9eefb}
.before-after h3{margin:0 0 19px;font-size:20px}
.before-after ul{padding-left:18px;margin:0;display:grid;gap:9px;line-height:1.65;font-size:15px;word-break:keep-all}
.detail-delivery-figure{border:1px solid #d4dde8;background:#edf2f6;padding:30px;min-height:320px;display:flex;align-items:center;justify-content:center}
.detail-delivery-figure img{width:100%;max-height:420px;object-fit:contain}
.detail-muted{font-size:14px;color:#6f7a89;margin:13px 0 0}
.detail-bottom{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:38px 0 0}
.detail-back,.detail-next{font-size:14px;text-decoration:none;font-weight:650;color:#3456d1;padding:14px 0;border-bottom:1px solid #98a8c4;word-break:keep-all}
.detail-back:hover,.detail-next:hover{border-color:#3456d1}
.detail-next span{display:inline-block;margin-left:9px}
/* modal should be operable inside detail pages */
.detail-page #image-dialog{max-width: min(90vw,1260px)}
@media(max-width:1100px){
 .profile-layout{grid-template-columns:1fr 1fr;gap:28px}
 .profile-intro{font-size:21px}
 .profile-row{grid-template-columns:80px 1fr;gap:8px}
 .profile-career .career td{padding:14px 7px 16px 0;font-size:12px}
 .detail-content{padding-left:var(--margin);padding-right:var(--margin)}
}
@media(max-width:760px){
 .profile-scene::after,.work-scene::after{width:100%;background:rgba(247,249,252,.91)}
 .work-scene::after{background:rgba(238,239,241,.88)}
 .profile-scene .scene-inner{padding-top:105px;padding-bottom:80px}
 .profile-layout{grid-template-columns:1fr;gap:32px}
 .profile-intro{font-size:21px;margin-bottom:20px}
 .profile-row{padding:13px 0;grid-template-columns:82px 1fr}
 .profile-career .career td{font-size:13px;padding:12px 7px 16px 0}
 .profile-heading h2{margin-bottom:20px}
 .work-scene .scene-inner{min-height:auto;padding-top:110px;padding-bottom:85px}
 .project-choice-grid{gap:28px;grid-template-columns:1fr}
 .project-choice .choice-image{aspect-ratio:1.76}
 .project-choice .choice-copy{padding-top:13px}
 .project-choice .choice-copy h3{font-size:21px}
 .project-choice .choice-open{padding-top:10px}
 .detail-hero{padding-top:115px;padding-bottom:35px}
 .detail-block{grid-template-columns:1fr;gap:18px}
 .detail-image{margin-top:25px}
 .work-flow-track{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
 :root{--margin:18px}
 .site-nav .brand{font-size:20px}
 .site-nav .nav-links{gap:12px!important}
 .nav-links a{font-size:11px}
 .profile-intro{font-size:19px}
 .profile-rows{margin-top:0}
 .profile-career .career th,.profile-career .career td{font-size:11px}
 .profile-career .career td:first-child{font-size:12px}
 .project-choice .choice-copy h3{font-size:19px}
 .project-choice .choice-copy p{font-size:13px}
 .detail-meta{font-size:12px}
 .detail-lede{font-size:17px}
 .before-after{grid-template-columns:1fr}
 .detail-bottom{align-items:stretch;flex-direction:column}
 .detail-factory-evidence .carousel{height:250px}
}
@media(hover:none),(pointer:coarse){
 .project-choice .choice-open{color:#3456d1}
 .project-choice .choice-arrow{background:#3456d1;border-color:#3456d1;color:#fff}
 .project-choice .choice-image::after{opacity:0}
}
@media(prefers-reduced-motion:reduce){
 .project-choice .choice-image,.project-choice img,.choice-arrow{transition:none!important;transform:none!important}
}

/* Explicit hover invitation: not merely decorative, entire card opens a separate page. */
.project-choice .choice-cta{position:absolute;left:50%;top:50%;transform:translate(-50%,calc(-50% + 12px));z-index:3;pointer-events:none;background:#263fbb;color:#fff;border-radius:999px;padding:13px 21px;font-size:13px;font-weight:690;letter-spacing:-.015em;white-space:nowrap;box-shadow:0 12px 28px rgba(28,51,119,.25);opacity:0;transition:opacity .32s ease,transform .5s cubic-bezier(.18,.75,.19,1)}
.project-choice:hover .choice-cta,.project-choice:focus-visible .choice-cta{opacity:1;transform:translate(-50%,-50%)}
.project-choice:hover .choice-image img,.project-choice:focus-visible .choice-image img{filter:saturate(.88) brightness(.9)}
@media(hover:none),(pointer:coarse){.project-choice .choice-cta{display:none}}
@media(prefers-reduced-motion:reduce){.project-choice .choice-cta{transition:none!important}}
