/* Three transformations, with the work doing the talking. */
.saywell-editorial .editorial-hero {
  height:auto;
  min-height:0;
  padding-top:28px;
  padding-bottom:16px;
}
.saywell-editorial .editorial-hero-art {
  height:clamp(350px,64svh,500px);
}
.saywell-editorial .home-selected.motion-work {
  padding-top:22px;
  padding-bottom:54px;
}
.motion-work-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px 28px;
  margin-bottom:25px;
}
.saywell-editorial .motion-work-heading h2 {
  margin:0;
  font-size:36px;
  line-height:1.2;
  letter-spacing:-.045em;
}
.motion-work-tools {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:17px;
}
.motion-device {
  display:flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid #d4d9cf;
  border-radius:5px;
}
.motion-device button,
.motion-toggle {
  appearance:none;
  border:0;
  background:transparent;
  color:#5f6b68;
  font:400 12px/1.4 var(--sans,Arial,sans-serif);
  cursor:pointer;
  white-space:nowrap;
  min-height:36px;
}
.motion-device button {
  padding:8px 13px;
  border-radius:3px;
}
.motion-device button[aria-pressed="true"] {
  background:#164e4b;
  color:#faf7f2;
}
.motion-device button:hover:not([aria-pressed="true"]) {
  color:#164e4b;
  background:#e5ebe3;
}
.motion-toggle {
  padding:8px 0;
  min-width:97px;
  text-align:left;
}
.motion-toggle:hover { color:#164e4b; }
.motion-hint {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#5f6b68;
  font-size:12px;
  white-space:nowrap;
}
.motion-all-work {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#164e4b;
  font-size:13px;
  white-space:nowrap;
  min-height:40px;
}
.motion-all-work:hover {
  text-decoration:underline;
  text-underline-offset:5px;
}
.motion-project-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.motion-project { min-width:0; }
.motion-stage {
  display:grid;
  place-items:center;
  margin:0;
  padding:0;
  position:relative;
  overflow:hidden;
  background:#e8e9df;
  border:1px solid #d9dcd1;
  border-radius:5px;
  isolation:isolate;
}
.motion-project[data-motion-project="korpico"] .motion-stage { background:#e8e2d8; }
.motion-project[data-motion-project="factiphi"] .motion-stage { background:#e2e8e4; }
.motion-screens {
  --motion-position:50%;
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:1.44;
  overflow:hidden;
  background:#faf7f2;
  isolation:isolate;
}
.motion-before,
.motion-after {
  position:absolute;
  inset:0;
}
.motion-before { z-index:0; }
.motion-after {
  z-index:1;
  clip-path:inset(0 calc(100% - var(--motion-position,50%)) 0 0);
}
.motion-screens img {
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  margin:0;
  object-fit:cover;
  object-position:top;
  user-select:none;
  -webkit-user-drag:none;
}
.motion-label {
  position:absolute;
  top:11px;
  display:inline-block;
  padding:5px 8px;
  border:1px solid #24333124;
  border-radius:3px;
  background:#faf7f2f5;
  color:#243331;
  font:500 10px/1.3 var(--sans,Arial,sans-serif);
  box-shadow:0 1px 4px #2433310b;
  pointer-events:none;
  white-space:nowrap;
}
.motion-label-before { right:11px; }
.motion-label-after { left:11px; }
.motion-divider {
  position:absolute;
  z-index:2;
  top:0;
  bottom:0;
  left:var(--motion-position,50%);
  width:2px;
  background:#faf7f2;
  box-shadow:0 0 0 1px #24333128;
  transform:translateX(-50%);
  pointer-events:none;
}
.motion-divider > span {
  position:absolute;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:1px solid #cfd5cb;
  background:#faf7f2;
  color:#164e4b;
  font:400 19px/1 var(--sans,Arial,sans-serif);
  box-shadow:0 2px 10px #2433311f;
}
.motion-range {
  appearance:none;
  -webkit-appearance:none;
  position:absolute;
  z-index:3;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  opacity:0;
  cursor:ew-resize;
  touch-action:pan-y;
}
.motion-range::-webkit-slider-thumb {
  appearance:none;
  -webkit-appearance:none;
  width:1px;
  height:100%;
  background:transparent;
  border:0;
}
.motion-range::-moz-range-thumb {
  width:1px;
  height:100%;
  background:transparent;
  border:0;
}
.motion-screens:focus-within {
  outline:3px solid #a84a33;
  outline-offset:-3px;
}
.motion-work button:focus-visible,
.motion-all-work:focus-visible {
  outline:3px solid #a84a33;
  outline-offset:4px;
}
.saywell-editorial .motion-project-name {
  margin:15px 0 0;
  font-size:18px;
  line-height:1.35;
  letter-spacing:-.025em;
}
.motion-project-name a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  min-height:30px;
}
.motion-project-name a > span {
  font:400 21px/1 var(--sans,Arial,sans-serif);
  color:#164e4b;
}
.motion-project-name a:hover {
  color:#164e4b;
  text-decoration:underline;
  text-underline-offset:5px;
}
.motion-work[data-device="mobile"] .motion-stage {
  min-height:365px;
  padding:22px;
}
.motion-work[data-device="mobile"] .motion-screens {
  width:148px;
  aspect-ratio:390/844;
  border:4px solid #243331;
  border-radius:15px;
  box-shadow:0 8px 20px #24333118;
}
.motion-work[data-device="mobile"] .motion-label {
  top:8px;
  font-size:8px;
  padding:4px 6px;
}
.motion-work[data-device="mobile"] .motion-label-before { right:6px; }
.motion-work[data-device="mobile"] .motion-label-after { left:6px; }
.motion-work[data-device="mobile"] .motion-divider > span {
  width:27px;
  height:27px;
  font-size:16px;
}
@media (max-width:1100px) {
  .motion-project-grid { gap:18px; }
  .motion-work-heading { gap:18px; }
  .motion-work-tools { gap:13px; }
  .saywell-editorial .motion-work-heading h2 { font-size:33px; }
  .saywell-editorial .motion-project-name { font-size:16px; }
  .motion-label { font-size:9px; top:8px; }
  .motion-label-before { right:8px; }
  .motion-label-after { left:8px; }
}
@media (max-width:900px) {
  .motion-work-heading { align-items:flex-start; flex-wrap:wrap; }
  .motion-work-tools { margin-left:auto; }
  .motion-device button { padding:7px 10px; }
  .motion-project-grid { gap:16px; }
}
@media (max-width:800px) {
  .saywell-editorial .editorial-hero {
    height:auto;
    align-content:start;
    gap:23px;
    padding-top:27px;
    padding-bottom:14px;
  }
  .saywell-editorial .editorial-hero-art { height:clamp(230px,36svh,330px); }
  .saywell-editorial .home-selected.motion-work { padding-top:22px; }
  .motion-work-heading { margin-bottom:22px; }
  .motion-work[data-device="mobile"] .motion-stage { padding:18px 12px; min-height:335px; }
  .motion-work[data-device="mobile"] .motion-screens { width:134px; }
}
@media (max-width:700px) {
  .motion-project-grid { grid-template-columns:1fr; gap:29px; }
  .motion-work-heading { gap:17px; }
  .motion-work-tools { justify-content:flex-start; width:100%; margin-left:0; gap:16px; }
  .saywell-editorial .motion-work-heading h2 { font-size:34px; }
  .motion-all-work { margin-left:auto; }
  .motion-label { font-size:10px; top:11px; }
  .motion-label-before { right:11px; }
  .motion-label-after { left:11px; }
  .saywell-editorial .motion-project-name { margin-top:12px; font-size:19px; }
  .motion-work[data-device="mobile"] .motion-stage { min-height:400px; padding:20px; }
  .motion-work[data-device="mobile"] .motion-screens { width:164px; }
  .saywell-editorial .home-selected.motion-work { padding-bottom:45px; }
}
@media (max-width:380px) {
  .motion-work-tools { gap:10px; }
  .motion-device button { padding-left:8px; padding-right:8px; font-size:11px; }
  .motion-toggle { min-width:88px; font-size:11px; }
  .motion-all-work { font-size:12px; gap:5px; }
}
@media (max-height:620px) and (min-width:801px) {
  .saywell-editorial .editorial-hero { padding-top:18px; padding-bottom:12px; }
  .saywell-editorial .editorial-hero-art { height:clamp(290px,64svh,390px); }
}
@media (max-height:620px) and (max-width:800px) {
  .saywell-editorial .editorial-hero { padding-top:16px; gap:15px; }
  .saywell-editorial .editorial-hero-art { height:205px; }
}
@media (max-width: 700px) {
  .motion-work-tools { flex-wrap: wrap; gap: 9px 16px; }
  .motion-device button { min-width: 56px; min-height: 44px; }
  .motion-hint { order: 3; flex-basis: 100%; font-size: 11px; }
  .motion-all-work { min-height: 44px; align-items: center; }
}
