/* V4.9: Only the #work selected-work section is styled here.
   V4.8 hero section and its glass folder remain completely untouched. */
#work { background: #f7f5ef; }
#work .work-header { margin-bottom: 27px; gap: 22px; }
#work .work-title { max-width: 810px; }
#work .work-title .section-title { font-size: clamp(36px,4.5vw,60px); line-height:1.08; }
#work .work-title .section-intro { margin-top:17px; max-width:590px; line-height:1.6; font-size:15px; }
#work .featured-project.v49-case-study {
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  min-height:510px; overflow:hidden; isolation:isolate;
  border:1px solid rgba(41,62,47,.12); border-radius:22px;
  background:#fffcf6; box-shadow:0 16px 42px rgba(33,50,38,.065);
}
#work .v49-stage {
  position:relative; min-height:520px; overflow:hidden; display:grid; place-items:center;
  isolation:isolate; perspective:900px;
  background:linear-gradient(150deg,#d7e8f3 0%,#c6d9e8 54%,#bfd2e0 100%);
  -webkit-tap-highlight-color:transparent;
}
#work .v49-stage::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse at 50% 37%,rgba(255,255,255,.42),transparent 67%);
}
#work .v49-stage .featured-image-label {
  position:absolute; z-index:5; top:21px; left:23px;
  font-size:10px; letter-spacing:.13em; font-weight:850;
  color:#234253; background:rgba(255,255,255,.65); border:1px solid rgba(255,255,255,.63);
  border-radius:7px; padding:8px 11px;
}
#work .v49-backplate {
  position:absolute; z-index:1; width:min(60%,330px); aspect-ratio:3/4;
  border:1px solid rgba(255,255,255,.46); border-radius:14px;
  background:linear-gradient(145deg,rgba(58,87,73,.27),rgba(244,249,242,.26));
  box-shadow:0 14px 28px rgba(33,58,65,.10);
  transform:translate3d(-20px,5px,-24px) rotate(-4deg);
}
#work .v49-cast-shadow {
  position:absolute; z-index:0; width:52%; height:28px; bottom:39px;
  background:rgba(27,55,67,.20); filter:blur(17px); border-radius:50%;
}
#work .v49-poster {
  position:relative; display:block; z-index:3;
  width:min(60%,328px); line-height:0; aspect-ratio:3/4;
  border-radius:13px; padding:5px; box-sizing:border-box;
  border:1px solid rgba(255,255,255,.96);
  background:rgba(255,255,255,.98);
  box-shadow:0 28px 48px rgba(22,47,61,.23),0 6px 13px rgba(28,53,66,.13);
  transform:translate3d(var(--v49-x,0px),calc(var(--v49-y,0px) + var(--v49-scroll-y,0px)),0)
    rotateZ(var(--v49-rotate,-1.4deg)) rotateX(var(--v49-rx,0deg)) rotateY(var(--v49-ry,0deg));
  transition:transform .6s cubic-bezier(.2,.75,.2,1), box-shadow .5s ease;
  transform-style:preserve-3d; will-change:transform;
}
#work .v49-poster img {
  display:block; width:100%; height:100%; aspect-ratio:3/4; object-fit:cover;
  border:0; border-radius:8px; box-shadow:none;
  max-height:none; max-width:none; padding:0;
  transform:none!important; transition:none!important;
}
#work .v49-stage:hover .v49-poster {
  box-shadow:0 34px 55px rgba(22,47,61,.26),0 7px 13px rgba(28,53,66,.14);
}
#work .v49-stage .visual-footnote {
  bottom:23px; right:22px; color:#3a5968; letter-spacing:.11em; font-size:9px;
  font-weight:800; z-index:4; text-align:right;
}
#work .v49-full-art {
  position:absolute; left:21px; bottom:18px; z-index:5;
  display:inline-flex; gap:12px; align-items:center; justify-content:space-between;
  min-height:43px; padding:0 14px; border-radius:8px;
  color:#244334; font-size:12px; font-weight:750;
  border:1px solid rgba(65,94,75,.20); background:rgba(255,255,255,.90);
  box-shadow:0 6px 20px rgba(26,50,57,.10);
  transition:transform .22s,background .22s,border-color .22s;
}
#work .v49-full-art:hover,#work .v49-full-art:focus-visible {
  background:#fff; transform:translateY(-2px); border-color:rgba(49,91,65,.43);
}
#work .v49-story { padding:clamp(28px,3.3vw,46px); justify-content:center; }
#work .v49-story h3 {
  font-size:clamp(36px,3.6vw,51px); line-height:1.07; letter-spacing:-.065em;
  margin:17px 0 16px; color:#1d3025;
}
#work .v49-story h3 em { color:#41674f; }
#work .v49-story .featured-description { font-size:14px; line-height:1.68; margin:0 0 14px; }
#work .v49-story .featured-principles { margin-top:5px; border:0; display:grid; gap:7px; }
#work .v49-story .featured-principles>div {
  display:grid; align-items:center; grid-template-columns:31px minmax(0,1fr);
  padding:12px 13px; gap:10px;
  border:1px solid rgba(42,69,47,.10); border-radius:10px; background:#f5f5ef;
  transition:background .22s ease, transform .25s ease, box-shadow .25s ease;
}
#work .v49-story .featured-principles>div:hover {
  background:#ebf1e9; transform:translate3d(2px,-1px,0);
  box-shadow:0 7px 16px rgba(31,56,37,.06);
}
#work .v49-story .featured-principles>div>span { font-size:11px; font-weight:850; color:#ac7f45; }
#work .v49-story .featured-principles p { font-size:12.5px; line-height:1.5; }
#work .v49-story .feature-link {
  width:100%; min-height:51px; box-sizing:border-box;
  margin-top:17px; justify-content:space-between; gap:16px;
  border-radius:9px; background:linear-gradient(112deg,#1c3426,#244831);
  border:1px solid rgba(216,172,107,.42);
  box-shadow:inset 0 1px rgba(255,255,255,.06); color:#fff;
  transition:transform .25s ease,background .25s ease, box-shadow .25s ease;
}
#work .v49-story .feature-link:hover { background:linear-gradient(112deg,#254a33,#2f5940); box-shadow:0 10px 22px rgba(31,57,36,.14); transform:translateY(-2px); }
#work .v49-story .feature-link span { color:#eac28b; }
#work .work-secondary { margin-top:22px; }
/* Accessible, simple full artwork inspection: no generated/repainted pixels. */
.v49-lightbox { box-sizing:border-box; border:0; padding:0; margin:auto; width:min(92vw,690px); max-height:94dvh; color:#21382a; background:transparent; overflow:visible; }
.v49-lightbox::backdrop { background:rgba(9,18,13,.85); backdrop-filter:blur(6px); }
.v49-lightbox .v49-lightbox-inner { display:flex; flex-direction:column; gap:11px; align-items:center; max-height:94dvh; }
.v49-lightbox img { display:block; width:auto; height:auto; max-width:min(90vw,590px); max-height:calc(94dvh - 65px); object-fit:contain; border-radius:8px; box-shadow:0 22px 68px rgba(0,0,0,.4); }
.v49-lightbox .v49-close { align-self:flex-end; display:flex; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.25); padding:9px 14px; border-radius:7px; background:#f9f8f2; color:#21382a; cursor:pointer; min-height:44px; font-weight:750; }
@media(max-width:900px) {
  #work .featured-project.v49-case-study { grid-template-columns:1fr; }
  #work .v49-stage { min-height:470px; }
  #work .v49-story { padding:30px; }
}
@media(max-width:600px) {
  #work { padding-top:65px; }
  #work .work-header { margin-bottom:20px; gap:12px; flex-wrap:wrap; }
  #work .work-title .section-title { font-size:clamp(33px,8.7vw,44px); margin-top:13px; }
  #work .work-title .section-intro { font-size:14px; line-height:1.62; margin-top:13px; }
  #work .work-header .pill { margin-top:2px; }
  #work .featured-project.v49-case-study { border-radius:19px; min-height:0; }
  #work .v49-stage { min-height:430px; }
  #work .v49-poster { width:62%; max-width:258px; --v49-rotate:0deg; }
  #work .v49-backplate { width:62%; max-width:258px; transform:translate3d(-13px,5px,-20px) rotate(-3deg); }
  #work .v49-cast-shadow { bottom:38px; }
  #work .v49-stage .featured-image-label { top:14px; left:13px; font-size:9px; padding:6px 8px; }
  #work .v49-stage .visual-footnote { bottom:17px; right:13px; font-size:8px; max-width:50%; line-height:1.45; }
  #work .v49-full-art { left:13px; bottom:13px; font-size:11px; min-height:43px; padding-inline:10px; }
  #work .v49-story { padding:25px 20px 25px; }
  #work .v49-story h3 { font-size:clamp(34px,8.3vw,43px); margin:15px 0 11px; }
  #work .v49-story .featured-description { font-size:13px; line-height:1.65; margin-bottom:11px; }
  #work .v49-story .featured-principles>div { padding:10px 11px; }
  #work .v49-story .featured-principles p { font-size:12px; }
  #work .v49-story .feature-link { margin-top:15px; min-height:49px; }
}
@media(max-width:380px) {
  #work .v49-stage { min-height:385px; }
  #work .v49-poster,#work .v49-backplate { width:61%; }
  #work .v49-story { padding:21px 16px; }
  #work .v49-story h3 { font-size:33px; }
}
@media(prefers-reduced-motion:reduce) {
  #work .v49-poster,#work .v49-story .featured-principles>div,#work .v49-full-art { transition:none!important; transform:none!important; }
}

/* Do not show a non-working zoom control when scripts are unavailable. */
#work .v49-stage:not(.v49-interactive) .v49-full-art{display:none!important}
