.s-work, .s-clients { --top: clamp(64px, 5.2vw, 120px); --bar: clamp(30px, 1.9vw, 48px); --foot: clamp(84px, 6.4vw, 160px); --sh: clamp(6px, 0.42vw, 12px); }
.s-work { position: relative; clip-path: inset(0); }
.b-field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.b-wrap { position: relative; z-index: 1; }

.bw { position: relative; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--sh) var(--sh) 0 var(--ink); display: flex; flex-direction: column; text-align: left; }
.bw-bar { flex: none; height: var(--bar); background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 12px; }
.bw-bar .mono { color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-sq { display: flex; gap: 6px; flex: none; }
.bw-sq i { width: 10px; height: 10px; background: var(--paper); display: block; }
.bw-sq i:nth-child(2) { background: transparent; outline: 2px solid var(--paper); outline-offset: -2px; }
.bw-view { position: relative; overflow: hidden; background: var(--mist); }
.bw-view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; }
.bw-view:focus-visible { outline-offset: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .bw-view:focus-visible { outline: none; }
  .bw-view:focus-visible::after { content: ""; position: absolute; inset: 4px; z-index: 1; border: 2px solid var(--ink); pointer-events: none; }
}
.is-on .bw-view img { will-change: transform; animation: b-scroll var(--t, 24s) linear 0.6s infinite alternate; }
@keyframes b-scroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(var(--dist, 0px)); } }
.bw-foot { flex: 1 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; align-content: center; gap: 4px 20px; padding: 14px 16px; border-top: 2px solid var(--ink); }
.bw-foot h3 { font: 400 var(--fs-h3)/1.05 var(--display); letter-spacing: -0.03em; }
.bw-foot .tg { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
.b-go { display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--fs-body)/1.2 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
.b-go { background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.85em) / 100% 2px no-repeat; }
.b-go:hover { background-size: 100% 1px; }
.b-intro .b-body { padding: clamp(18px, 1.6vw, 40px); display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 32px); flex: 1; }
.b-intro p { max-width: 30ch; font-size: var(--fs-body); line-height: 1.5; }
.b-intro .b-hint { margin-top: auto; display: flex; align-items: center; gap: 10px; font: 400 var(--fs-small)/1.45 var(--mono); }
.b-hint i { width: 10px; height: 10px; background: var(--ink); display: block; animation: b-blink 1s steps(1) infinite; }
@keyframes b-blink { 50% { opacity: 0; } }

@media (min-width: 992px) {
  .b-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .b-track { position: absolute; top: calc(var(--top) + var(--pad)); bottom: calc(var(--pad) + var(--sh)); left: 0; display: flex; align-items: stretch; gap: clamp(80px, 9vw, 240px); padding: 0 clamp(120px, 12vw, 320px) 0 var(--pad); }
  .b-intro { flex: none; width: clamp(420px, 31vw, 900px); }
  .b-proj { flex: none; position: relative; height: 100%; display: flex; }
  .bw-desk { height: 100%; }
  .bw-desk .bw-view { height: calc(100svh - var(--top) - 2 * var(--pad) - var(--sh) - var(--bar) - var(--foot) - 4px); aspect-ratio: 16 / 10; }
  .bw-phone { position: absolute; z-index: 2; right: calc(-1 * clamp(60px, 6vw, 170px)); top: 14%; }
  .bw-phone .bw-view { height: calc((100svh - var(--top)) * 0.56); aspect-ratio: 390 / 760; }
  .bw-phone .bw-bar { height: calc(var(--bar) * 0.8); }
}
@media (max-width: 991px) {
  .b-track { display: flex; flex-direction: column; gap: 56px; padding: 64px calc(var(--pad) + var(--sh)) calc(64px + var(--sh)) var(--pad); }
  .b-intro .h2 { font-size: 52px; }
  .bw-desk .bw-view { aspect-ratio: 390 / 600; }
  .no-ph .bw-desk .bw-view { aspect-ratio: 4 / 5; }
  .bw-phone { display: none; }
  .is-on .bw-view img { animation-delay: 0s; }
  .bw-foot { grid-template-columns: auto 1fr; }
  .bw-foot h3 { font-size: 26px; grid-column: 1 / -1; }
  .bw-foot .tg { grid-column: 1 / -1; grid-row: auto; justify-self: start; text-align: left; }
  .bw-foot .b-go { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .is-on .bw-view img, .b-hint i { animation: none; }
  .bw-view { overflow-y: auto; }
  .bw-view img { position: static; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 992px) {
  .b-stage { position: static; height: auto; overflow: visible; }
  .b-track { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px clamp(80px, 9vw, 240px); padding: calc(var(--top) + var(--pad)) calc(var(--pad) + var(--sh) + clamp(60px, 6vw, 170px)) 64px var(--pad); }
  .b-intro { width: auto; }
  .b-proj { height: auto; container-type: inline-size; }
  .bw-desk { width: 100%; }
  .bw-desk .bw-view { height: auto; aspect-ratio: 16 / 10; }
  .bw-phone { top: calc(var(--bar) + 12px); }
  .bw-phone .bw-view { height: calc(62.5cqw - 0.8 * var(--bar) - 28px); }
}

.s-clients { position: relative; padding: clamp(64px, 5vw, 160px) calc(var(--pad) + var(--sh)) var(--sh) var(--pad); --lh: clamp(64px, 6vw, 196px); }
.cl-body { padding: clamp(18px, 1.6vw, 40px); }
.cl-h { font: 400 clamp(30px, 2.6vw, 96px)/1.02 var(--display); letter-spacing: -0.035em; max-width: 20ch; margin-bottom: clamp(16px, 1.4vw, 32px); }
.cl-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.cl-cell { position: relative; aspect-ratio: 8 / 5; display: grid; place-items: center; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); transition: background-color 200ms steps(3); container-type: size; }
.cl-cell::before, .cl-cell::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--ink); top: -5px; }
.cl-cell::before { left: -5px; } .cl-cell::after { right: -5px; }
.cl-cell:hover { background: var(--mist); }
.cl-cell img { width: calc(var(--lh) * var(--s) * var(--r)); height: calc(var(--lh) * var(--s)); max-width: 80cqw; max-height: 82cqh; object-fit: contain; display: block; }
.s-clients.is-arm .cl-cell img { clip-path: inset(0 100% 0 0); transition: clip-path 480ms steps(8) calc(var(--i) * 90ms); }
.s-clients.is-arm.is-in .cl-cell img { clip-path: inset(0); }
@media (max-width: 991px) {
  .s-clients { --lh: 92px; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-cell { aspect-ratio: 1; }
  .cl-cell img { max-width: 84cqw; max-height: 90cqh; }
  .cl-innova-haus img { --s: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .cl-cell { transition: none; } }
