.work-gallery{margin:0;padding:0;position:relative;width:100%;max-width:none;height:100svh;min-height:560px;overflow:hidden;background:#f6f6f6;color:#171717;font-family:'Helvetica Neue',Arial,sans-serif}
.work-gallery *{box-sizing:border-box}
.work-gallery a{color:inherit;text-decoration:none}
.work-gallery .return-link{position:absolute;left:38px;top:27px;z-index:30;font-size:30px;line-height:1;padding:8px}
.work-gallery h1{position:absolute;left:100px;top:35px;margin:0;z-index:20;font:400 15px/1.4 "Helvetica Neue",Arial,sans-serif;letter-spacing:.02em}
.work-orbit{position:absolute;inset:0 21% 0 8%;perspective:1100px;perspective-origin:50% 50%;isolation:isolate}
.work-tile{display:block;position:absolute;left:50%;top:50%;width:min(29vw,38vh);aspect-ratio:1.18;border-radius:1px;transform-style:preserve-3d;will-change:transform,opacity;outline-offset:8px}
.work-surface{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:22px;background:rgb(var(--shade),var(--shade),var(--shade));backface-visibility:visible;box-shadow:0 4px 9px #0000000c}
.work-surface>span{font-size:15px}.work-surface small{font-size:11px;color:#333}
.work-edge{position:absolute;inset:0;background:#999;transform:translateZ(-2px);z-index:-1}
.work-index{position:absolute;right:5%;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:20px;z-index:20;width:130px}
.work-index a{font-size:12px;color:#888;transition:color .25s,transform .4s}.work-index a[aria-current],.work-index a:hover{color:#171717;transform:translateX(-8px)}
.work-caption{position:absolute;left:7%;bottom:8%;display:flex;align-items:baseline;gap:12px;pointer-events:none;z-index:15}
.work-count{font-size:clamp(54px,8vw,110px);font-weight:400;letter-spacing:-.085em;line-height:1}.work-caption>span:last-child{font-size:11px;color:#777}
.work-controls{position:absolute;bottom:28px;left:7%;right:5%;display:flex;justify-content:space-between;align-items:center;z-index:30;font-size:11px;color:#777}
.work-controls button{font:inherit;color:#222;cursor:pointer;border:0;border-bottom:1px solid #999;background:transparent;padding:8px 0}
.work-gallery a:focus-visible,.work-gallery button:focus-visible{outline:2px solid #222;outline-offset:5px}
@media(max-width:650px){.work-gallery{margin:0;padding:0;min-height:480px}.work-gallery .return-link{left:15px;top:18px}.work-gallery h1{left:64px;top:29px;font-size:13px}.work-orbit{inset:6% 0 10% -12%;perspective:850px}.work-tile{width:min(49vw,29vh)}.work-surface{padding:14px}.work-surface>span{font-size:12px}.work-surface small{font-size:9px}.work-index{right:5%;width:66px;gap:19px}.work-index a{font-size:10px}.work-caption{bottom:11%}.work-controls{bottom:23px}.work-controls>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.work-index a{transition:none}}

.experiment{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;align-items:center;gap:clamp(20px,4vw,58px)}
.experiment .specimen{display:grid;place-items:center;aspect-ratio:1.55;background:#eee;color:#222;font:italic clamp(38px,6vw,86px)/1 Georgia}
.experiment:nth-of-type(2) .specimen{background:#292929;color:white}
.experiment:nth-of-type(3) .specimen{background:#ddd}
.experiment h2{margin:.2em 0;font-size:clamp(24px,4vw,42px)}
.experiment small{color:#555}.experiment summary{cursor:pointer}
.case-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:36px 0}
.case-strip figure{margin:0}.case-strip img{float:none;width:100%;margin:0;aspect-ratio:2/3;object-fit:contain;background:#eee}
.case-strip figcaption{font-size:12px;color:#555}.case-placeholder{height:32vh;background:#ddd}
@media(max-width:540px){.experiment{grid-template-columns:1fr}.experiment .specimen{aspect-ratio:3}.case-strip{grid-template-columns:1fr 1fr}}

/* Both snapshots share the browser's interpolated size, position and rotation. */
::view-transition-group(project-cover) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(.23,.72,.19,1);
  z-index: 2;
}
::view-transition-image-pair(project-cover) { isolation:isolate; overflow:hidden; border-radius:7px }
::view-transition-old(project-cover), ::view-transition-new(project-cover) {
  height:100%; width:100%; object-fit:cover; mix-blend-mode:normal;
}
::view-transition-old(project-cover) {animation:cover-away 720ms both}
::view-transition-new(project-cover) {animation:cover-arrive 720ms both}
.changing-project::view-transition-old(root) {animation:page-away 350ms both}
.changing-project::view-transition-new(root) {animation:page-arrive 420ms 200ms both}
@keyframes cover-away {0%,25%{opacity:1}100%{opacity:0}}
@keyframes cover-arrive {0%,25%{opacity:0}100%{opacity:1}}
@keyframes page-away {to{opacity:0}}
@keyframes page-arrive {from{opacity:0}to{opacity:1}}
/* Reserve the image surface before cover files decode on a cold entry. */
.case-strip img {height:auto;display:block}

.case-status {color:#777;font-size:13px;margin-bottom:28px}
.project-story {margin-top:56px}
.project-story h2 {font-weight:500}
.project-story p {color:#777;font-size:14px}
.project-sheet {aspect-ratio:1.6;background:#e5e5e5;margin:26px 0}
.project-sheet.tall {aspect-ratio:.8;background:#d7d7d7}
.project-pair {display:grid;grid-template-columns:1fr 1fr;gap:18px}
.project-pair .project-sheet {aspect-ratio:.75}
@media(max-width:540px){.project-pair{grid-template-columns:1fr}.project-story{margin-top:32px}}

/* Visual refresh only: preserve orbit geometry, transforms and transition timing. */
body #detail.work-gallery{background:linear-gradient(180deg,#f4f8fbd9,#f4f8fbe8 55%,#f4f8fb),url("images/kite-sky.png") center/cover no-repeat;color:var(--ds-ink);font-family:var(--ds-font)}
body #detail.work-gallery h1{left:calc(var(--ds-gutter) + 76px);top:27px;font:400 clamp(20px,2vw,28px)/1.4 var(--ds-font);letter-spacing:-.035em}
#detail.work-gallery .work-surface{border:1px solid #ffffffd9;border-radius:18px;background:linear-gradient(145deg,#ffffffed,#e8f1f8e8 60%,#d1e4f0e8);box-shadow:0 16px 38px #244b6414,inset 0 1px 0 #fff;color:var(--ds-ink)}
#detail.work-gallery .work-tile:nth-child(3n+2) .work-surface{background:linear-gradient(145deg,#fdfdff,#e8eaf8 65%,#dce6f4)}
#detail.work-gallery .work-tile:nth-child(3n) .work-surface{background:linear-gradient(145deg,#fcffff,#e1eeec 65%,#dce8f0)}
#detail.work-gallery .work-edge{border-radius:18px;background:#c5d6e1}
#detail.work-gallery .work-surface>span{font-weight:500;font-size:16px;letter-spacing:-.02em}
#detail.work-gallery .work-surface small{color:var(--ds-muted);font-size:12px}
#detail.work-gallery .work-index{width:148px;gap:8px;padding:12px 8px;border:1px solid #ffffffb3;border-radius:24px;background:#ffffff70;box-shadow:0 8px 24px #244b6408;backdrop-filter:blur(14px)}
#detail.work-gallery .work-index a{display:flex;align-items:center;min-height:44px;padding:10px 16px;border-radius:999px;font-size:13px;color:var(--ds-muted);border:1px solid transparent}
#detail.work-gallery .work-index a[aria-current]{background:var(--ds-glass);border-color:#fff;color:var(--ds-ink);font-weight:500;box-shadow:var(--ds-shadow)}
#detail.work-gallery .work-index a:hover{color:var(--ds-ink)}
#detail.work-gallery .work-count{font-size:clamp(48px,7vw,92px);letter-spacing:-.06em;font-weight:400}
#detail.work-gallery .work-caption>span:last-child,#detail.work-gallery .work-controls{color:var(--ds-muted);font-size:12px}
@media(max-width:650px){body #detail.work-gallery h1{left:20px;top:80px;font-size:24px}#detail.work-gallery .work-index{width:92px;right:12px;padding:8px 4px;gap:4px;border-radius:20px}#detail.work-gallery .work-index a{font-size:11px;padding:8px 9px;min-height:44px}#detail.work-gallery .work-surface{border-radius:12px;padding:14px}#detail.work-gallery .work-edge{border-radius:12px}#detail.work-gallery .work-surface>span{font-size:14px}#detail.work-gallery .work-surface small{font-size:10px}#detail.work-gallery .work-controls{left:20px;right:20px}#detail.work-gallery .work-controls>span{font-size:10px}}

#detail.work-gallery .chargeway-tile .work-surface{padding:0;overflow:hidden;background:transparent}#detail.work-gallery .chargeway-tile img{display:block;float:none;margin:0;width:100%;height:100%;object-fit:contain}body #detail:has(.chargeway-frame){padding:0;margin:0;max-width:none;width:100%;height:100svh;background:#fff}.chargeway-frame{display:block;border:0;width:100%;height:100svh}body:has(.chargeway-frame)>.language-switch{display:none}

/* Shared white veil unifies cover artwork without changing source files. */
#detail.work-gallery .chargeway-tile .work-surface::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.12) 40%,rgba(255,255,255,.32) 72%,rgba(255,255,255,.76) 100%);
  pointer-events:none;
}
