/* HIMA JUN / one visual language for every real project. */
.hj-modern-home .hj-page-progress{display:none;position:absolute;inset-inline:0;bottom:-1px;height:2px;background:linear-gradient(90deg,#d8c6f4,#7755a6);transform-origin:right;pointer-events:none}
.hj-modern-home #work{position:relative;isolation:isolate;padding-top:68px;background:radial-gradient(ellipse at 90% 15%,#e9e1f740,transparent 48%),#f7f8fc}
.hj-modern-home #work .st-projects-heading{margin-bottom:30px}
.hj-modern-home .hj-work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px;padding-bottom:22px;border-bottom:1px solid #e4dfee}
.hj-modern-home .hj-work-toolbar[hidden]{display:none!important}
.hj-modern-home .hj-work-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.hj-modern-home .hj-work-filters button{min-height:44px;border:1px solid transparent;border-radius:11px;background:transparent;color:#6a6078;font-size:16px;font-weight:700;padding:10px 18px;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.hj-modern-home .hj-work-filters button:hover{background:#eee7f8;color:#67448e}
.hj-modern-home .hj-work-filters button[aria-pressed="true"]{background:#211a32;color:#fff;border-color:#211a32;box-shadow:0 5px 14px #211a3210}
.hj-modern-home .hj-work-count{font-size:14px;color:#756a84;white-space:nowrap}
.hj-modern-home .hj-unified-projects{gap:26px;grid-auto-rows:1fr;align-items:stretch;view-transition-scope:all}
.hj-modern-home .hj-unified-projects .hj-work-card{position:relative;isolation:isolate;overflow:visible;display:flex;flex-direction:column;background:#fff;border:1px solid #e3ddeb;border-radius:22px;min-width:0;height:100%;box-shadow:0 6px 24px #211a3205;transform:none!important;transition:border-color .24s,box-shadow .24s;view-transition-name:var(--work-name);view-transition-class:hj-project}
.hj-modern-home .hj-unified-projects .hj-work-card[hidden]{display:none!important}
.hj-modern-home .hj-unified-projects .hj-work-card:hover,.hj-modern-home .hj-work-card:focus-within{border-color:#c0a4df;box-shadow:0 18px 42px #38204f0c}
.hj-modern-home .hj-work-frame{position:relative;isolation:isolate;display:block;flex:none;width:calc(100% - 24px);margin:12px 12px 0;border:1px solid #ded8e7;border-radius:13px;padding:0;overflow:hidden;background:#f5f3f9;text-align:initial;cursor:pointer;color:#65596f;appearance:none;transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-origin:50% 50%;transition:transform .35s cubic-bezier(.2,.65,.3,1),box-shadow .3s;box-shadow:0 6px 18px #211a3207;will-change:auto}
.hj-modern-home .hj-work-frame[data-tilting="true"]{transition:transform .08s linear,box-shadow .3s;box-shadow:0 16px 30px #211a3214}
.hj-modern-home .hj-work-frame:focus-visible{outline:3px solid #9e78c8;outline-offset:4px}
.hj-modern-home .hj-browser-chrome{direction:ltr;display:flex;align-items:center;justify-content:space-between;gap:12px;height:34px;padding:0 12px;border-bottom:1px solid #e1dbe9;background:linear-gradient(#fcfbff,#f0edf6);color:#83768f;position:relative;z-index:2;flex:none;min-width:0}
.hj-modern-home .hj-browser-tools{display:flex;align-items:center;gap:5px;flex:none}
.hj-modern-home .hj-browser-tools i{width:6px;height:6px;border:1px solid #c9bfda;border-radius:50%;background:#e3dbea}
.hj-modern-home .hj-browser-tools i:first-child{background:#c8b4df;border-color:#b49dce}
.hj-modern-home .hj-browser-address{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;flex:1;font-size:11px;font-weight:500;letter-spacing:.025em;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7c6f89}
.hj-modern-home .hj-browser-address svg{width:11px;height:11px;flex:none;opacity:.7}
.hj-modern-home .hj-browser-expand{width:14px;height:14px;opacity:.7;flex:none}
.hj-modern-home .hj-work-screen{display:block;position:relative;aspect-ratio:1363/936;background:#f5f3f9;overflow:hidden;line-height:0}
.hj-modern-home .hj-work-card .hj-unified-cover{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;aspect-ratio:1363/936;object-fit:contain;object-position:center;border:0;border-radius:0;z-index:0;transform:none!important}
.hj-modern-home .hj-work-screen::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at var(--light-x,50%) var(--light-y,30%),#fff7,transparent 65%);opacity:var(--light-on,0);pointer-events:none;transition:opacity .35s;z-index:1}
.hj-modern-home .hj-work-preview-label{position:absolute;left:50%;right:auto;bottom:18px;transform:translate(-50%,8px);display:inline-flex;align-items:center;gap:9px;white-space:nowrap;padding:11px 16px;min-height:42px;border-radius:999px;color:#fff;background:#211a32e8;border:1px solid #ffffff55;box-shadow:0 6px 24px #10091f26;backdrop-filter:blur(12px);font-size:14px;line-height:1.4;font-weight:700;opacity:0;transition:opacity .22s,transform .22s;z-index:2;direction:rtl}
.hj-modern-home .hj-work-preview-label svg{width:17px;height:17px}
.hj-modern-home .hj-work-frame:hover .hj-work-preview-label,.hj-modern-home .hj-work-frame:focus-visible .hj-work-preview-label{opacity:1;transform:translate(-50%,0)}
.hj-modern-home .hj-work-card .hj-unified-meta{padding:22px 26px 25px;display:flex;flex:1;flex-direction:column;width:100%;color:#211a32}
.hj-modern-home .hj-work-category{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;color:#7c5c9e;font-size:14px;font-weight:500}
.hj-modern-home .hj-work-category small{font-size:12px;line-height:1.6;color:#8e839b;border:1px solid #e8e1ef;border-radius:6px;padding:1px 7px;background:#f9f7fc}
.hj-modern-home .hj-work-card .hj-unified-meta h3{font-size:27px;font-weight:800;color:#211a32;line-height:1.35;margin:8px 0 9px}
.hj-modern-home .hj-work-card .hj-unified-meta p{font-size:16px;color:#70667e;line-height:1.85;min-height:3.7em;margin:0 0 20px;max-width:55ch}
.hj-modern-home .hj-work-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;border-top:1px solid #eee9f3;padding-top:16px;flex-wrap:wrap}
.hj-modern-home .hj-work-card .hj-unified-visit{display:inline-flex;align-items:center;justify-content:center;align-self:auto;margin:0;border:1px solid #ded0ed;border-radius:10px;padding:9px 16px;min-height:44px;font-size:15px;font-weight:700;background:#f5f0fc;color:#67448e;text-decoration:none;line-height:1.5}
.hj-modern-home .hj-work-card .hj-unified-visit::after{display:none}
.hj-modern-home .hj-work-card .hj-unified-visit:hover{background:#7755a6;color:#fff;border-color:#7755a6}
.hj-modern-home .hj-work-details{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:#70627f;border:0;min-height:44px;padding:8px 3px;font-size:15px;cursor:pointer;line-height:1.5}
.hj-modern-home .hj-work-details:hover{color:#7755a6}
.hj-modern-home .hj-work-details svg{width:17px;height:17px}
.hj-modern-home .hj-work-tip{display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;color:#7d718d;margin:26px 0 0;line-height:1.75;text-align:center}
.hj-modern-home .hj-work-tip svg{width:17px;height:17px;flex:none;color:#9a7abc}

/* The enlarged gallery uses the same browser frame and original screenshot. */
.hj-modern-home #projectImageDialog.hj-project-showroom{width:min(1210px,96vw);max-width:none;max-height:94dvh;margin:auto;padding:0;overflow:auto;background:#f9f7fc;color:#211a32;border:1px solid #e2d8ed;border-radius:21px;box-shadow:0 30px 120px #0f071f66;overscroll-behavior:contain}
.hj-modern-home #projectImageDialog::backdrop{background:#140d24bf;backdrop-filter:blur(10px)}
.hj-modern-home .hj-showroom-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px 18px;background:#fff;border-bottom:1px solid #e8e1f0}
.hj-modern-home .hj-showroom-heading small{display:block;font-size:13px;color:#8c72a6;line-height:1.5}
.hj-modern-home .hj-showroom-heading h2{font-size:25px;color:#211a32;line-height:1.35;margin:4px 0 0;font-weight:800}
.hj-modern-home .hj-showroom-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 13px;background:#f9f7fc;border:1px solid #e6ddec;border-radius:10px;color:#6a557f;font-size:14px;font-weight:700;cursor:pointer}
.hj-modern-home .hj-showroom-close svg{width:16px;height:16px}
.hj-modern-home .hj-showroom-body{padding:19px 22px}
.hj-modern-home .hj-showroom-browser{border:1px solid #dcd2e7;border-radius:13px;overflow:hidden;background:#efebf5;box-shadow:0 8px 24px #211a3207;view-transition-scope:all}
.hj-modern-home .hj-showroom-browser .hj-browser-chrome{height:37px;padding-inline:14px}
.hj-modern-home .hj-showroom-browser .hj-browser-address{font-size:12px}
.hj-modern-home .hj-showroom-screen{overflow:auto;max-height:58dvh;direction:ltr;background:#efebf5;scrollbar-color:#c3afd8 #eee8f5;scrollbar-width:thin;overscroll-behavior:contain}
.hj-modern-home .hj-showroom-screen #projectImage{display:block;width:100%;height:auto;max-width:none;max-height:none;margin:0;object-fit:contain;aspect-ratio:1363/936;view-transition-name:hj-active-project}
.hj-modern-home .hj-project-showroom[data-zoom="true"] #projectImage{width:max(100%,1363px)}
.hj-modern-home .hj-project-showroom[data-loading="true"] .hj-showroom-screen{min-height:220px;background:linear-gradient(125deg,#f1ebf7,#fff,#e8dff2)}
.hj-modern-home .hj-showroom-foot{display:flex;flex-direction:column;gap:13px;padding:2px 24px 22px}
.hj-modern-home .hj-showroom-note{font-size:14px;line-height:1.75;color:#82728f;margin:0}
.hj-modern-home .hj-showroom-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hj-modern-home .hj-showroom-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hj-modern-home .hj-showroom-link,.hj-modern-home .hj-showroom-zoom{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:10px;padding:9px 15px;font-size:15px;line-height:1.5;font-weight:700;text-decoration:none;cursor:pointer}
.hj-modern-home .hj-showroom-link{background:#7755a6;border:1px solid #7755a6;color:#fff}
.hj-modern-home .hj-showroom-link:hover{background:#61418d;color:#fff}
.hj-modern-home .hj-showroom-zoom{background:#fff;color:#6b4f88;border:1px solid #ded0ec}
.hj-modern-home .hj-showroom-zoom svg{width:17px;height:17px}
.hj-modern-home .hj-showroom-zoom[aria-pressed="true"]{background:#eae0f7;color:#593679;border-color:#cbb2e3}
.hj-modern-home .hj-showroom-pagination{display:flex;align-items:center;gap:12px;direction:rtl}
.hj-modern-home .hj-showroom-pagination button{min-height:42px;padding:8px 13px;border-radius:9px;background:#fff;color:#6b4f88;border:1px solid #e1d6ed;font-size:14px;cursor:pointer}
.hj-modern-home .hj-showroom-pagination button:hover{background:#eee5f8}
.hj-modern-home .hj-showroom-pagination output{font-size:14px;color:#867392;min-width:41px;text-align:center}

/* Native scroll timelines are a progressive enhancement, without hiding content. */
@supports (animation-timeline:scroll()){
 .hj-modern-home .hj-page-progress{display:block;animation:hj-reading linear both;animation-timeline:scroll(root block)}
 @keyframes hj-reading{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}
@media(prefers-reduced-motion:no-preference){
 @supports ((animation-timeline:view()) and (animation-range:entry)){
  .hj-modern-home .hj-work-card{animation:hj-work-entry linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
  @keyframes hj-work-entry{from{opacity:.55;translate:0 22px}to{opacity:1;translate:0 0}}
 }
 .hj-modern-home #projectImageDialog[open]{animation:hj-showroom-in .24s cubic-bezier(.2,.7,.25,1) both}
 @keyframes hj-showroom-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
}
.hj-modern-home .hj-unified-projects::view-transition-group(*),.hj-modern-home .hj-showroom-browser::view-transition-group(*),.hj-modern-home .hj-front-stage::view-transition-group(*){animation-duration:.38s;animation-timing-function:cubic-bezier(.2,.75,.2,1)}
.hj-modern-home .hj-unified-projects::view-transition-group-children(*),.hj-modern-home .hj-showroom-browser::view-transition-group-children(*){overflow:clip}
.hj-modern-home .hj-front-stage{view-transition-scope:all;background:radial-gradient(ellipse at var(--light-x,40%) var(--light-y,25%),#594169 0%,#2c223d 47%,#191522 100%)}
.hj-modern-home .hj-front-stage #hj-front-screen{view-transition-name:hj-hero-screen}
.hj-modern-home .hj-front-stage .hj-front-phone{view-transition-name:hj-hero-phone}
.hj-modern-home .hj-front-stage[data-tilting="true"] .hj-front-laptop{transform:translate3d(calc(var(--parallax-x,0px)*.45),calc(var(--parallax-y,0px)*.45),0);transition:transform .12s linear}
.hj-modern-home .hj-front-stage .hj-front-laptop{transition:transform .4s ease}
.hj-modern-home .hj-front-stage .hj-front-phone{translate:var(--parallax-x,0px) var(--parallax-y,0px);transition:translate .3s ease}
.hj-modern-home .hj-front-stage .hj-front-orbit{animation:hj-orbit-breathe 9s ease-in-out infinite alternate;animation-play-state:var(--ambient-state,paused)}
@keyframes hj-orbit-breathe{from{scale:.96;opacity:.45}to{scale:1.04;opacity:.8}}
@media(hover:none),(pointer:coarse){
 .hj-modern-home .hj-work-preview-label{opacity:1;transform:translate(-50%,0);padding:8px 13px;min-height:36px;font-size:13px;bottom:12px}
 .hj-modern-home .hj-work-frame{transform:none!important}
}
@media(max-width:800px){
 .hj-modern-home #work{padding-top:49px}
 .hj-modern-home .hj-unified-projects{gap:21px}
 .hj-modern-home .hj-work-card .hj-unified-meta{padding:20px}
 .hj-modern-home .hj-work-card .hj-unified-meta h3{font-size:25px}
 .hj-modern-home .hj-work-card .hj-unified-meta p{font-size:16px}
 .hj-modern-home .hj-work-footer{gap:7px}
 .hj-modern-home .hj-work-card .hj-unified-visit{padding-inline:13px}
 .hj-modern-home .hj-work-details{font-size:14px}
}
@media(max-width:690px){
 .hj-modern-home .hj-work-toolbar{gap:10px;align-items:flex-start;padding-bottom:17px;margin-bottom:20px;flex-direction:column}
 .hj-modern-home .hj-work-filters{gap:5px;width:100%;flex-wrap:nowrap}
 .hj-modern-home .hj-work-filters button{font-size:14px;padding:10px 13px;min-height:43px;flex:1;white-space:nowrap}
 .hj-modern-home .hj-work-count{font-size:13px;padding-inline:3px}
 .hj-modern-home .hj-work-card .hj-work-frame{width:calc(100% - 20px);margin:10px 10px 0;border-radius:11px}
 .hj-modern-home .hj-browser-chrome{height:30px;padding-inline:9px;gap:7px}
 .hj-modern-home .hj-browser-address{font-size:10px}
 .hj-modern-home .hj-browser-tools{gap:4px}
 .hj-modern-home .hj-browser-tools i{width:5px;height:5px}
 .hj-modern-home .hj-work-card .hj-unified-meta{padding:18px 21px 21px}
 .hj-modern-home .hj-work-card .hj-unified-meta p{min-height:0;margin-bottom:18px}
 .hj-modern-home .hj-work-footer{gap:10px;flex-wrap:nowrap}
 .hj-modern-home .hj-work-card .hj-unified-visit{font-size:15px;min-height:44px}
 .hj-modern-home .hj-work-details{font-size:15px}
 .hj-modern-home .hj-work-tip{font-size:13px;margin-top:22px;align-items:flex-start}
 .hj-modern-home #projectImageDialog.hj-project-showroom{width:calc(100vw - 16px);max-height:calc(100dvh - 18px);border-radius:17px}
 .hj-modern-home .hj-showroom-head{padding:17px 16px;gap:12px}
 .hj-modern-home .hj-showroom-heading h2{font-size:23px}
 .hj-modern-home .hj-showroom-heading small{font-size:12px}
 .hj-modern-home .hj-showroom-close{padding:8px 10px;min-height:40px}
 .hj-modern-home .hj-showroom-body{padding:13px 12px}
 .hj-modern-home .hj-showroom-screen{max-height:54dvh}
 .hj-modern-home .hj-showroom-foot{padding:2px 16px 18px;gap:10px}
 .hj-modern-home .hj-showroom-note{font-size:13px}
 .hj-modern-home .hj-showroom-controls{gap:14px}
 .hj-modern-home .hj-showroom-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .hj-modern-home .hj-showroom-link,.hj-modern-home .hj-showroom-zoom{font-size:14px;padding:9px 11px;white-space:nowrap}
 .hj-modern-home .hj-showroom-pagination{width:100%;justify-content:space-between}
 .hj-modern-home .hj-showroom-pagination button{min-width:88px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .hj-modern-home .hj-work-frame{transform:none!important}
 .hj-modern-home .hj-work-card{opacity:1!important;translate:none!important;animation:none!important}
 .hj-modern-home .hj-front-stage :is(.hj-front-laptop,.hj-front-phone){translate:none!important;transform:none!important}
 .hj-modern-home .hj-front-stage::view-transition-group(*),.hj-modern-home .hj-unified-projects::view-transition-group(*),.hj-modern-home .hj-showroom-browser::view-transition-group(*){animation:none!important}
 .hj-modern-home .hj-front-stage::view-transition-old(*),.hj-modern-home .hj-front-stage::view-transition-new(*),.hj-modern-home .hj-unified-projects::view-transition-old(*),.hj-modern-home .hj-unified-projects::view-transition-new(*),.hj-modern-home .hj-showroom-browser::view-transition-old(*),.hj-modern-home .hj-showroom-browser::view-transition-new(*){animation:none!important}
}
